Package io.prometheus.client
Enum Collector.Type
- java.lang.Object
-
- java.lang.Enum<Collector.Type>
-
- io.prometheus.client.Collector.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<Collector.Type>
- Enclosing class:
- Collector
public static enum Collector.Type extends Enum<Collector.Type>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collector.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static Collector.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNKNOWN
public static final Collector.Type UNKNOWN
-
COUNTER
public static final Collector.Type COUNTER
-
GAUGE
public static final Collector.Type GAUGE
-
STATE_SET
public static final Collector.Type STATE_SET
-
INFO
public static final Collector.Type INFO
-
HISTOGRAM
public static final Collector.Type HISTOGRAM
-
GAUGE_HISTOGRAM
public static final Collector.Type GAUGE_HISTOGRAM
-
SUMMARY
public static final Collector.Type SUMMARY
-
-
Method Detail
-
values
public static Collector.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Collector.Type c : Collector.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Collector.Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-