[pkg-eucalyptus-commits] [SCM] managing cloud instances for Eucalyptus branch, master, updated. 3.0.0-alpha3-257-g1da8e3a

Garrett Holmstrom gholms at fedoraproject.org
Sun Jun 16 02:30:37 UTC 2013


The following commit has been merged in the master branch:
commit 82b2d76522fe3b479b2eece9de69dd95f47f7b50
Author: Garrett Holmstrom <gholms at fedoraproject.org>
Date:   Wed Mar 6 17:26:43 2013 -0800

    Implement DescribeMetricCollectionTypes
    
    Fixes TOOLS-227

diff --git a/bin/kilo-describe-metric-collection-types b/bin/kilo-describe-metric-collection-types
new file mode 100755
index 0000000..0872842
--- /dev/null
+++ b/bin/kilo-describe-metric-collection-types
@@ -0,0 +1,6 @@
+#!/usr/bin/python -tt
+
+import euca2ools.commands.autoscaling.describemetriccollectiontypes
+
+if __name__ == '__main__':
+    euca2ools.commands.autoscaling.describemetriccollectiontypes.DescribeMetricCollectionTypes.run()
diff --git a/euca2ools/commands/autoscaling/describescalingprocesstypes.py b/euca2ools/commands/autoscaling/describemetriccollectiontypes.py
similarity index 75%
copy from euca2ools/commands/autoscaling/describescalingprocesstypes.py
copy to euca2ools/commands/autoscaling/describemetriccollectiontypes.py
index 0fa8ffd..eaa2a2d 100644
--- a/euca2ools/commands/autoscaling/describescalingprocesstypes.py
+++ b/euca2ools/commands/autoscaling/describemetriccollectiontypes.py
@@ -31,10 +31,13 @@
 from euca2ools.commands.autoscaling import AutoScalingRequest
 from requestbuilder.mixins import TabifyingCommand
 
-class DescribeScalingProcessTypes(AutoScalingRequest, TabifyingCommand):
-    DESCRIPTION = 'List all types of scaling processes'
-    LIST_MARKERS = ['Processes']
+class DescribeMetricCollectionTypes(AutoScalingRequest, TabifyingCommand):
+    DESCRIPTION = 'Describe auto-scaling metrics and granularities'
+    LIST_MARKERS = ['Metrics', 'Granularities']
 
     def print_result(self, result):
-        for process in result.get('Processes', []):
-            print self.tabify(('PROCESS', process.get('ProcessName')))
+        for metric in result.get('Metrics', []):
+            print self.tabify(('METRIC-COLLECTION-TYPE', metric.get('Metric')))
+        for granularity in result.get('Granularities', []):
+            print self.tabify(('METRIC-GRANULARITY-TYPE',
+                               granularity.get('Granularity')))

-- 
managing cloud instances for Eucalyptus



More information about the pkg-eucalyptus-commits mailing list