public enum MetricsType extends Enum<MetricsType> implements IEnumCombobox
| 限定符和类型 | 方法和说明 |
|---|---|
io.prometheus.client.SimpleCollector.Builder |
buildMitrices(String name,
String help,
com.alibaba.fastjson.JSONObject lables) |
io.prometheus.client.SimpleCollector.Builder |
buildMitrices(String name,
String help,
String... lables) |
void |
doWith(io.prometheus.client.SimpleCollector simpleCollector,
String value) |
static MetricsType |
find(String name) |
String |
getDesc_en() |
String |
getDesc_zh() |
String |
getDesc() |
IPrometheusMetricsCreator<?> |
getMetricsCreator() |
String |
getName() |
static MetricsType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static MetricsType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetByGroups, getGroups, getGroupSub, getListJson, getNameUsepublic static final MetricsType counter
public static final MetricsType gauge
public static final MetricsType histogram
public static final MetricsType summary
public static MetricsType[] values()
for (MetricsType c : MetricsType.values()) System.out.println(c);
public static MetricsType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public IPrometheusMetricsCreator<?> getMetricsCreator()
public String getDesc()
getDesc 在接口中 IEnumComboboxpublic String getName()
getName 在接口中 IEnumComboboxpublic io.prometheus.client.SimpleCollector.Builder buildMitrices(String name, String help, com.alibaba.fastjson.JSONObject lables)
public io.prometheus.client.SimpleCollector.Builder buildMitrices(String name, String help, String... lables)
public void doWith(io.prometheus.client.SimpleCollector simpleCollector,
String value)
public String getDesc_zh()
getDesc_zh 在接口中 IEnumComboboxpublic String getDesc_en()
getDesc_en 在接口中 IEnumComboboxpublic static MetricsType find(String name)
Copyright © 2022–2023. All rights reserved.