Class DataPointSnapshot.Builder<T extends DataPointSnapshot.Builder<T>>

Object
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
  • Constructor Details

  • Method Details

    • labels

      public T labels(Labels labels)
    • scrapeTimestampMillis

      public T scrapeTimestampMillis(long 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.