diff options
Diffstat (limited to 'boto/ec2/autoscale/policy.py')
-rw-r--r-- | boto/ec2/autoscale/policy.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/boto/ec2/autoscale/policy.py b/boto/ec2/autoscale/policy.py index fbe7dc5f..191ac496 100644 --- a/boto/ec2/autoscale/policy.py +++ b/boto/ec2/autoscale/policy.py @@ -23,6 +23,7 @@ from boto.resultset import ResultSet from boto.ec2.elb.listelement import ListElement + class Alarm(object): def __init__(self, connection=None): self.connection = connection @@ -64,18 +65,24 @@ class AdjustmentType(object): class MetricCollectionTypes(object): class BaseType(object): arg = '' + def __init__(self, connection): self.connection = connection self.val = None + def __repr__(self): return '%s:%s' % (self.arg, self.val) + def startElement(self, name, attrs, connection): return + def endElement(self, name, value, connection): if name == self.arg: self.val = value + class Metric(BaseType): arg = 'Metric' + class Granularity(BaseType): arg = 'Granularity' |