Enum Class Metrics.MetricType
java.lang.Object
java.lang.Enum<Metrics.MetricType>
io.prometheus.metrics.expositionformats.generated.com_google_protobuf_4_33_0.Metrics.MetricType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Metrics.MetricType>,java.lang.constant.Constable
- Enclosing class:
Metrics
public static enum Metrics.MetricType
extends Enum<Metrics.MetricType>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
io.prometheus.client.MetricType-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCOUNTER must use the Metric field "counter".GAUGE must use the Metric field "gauge".GAUGE_HISTOGRAM must use the Metric field "histogram".HISTOGRAM must use the Metric field "histogram".SUMMARY must use the Metric field "summary".UNTYPED must use the Metric field "untyped". -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intCOUNTER must use the Metric field "counter".static final intGAUGE_HISTOGRAM must use the Metric field "histogram".static final intGAUGE must use the Metric field "gauge".static final intHISTOGRAM must use the Metric field "histogram".static final intSUMMARY must use the Metric field "summary".static final intUNTYPED must use the Metric field "untyped". -
Method Summary
Modifier and TypeMethodDescriptionstatic Metrics.MetricTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Metrics.MetricType> static Metrics.MetricTypevalueOf(int value) Deprecated.static Metrics.MetricTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static Metrics.MetricTypeReturns the enum constant of this class with the specified name.static Metrics.MetricType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COUNTER
COUNTER must use the Metric field "counter".
COUNTER = 0; -
GAUGE
GAUGE must use the Metric field "gauge".
GAUGE = 1; -
SUMMARY
SUMMARY must use the Metric field "summary".
SUMMARY = 2; -
UNTYPED
UNTYPED must use the Metric field "untyped".
UNTYPED = 3; -
HISTOGRAM
HISTOGRAM must use the Metric field "histogram".
HISTOGRAM = 4; -
GAUGE_HISTOGRAM
GAUGE_HISTOGRAM must use the Metric field "histogram".
GAUGE_HISTOGRAM = 5;
-
-
Field Details
-
COUNTER_VALUE
public static final int COUNTER_VALUECOUNTER must use the Metric field "counter".
COUNTER = 0;- See Also:
-
GAUGE_VALUE
public static final int GAUGE_VALUEGAUGE must use the Metric field "gauge".
GAUGE = 1;- See Also:
-
SUMMARY_VALUE
public static final int SUMMARY_VALUESUMMARY must use the Metric field "summary".
SUMMARY = 2;- See Also:
-
UNTYPED_VALUE
public static final int UNTYPED_VALUEUNTYPED must use the Metric field "untyped".
UNTYPED = 3;- See Also:
-
HISTOGRAM_VALUE
public static final int HISTOGRAM_VALUEHISTOGRAM must use the Metric field "histogram".
HISTOGRAM = 4;- See Also:
-
GAUGE_HISTOGRAM_VALUE
public static final int GAUGE_HISTOGRAM_VALUEGAUGE_HISTOGRAM must use the Metric field "histogram".
GAUGE_HISTOGRAM = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-