简体   繁体   English

是否可以确定在 cloudwatch aws 上发送警报的时间?

[英]Is it possible to determine a time for sending alerts on the cloudwatch aws?

Is it possible to determine a time for sending alerts on the cloudwatch aws?是否可以确定在 cloudwatch aws 上发送警报的时间?

For example: I would like to configure the operation of alerts from Monday to Friday at 8 am to 6 pm例如:我想配置周一周五早上8点下午6点的警报操作

A CloudWatch Alarm will trigger whenever the rule is met.只要满足规则,就会触发 CloudWatch 警报。 It might take a minute or so to react (depending upon the metric and the aggregate function used).反应可能需要一分钟左右(取决于度量标准和使用的聚合 function)。

However, it is not possible to schedule when alerts operate .但是,无法安排警报何时运行

If you wish, you could create an AWS Lambda function (triggered on a schedule) that will call disable_alarm_actions() and enable_alarm_actions() .如果您愿意,您可以创建一个AWS Lambda function (按计划触发),它将调用disable_alarm_actions()enable_alarm_actions() The documentation says:文档说:

disable_alarm_actions() : Disables the actions for the specified alarms. disable_alarm_actions() :禁用指定警报的操作。 When an alarm's actions are disabled, the alarm actions do not execute when the alarm state changes.当警报动作被禁用时,警报动作不会在警报 state 变化时执行。

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

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