【问题标题】:To extract the threshold values of the alarms using python boto使用 python boto 提取警报的阈值
【发布时间】:2017-07-25 20:49:50
【问题描述】:
   alarms = c.describe_alarms()
   for alarm in alarms:
       print alarm.name
       print alarm.metric
       print alarm.namespace

我已获得与 RDS 相关的所有警报。现在我需要找到这些警报的阈值。谁能帮帮我?

【问题讨论】:

标签: python amazon-web-services boto cloudwatch


【解决方案1】:

我不确定是否可以使用boto 检索它。您可能必须使用boto3,它在docs 中显示完整的数据结构。

如果您必须使用boto,您可以尝试抓取一个警报并执行print repr(alarm) 并查看阈值是否在输出中。

【讨论】:

  • 谢谢!! :) 一旦我有资格这样做,我会投票给你 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-08-01
  • 2017-04-21
  • 1970-01-01
  • 1970-01-01
  • 2022-06-16
  • 2021-09-02
  • 2021-01-30
相关资源
最近更新 更多