public enum AlarmSeverity extends java.lang.Enum<AlarmSeverity>
Enum Constant and Description |
---|
CRITICAL
Indicates that a service affecting condition has occurred and an
immediate corrective action is required.
|
MAJOR
Indicates that a service affecting condition has developed and an
urgent corrective action is required.
|
MINOR
Indicates the existence of a non-service affecting fault condition
and that corrective action should be taken in order to prevent a
more serious (for example, service affecting) fault.
|
NORMAL
Indicates that an alarm has been cleared and the alarming condition
has returned to normal.
|
WARNING
Indicates the existence of a potential or impending service
affecting fault, before any significant effects have been felt.
|
Modifier and Type | Method and Description |
---|---|
static AlarmSeverity |
forDisplayName(java.lang.String displayName)
Get the alarm severity for the given display name.
|
java.lang.String |
getDisplayName()
Returns the human-friendly name of this severity.
|
static AlarmSeverity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AlarmSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlarmSeverity NORMAL
It should be noted that the x733 specification does not define a normal severity but rather lack of an alarm indicates normality. We use this severity for normalized alarms that are retained in the alarm backend as well as for indicating to the SNMP alert handler that an alarm has been cleared, either because its condition has abated or if the server is configured to send interim clear traps between severity changes. The latter use case does not imply that an alarm has returned to normal.
public static final AlarmSeverity WARNING
public static final AlarmSeverity MINOR
public static final AlarmSeverity MAJOR
public static final AlarmSeverity CRITICAL
public static AlarmSeverity[] values()
for (AlarmSeverity c : AlarmSeverity.values()) System.out.println(c);
public static AlarmSeverity 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 nullpublic java.lang.String getDisplayName()
public static AlarmSeverity forDisplayName(java.lang.String displayName)
displayName
- Display name for which alarm severity is requested.