public enum HealthStatus extends java.lang.Enum<HealthStatus>
UNKNOWN: Health check has not yet executed or failed to execute properly; status is inconclusive. OK: Health check reported healthy status. This does not imply recovery. WARNING: Health check reported warning threshold reached or critical is possible. CRITICAL: Health check reported critical status; action should be taken. FATAL: Health check reported fatal; restart expected.
Enum Constant and Description |
---|
CRITICAL |
DISABLED |
FATAL |
OK |
UNKNOWN |
WARNING |
Modifier and Type | Method and Description |
---|---|
static HealthStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HealthStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HealthStatus UNKNOWN
public static final HealthStatus DISABLED
public static final HealthStatus OK
public static final HealthStatus WARNING
public static final HealthStatus CRITICAL
public static final HealthStatus FATAL
public static HealthStatus[] values()
for (HealthStatus c : HealthStatus.values()) System.out.println(c);
public static HealthStatus 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