@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:35.573Z") public enum AlarmStatusWidgetSortBy extends java.lang.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(java.lang.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.
|
public static final AlarmStatusWidgetSortBy DEFAULT
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.
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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null