Module io.prometheus.metrics.model
Class DataPointSnapshot.Builder<T extends DataPointSnapshot.Builder<T>>
java.lang.Object
io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder<T>
- Direct Known Subclasses:
CounterSnapshot.CounterDataPointSnapshot.Builder,GaugeSnapshot.GaugeDataPointSnapshot.Builder,HistogramSnapshot.HistogramDataPointSnapshot.Builder,InfoSnapshot.InfoDataPointSnapshot.Builder,StateSetSnapshot.StateSetDataPointSnapshot.Builder,SummarySnapshot.SummaryDataPointSnapshot.Builder,UnknownSnapshot.UnknownDataPointSnapshot.Builder
- Enclosing class:
- DataPointSnapshot
public abstract static class DataPointSnapshot.Builder<T extends DataPointSnapshot.Builder<T>>
extends Object
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
labels
-
scrapeTimestampMillis
protected long scrapeTimestampMillis
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
labels
-
scrapeTimestampMillis
In most cases you should not set a scrape timestamp, because the scrape timestamp is set by the Prometheus server during scraping. Exceptions include mirroring metrics with given timestamps from other metric sources. -
self
-