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::Alarm AlarmPromQLCriteria
Contains the configuration that determines how a PromQL alarm evaluates its contributors, including the query to run and the durations that define when contributors transition between states.
Syntax
To declare this entity in your CloudFormation template, use the following syntax:
JSON
{ "PendingPeriod" :Integer, "Query" :String, "RecoveryPeriod" :Integer}
YAML
PendingPeriod:IntegerQuery:StringRecoveryPeriod:Integer
Properties
PendingPeriod-
The duration, in seconds, that a contributor must be continuously breaching before it transitions to the
ALARMstate.Required: No
Type: Integer
Minimum:
0Maximum:
86400Update requires: No interruption
Query-
The PromQL query that the alarm evaluates. The query must return a result of vector type. Each entry in the vector result represents an alarm contributor.
Required: No
Type: String
Minimum:
1Maximum:
10000Update requires: No interruption
RecoveryPeriod-
The duration, in seconds, that a contributor must continuously not be breaching before it transitions back to the
OKstate.Required: No
Type: Integer
Minimum:
0Maximum:
86400Update requires: No interruption