public static enum MetricSample.Type extends Enum<MetricSample.Type>
| 枚举常量和说明 |
|---|
COUNTER |
DISTRIBUTION_SUMMARY |
GAUGE |
LONG_TASK_TIMER |
TIMER |
public static final MetricSample.Type COUNTER
public static final MetricSample.Type GAUGE
public static final MetricSample.Type LONG_TASK_TIMER
public static final MetricSample.Type TIMER
public static final MetricSample.Type DISTRIBUTION_SUMMARY
public static MetricSample.Type[] values()
for (MetricSample.Type c : MetricSample.Type.values()) System.out.println(c);
public static MetricSample.Type valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.