Module io.prometheus.metrics.model
Class CounterSnapshot.CounterDataPointSnapshot.Builder
java.lang.Object
io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder<CounterSnapshot.CounterDataPointSnapshot.Builder>
io.prometheus.metrics.model.snapshots.CounterSnapshot.CounterDataPointSnapshot.Builder
- Enclosing class:
CounterSnapshot.CounterDataPointSnapshot
public static class CounterSnapshot.CounterDataPointSnapshot.Builder
extends DataPointSnapshot.Builder<CounterSnapshot.CounterDataPointSnapshot.Builder>
-
Field Summary
Fields inherited from class io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder
labels, scrapeTimestampMillis -
Method Summary
Modifier and TypeMethodDescriptionbuild()createdTimestampMillis(long createdTimestampMillis) self()value(double value) Counter value.Methods inherited from class io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder
labels, scrapeTimestampMillis
-
Method Details
-
value
Counter value. This is required. The value must not be negative. -
exemplar
-
createdTimestampMillis
public CounterSnapshot.CounterDataPointSnapshot.Builder createdTimestampMillis(long createdTimestampMillis) -
build
-
self
- Specified by:
selfin classDataPointSnapshot.Builder<CounterSnapshot.CounterDataPointSnapshot.Builder>
-