View a markdown version of this page

AWS::CloudWatch::Alert Condition - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.

AWS::CloudWatch::Alert Condition

The thresholds that set the alert's state. Specify at least one of WarningThreshold and CriticalThreshold.

Syntax

To declare this entity in your CloudFormation template, use the following syntax:

JSON

{ "Comparator" : String, "CriticalThreshold" : Number, "ThresholdField" : String, "ThresholdMode" : String, "WarningThreshold" : Number }

YAML

Comparator: String CriticalThreshold: Number ThresholdField: String ThresholdMode: String WarningThreshold: Number

Properties

Comparator

The comparison operator. Valid values: GT, GTE, LT, LTE (greater than, greater than or equal to, less than, less than or equal to).

Required: No

Type: String

Allowed values: GT | LT | GTE | LTE

Update requires: No interruption

CriticalThreshold

The value at which the alert enters the CRITICAL state.

Required: No

Type: Number

Update requires: No interruption

ThresholdField

The result field to compare against the threshold. Required when ThresholdMode is FIELD_VALUE.

Required: No

Type: String

Maximum: 256

Update requires: No interruption

ThresholdMode

How the threshold is applied. COUNT_OF_RESULTS compares the number of rows the query returns. FIELD_VALUE compares the value of ThresholdField in each result row; each row is tracked separately.

Required: No

Type: String

Allowed values: COUNT_OF_RESULTS | FIELD_VALUE

Update requires: No interruption

WarningThreshold

The value at which the alert enters the WARNING state.

Required: No

Type: Number

Update requires: No interruption