AlarmState
- class aws_cdk.aws_cloudwatch.AlarmState(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Enumeration indicates state of Alarm used in building Alarm Rule.
- ExampleMetadata:
infused
Example:
# dashboard: cloudwatch.Dashboard # error_alarm: cloudwatch.Alarm dashboard.add_widgets(cloudwatch.AlarmStatusWidget( title="Errors", alarms=[error_alarm], sort_by=cloudwatch.AlarmStatusWidgetSortBy.STATE_UPDATED_TIMESTAMP, states=[cloudwatch.AlarmState.ALARM] ))
Attributes
- ALARM
State indicates resource is in ALARM.
- INSUFFICIENT_DATA
State indicates there is not enough data to determine is resource is in ALARM.
- OK
State indicates resource is not in ALARM.