public static enum Metrics.MetricType extends Enum<Metrics.MetricType> implements com.google.protobuf.ProtocolMessageEnum
io.prometheus.client.MetricType
Enum Constant and Description |
---|
COUNTER
COUNTER = 0; |
GAUGE
GAUGE = 1; |
HISTOGRAM
HISTOGRAM = 4; |
SUMMARY
SUMMARY = 2; |
UNTYPED
UNTYPED = 3; |
Modifier and Type | Field and Description |
---|---|
static int |
COUNTER_VALUE
COUNTER = 0; |
static int |
GAUGE_VALUE
GAUGE = 1; |
static int |
HISTOGRAM_VALUE
HISTOGRAM = 4; |
static int |
SUMMARY_VALUE
SUMMARY = 2; |
static int |
UNTYPED_VALUE
UNTYPED = 3; |
Modifier and Type | Method and Description |
---|---|
static Metrics.MetricType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Metrics.MetricType> |
internalGetValueMap() |
static Metrics.MetricType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Metrics.MetricType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Metrics.MetricType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Metrics.MetricType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Metrics.MetricType COUNTER
COUNTER = 0;
public static final Metrics.MetricType GAUGE
GAUGE = 1;
public static final Metrics.MetricType SUMMARY
SUMMARY = 2;
public static final Metrics.MetricType UNTYPED
UNTYPED = 3;
public static final Metrics.MetricType HISTOGRAM
HISTOGRAM = 4;
public static final int COUNTER_VALUE
COUNTER = 0;
public static final int GAUGE_VALUE
GAUGE = 1;
public static final int SUMMARY_VALUE
SUMMARY = 2;
public static final int UNTYPED_VALUE
UNTYPED = 3;
public static final int HISTOGRAM_VALUE
HISTOGRAM = 4;
public static Metrics.MetricType[] values()
for (Metrics.MetricType c : Metrics.MetricType.values()) System.out.println(c);
public static Metrics.MetricType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Metrics.MetricType valueOf(int value)
forNumber(int)
instead.public static Metrics.MetricType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Metrics.MetricType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Metrics.MetricType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.