Class CounterSnapshot.CounterDataPointSnapshot.Builder
- Enclosing class:
CounterSnapshot.CounterDataPointSnapshot
public static class CounterSnapshot.CounterDataPointSnapshot.Builder
extends DataPointSnapshot.Builder<CounterSnapshot.CounterDataPointSnapshot.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()createdTimestampMillis(long createdTimestampMillis) metricName(String metricName) Optional metric name included in the exception message whenvalue(double)is negative.value(double value) Counter value.Methods inherited from class 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) -
metricName
Optional metric name included in the exception message whenvalue(double)is negative. Does not change the snapshot identity. -
build
-