- Enclosing class:
StateSet
public static class StateSet.Builder
extends MetricWithFixedMetadata.Builder<StateSet.Builder,StateSet>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()MetricsPropertiesOverride if there are more properties than just exemplars enabled.Declare the states that should be represented by this StateSet.Declare the states that should be represented by this StateSet.Allow Exemplars for this metric.Turn off Exemplars for this metric.Methods inherited from class MetricWithFixedMetadata.Builder
constLabels, help, labelNames, name, unit
-
Method Details
-
states
Declare the states that should be represented by this StateSet. -
states
Declare the states that should be represented by this StateSet. -
build
- Specified by:
buildin classMetricWithFixedMetadata.Builder<StateSet.Builder,StateSet>
-
withExemplars
Allow Exemplars for this metric. -
withoutExemplars
Turn off Exemplars for this metric. -
getDefaultProperties
public MetricsProperties getDefaultProperties()Override if there are more properties than just exemplars enabled.
-