interface AlarmPromQLCriteriaProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.CfnAlarm.AlarmPromQLCriteriaProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#CfnAlarm_AlarmPromQLCriteriaProperty |
Java | software.amazon.awscdk.services.cloudwatch.CfnAlarm.AlarmPromQLCriteriaProperty |
Python | aws_cdk.aws_cloudwatch.CfnAlarm.AlarmPromQLCriteriaProperty |
TypeScript | aws-cdk-lib » aws_cloudwatch » CfnAlarm » AlarmPromQLCriteriaProperty |
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 alarmPromQLCriteriaProperty: cloudwatch.CfnAlarm.AlarmPromQLCriteriaProperty = {
pendingPeriod: 123,
query: 'query',
recoveryPeriod: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| pending | number | The pending period for the alarm. |
| query? | string | The PromQL query string. |
| recovery | number | The recovery period for the alarm. |
pendingPeriod?
Type:
number
(optional)
The pending period for the alarm.
query?
Type:
string
(optional)
The PromQL query string.
recoveryPeriod?
Type:
number
(optional)
The recovery period for the alarm.

.NET
Go
Java
Python
TypeScript