Module io.prometheus.metrics.model
Class GaugeSnapshot.Builder
java.lang.Object
io.prometheus.metrics.model.snapshots.MetricSnapshot.Builder<GaugeSnapshot.Builder>
io.prometheus.metrics.model.snapshots.GaugeSnapshot.Builder
- Enclosing class:
GaugeSnapshot
-
Method Summary
Modifier and TypeMethodDescriptionbuild()dataPoint(GaugeSnapshot.GaugeDataPointSnapshot dataPoint) Add a data point.protected GaugeSnapshot.Builderself()Methods inherited from class io.prometheus.metrics.model.snapshots.MetricSnapshot.Builder
buildMetadata, help, name, unit
-
Method Details
-
dataPoint
Add a data point. This can be called multiple times to add multiple data points. -
build
- Specified by:
buildin classMetricSnapshot.Builder<GaugeSnapshot.Builder>
-
self
- Specified by:
selfin classMetricSnapshot.Builder<GaugeSnapshot.Builder>
-