public enum MetricType extends Enum<MetricType>
public static final MetricType COUNTER
public static final MetricType GAUGE
public static final MetricType RATE
public static final MetricType HISTOGRAM
public static final MetricType TIMER
public static MetricType[] values()
for (MetricType c : MetricType.values()) System.out.println(c);
public static MetricType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String toString()
toString 在类中 Enum<MetricType>Copyright © 2022 The Apache Software Foundation. All rights reserved.