public enum MetricType extends Enum<MetricType>
ManagedMetric will change over time.| 枚举常量和说明 |
|---|
COUNTER
The measurement values will always increase.
|
GAUGE
The measurement values may go up or down over time.
|
public static final MetricType GAUGE
public static final MetricType COUNTER
public static MetricType[] values()
for (MetricType c : MetricType.values()) System.out.println(c);
public static MetricType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值