简体   繁体   English

AWS cloudwatch webhook 或 api

[英]AWS cloudwatch webhook or api

I am new with AWS and I m trying to find a way to get alarms from cloud watch.我是 AWS 的新手,我正在尝试找到一种从云手表获取警报的方法。 I set up an SNS topic and set a server endpoint but I relize that this needs confirmation of subscription.Do you know how to set up the webhook or if there is a call for getting alarms?我设置了一个 SNS 主题并设置了一个服务器端点,但我认为这需要确认订阅。你知道如何设置 webhook 或者是否有获取警报的呼叫?

  1. Go to CloudWatch Go 到 CloudWatch
  2. Choose Alarms from the left menu从左侧菜单中选择警报
  3. Create Alarm创建警报
  4. Select your metric Select 您的指标
  5. Specify metric and conditions then next指定指标和条件然后下一步
  6. In the Configure actions part you may select an SNS Topic from the dropdown list.Configure actions部分you may select an SNS Topic
  7. Fill name, description on the next step填写名称,下一步说明
  8. Preview and create.预览和创建。

Edit:编辑:

For subscription part;订阅部分; i've created a topic and a lambda for it's subscription which will get SNS event and send it to slack.我为它的订阅创建了一个主题和一个 lambda,它将获取 SNS 事件并将其发送到 slack。 There are other options such as http(s) calls, email, sms etc.还有其他选项,例如 http(s) 调用、email、短信等。

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

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