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
FieldsFields inherited from class io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder
labels, scrapeTimestampMillis -
Constructor Summary
Constructors -
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
-
Field Details
-
exemplar
-
value
-
createdTimestampMillis
private long createdTimestampMillis
-
-
Constructor Details
-
Builder
private Builder()
-
-
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>
-