enum AlarmState
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.CloudWatch.AlarmState |
Java | software.amazon.awscdk.services.cloudwatch.AlarmState |
Python | aws_cdk.aws_cloudwatch.AlarmState |
TypeScript (source) | @aws-cdk/aws-cloudwatch » AlarmState |
Enumeration indicates state of Alarm used in building Alarm Rule.
Example
declare const dashboard: cloudwatch.Dashboard;
declare const errorAlarm: cloudwatch.Alarm;
dashboard.addWidgets(new cloudwatch.AlarmStatusWidget({
title: "Errors",
alarms: [errorAlarm],
sortBy: cloudwatch.AlarmStatusWidgetSortBy.STATE_UPDATED_TIMESTAMP,
states: [cloudwatch.AlarmState.ALARM],
}));
Members
| Name | Description |
|---|---|
| ALARM | State indicates resource is in ALARM. |
| OK | State indicates resource is not in ALARM. |
| INSUFFICIENT_DATA | State indicates there is not enough data to determine is resource is in ALARM. |
ALARM
State indicates resource is in ALARM.
OK
State indicates resource is not in ALARM.
INSUFFICIENT_DATA
State indicates there is not enough data to determine is resource is in ALARM.

.NET
Java
Python
TypeScript (