public static enum MetricObject.MetricType extends Enum<MetricObject.MetricType>
| 枚举常量和说明 |
|---|
COUNTER
用于累加型的数据
|
DELTA
用于争分整秒的计数
|
GAUGE
用于瞬态数据
|
PERCENTILE
用于集群分位数计算
|
public static final MetricObject.MetricType COUNTER
public static final MetricObject.MetricType GAUGE
public static final MetricObject.MetricType DELTA
public static final MetricObject.MetricType PERCENTILE
public static MetricObject.MetricType[] values()
for (MetricObject.MetricType c : MetricObject.MetricType.values()) System.out.println(c);
public static MetricObject.MetricType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2019. All rights reserved.