@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.212Z") @Stability(value=Stable) public enum AlarmState extends Enum<AlarmState>
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 |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static AlarmState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlarmState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Stable) public static final AlarmState ALARM
@Stability(value=Stable) public static final AlarmState OK
@Stability(value=Stable) public static final AlarmState INSUFFICIENT_DATA
public static AlarmState[] values()
for (AlarmState c : AlarmState.values()) System.out.println(c);
public static AlarmState 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.