Package io.prometheus.client
Class Enumeration.Builder
java.lang.Object
io.prometheus.client.SimpleCollector.Builder<Enumeration.Builder,Enumeration>
io.prometheus.client.Enumeration.Builder
- Enclosing class:
Enumeration
public static class Enumeration.Builder
extends SimpleCollector.Builder<Enumeration.Builder,Enumeration>
-
Field Summary
FieldsFields inherited from class io.prometheus.client.SimpleCollector.Builder
dontInitializeNoLabelsChild, fullname, help, labelNames, name, namespace, subsystem, unit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Return the constructed collector.Take states from the names of the values in an Enum class.Methods inherited from class io.prometheus.client.SimpleCollector.Builder
help, labelNames, name, namespace, register, register, subsystem, unit
-
Field Details
-
states
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
states
-
states
Take states from the names of the values in an Enum class. -
create
Description copied from class:SimpleCollector.Builder
Return the constructed collector.Abstract due to generics limitations.
- Specified by:
create
in classSimpleCollector.Builder<Enumeration.Builder,
Enumeration>
-