简体   繁体   English

AWS cloudwatch 警报投票 API

[英]AWS cloudwatch alerting poll API

I can see that in AWS alerting works with SNS where protocols are available as Email, https and SMS...Basically push mechanisms.. Is it possible to make these alerts pull-based?我可以看到在 AWS 中警报与 SNS 一起工作,其中协议可用作 Email、https 和 SMS...基本上是推送机制。是否可以使这些警报基于拉动? any ideas around how this could be tried?关于如何尝试的任何想法?

You would need to create a solution for this, natively when an alert triggers it can be configured to go to either an SNS topic which has 1 or more subscriptions to notify.您需要为此创建一个解决方案,当警报触发时,您可以将其配置为 go 到具有 1 个或多个要通知的订阅的 SNS 主题。

Instead you would need to use the describe-alarms function to retrieve a list of alarms, this can be narrowed down to alarming only by using the --state-value parameter such as the example below相反,您需要使用describe-alarms function 来检索警报列表,这可以通过使用--state-value参数缩小到仅警报,如下例

aws cloudwatch describe-alarms --state-value ALARM

Does this fit your needs https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudwatch/describe-alarm-history.html ?这符合您的需求https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudwatch/describe-alarm-history.html吗?

Please check aws cloudwatch there are several options for alarms.请检查aws cloudwatch有几个警报选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM