public enum MetricType extends Enum<MetricType>
| 枚举常量和说明 |
|---|
cumulative
累积:该值是一个总数,从给定的开始时间开始累积。
|
delta
增量:在指定时间段内修改。
|
gauge
量规:量值是一个连续变化的度量单位在某一特定时间的瞬时样本。
|
public static final MetricType cumulative
public static final MetricType delta
public static final MetricType gauge
public static MetricType[] values()
for (MetricType c : MetricType.values()) System.out.println(c);
public static MetricType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2021. All rights reserved.