To extract the threshold values of the alarms using python boto

116 views Asked by At
   alarms = c.describe_alarms()
   for alarm in alarms:
       print alarm.name
       print alarm.metric
       print alarm.namespace

I have got all the alarms associated with the RDS. Now i need to find the threshold values for these alarms. Can anyone help me with it?

1

There are 1 answers

1
pjz On

I'm not sure it can be retrieved with boto. You might have to use boto3, which shows the full datastructure in the docs.

If you must use boto, you might try grabbing one alarm and doing print repr(alarm) and seeing if the threshold is in the output somewhere.