如何使用 CloudFormation 启用 M out of N CloudWatch 警报?
How to enable M out of N CloudWatch Alarm with CloudFormation?
Since december 2017 仅当 N 个数据点中的 M 个数据点发生违规时,才有可能触发 CloudWatch Alarm 警报。使用 CloudFormation 创建警报时,CloudWatch::Alarm::EvaluationPeriods
会影响(连同时间段)所讨论的 N。
默认情况下,警报是使用 M = N 创建的。不过我找不到更改 M 的方法。 CloudFormation 还不支持吗?
看起来它终于得到支持并正式记录在案了。感谢 Tim Malone 指出道具名称。
DatapointsToAlarm
The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M. For more information, see Evaluating an Alarm in the Amazon CloudWatch User Guide.
Required: No
Type: Integer
Update requires: No interruption
Since december 2017 仅当 N 个数据点中的 M 个数据点发生违规时,才有可能触发 CloudWatch Alarm 警报。使用 CloudFormation 创建警报时,CloudWatch::Alarm::EvaluationPeriods
会影响(连同时间段)所讨论的 N。
默认情况下,警报是使用 M = N 创建的。不过我找不到更改 M 的方法。 CloudFormation 还不支持吗?
看起来它终于得到支持并正式记录在案了。感谢 Tim Malone 指出道具名称。
DatapointsToAlarm
The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an "M out of N" alarm. In that case, this value is the M. For more information, see Evaluating an Alarm in the Amazon CloudWatch User Guide.
Required: No
Type: Integer
Update requires: No interruption