@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.213Z") @Stability(value=Stable) public enum AlarmStatusWidgetSortBy extends Enum<AlarmStatusWidgetSortBy>
Example:
Dashboard dashboard;
Alarm errorAlarm;
dashboard.addWidgets(AlarmStatusWidget.Builder.create()
.title("Errors")
.alarms(List.of(errorAlarm))
.sortBy(AlarmStatusWidgetSortBy.STATE_UPDATED_TIMESTAMP)
.states(List.of(AlarmState.ALARM))
.build());
| Enum Constant and Description |
|---|
DEFAULT
Choose DEFAULT to sort them in alphabetical order by alarm name.
|
STATE_UPDATED_TIMESTAMP
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.
|
TIMESTAMP
Choose TIMESTAMP to sort them by the time when the alarms most recently changed state, no matter the current alarm state.
|
| Modifier and Type | Method and Description |
|---|---|
static AlarmStatusWidgetSortBy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlarmStatusWidgetSortBy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final AlarmStatusWidgetSortBy DEFAULT
@Stability(value=Stable) public static final AlarmStatusWidgetSortBy STATE_UPDATED_TIMESTAMP
Within each group, the alarms are sorted by when they last changed state, with more recent state changes listed first.
@Stability(value=Stable) public static final AlarmStatusWidgetSortBy TIMESTAMP
The alarm that changed state most recently is listed first.
public static AlarmStatusWidgetSortBy[] values()
for (AlarmStatusWidgetSortBy c : AlarmStatusWidgetSortBy.values()) System.out.println(c);
public static AlarmStatusWidgetSortBy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.