- class aws_cdk.aws_cloudwatch.AlarmStatusWidgetSortBy(value)
The sort possibilities for AlarmStatusWidgets.
# 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] ))
Choose DEFAULT to sort them in alphabetical order by alarm name.
Choose STATE_UPDATED_TIMESTAMP to sort them first by alarm state, with alarms in ALARM state first, INSUFFICIENT_DATA alarms next, and OK alarms last.
Within each group, the alarms are sorted by when they last changed state, with more recent state changes listed first.
Choose TIMESTAMP to sort them by the time when the alarms most recently changed state, no matter the current alarm state.
The alarm that changed state most recently is listed first.