interface EvaluationCriteriaProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnAlarm.EvaluationCriteriaProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnAlarm_EvaluationCriteriaProperty |
Java | software.amazon.awscdk.services.cloudwatch.CfnAlarm.EvaluationCriteriaProperty |
Python | aws_cdk.aws_cloudwatch.CfnAlarm.EvaluationCriteriaProperty |
TypeScript | aws-cdk-lib » aws_cloudwatch » CfnAlarm » EvaluationCriteriaProperty |
The evaluation criteria for an alarm.
This is a union type that currently supports PromQLCriteria.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const evaluationCriteriaProperty: cloudwatch.CfnAlarm.EvaluationCriteriaProperty = {
promQlCriteria: {
pendingPeriod: 123,
query: 'query',
recoveryPeriod: 123,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| prom | IResolvable | Alarm | 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. |
promQlCriteria?
Type:
IResolvable | Alarm
(optional)
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.

.NET
Go
Java
Python
TypeScript