public enum MetricState extends Enum<MetricState>
Enum Constant and Description |
---|
GRAY
Indicates an "uninteresting" value.
|
GREEN
Indicates an "interesting" amount of activity
|
RED
Indicates a failure condition (system is failing or very likely to fail soon)
|
YELLOW
Indicates a critical amount of activity
|
Modifier and Type | Method and Description |
---|---|
static MetricState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MetricState GRAY
public static final MetricState GREEN
public static final MetricState YELLOW
public static final MetricState RED
public static MetricState[] values()
for (MetricState c : MetricState.values()) System.out.println(c);
public static MetricState 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 © 2018. All rights reserved.