Class InfoSnapshot.InfoDataPointSnapshot

java.lang.Object
io.prometheus.metrics.model.snapshots.DataPointSnapshot
io.prometheus.metrics.model.snapshots.InfoSnapshot.InfoDataPointSnapshot
Enclosing class:
InfoSnapshot

public static class InfoSnapshot.InfoDataPointSnapshot extends DataPointSnapshot
  • Constructor Details

    • InfoDataPointSnapshot

      public InfoDataPointSnapshot(Labels labels)
      To create a new InfoSnapshot.InfoDataPointSnapshot, you can either call the constructor directly or use the Builder with builder().
      Parameters:
      labels - must not be null. Use Labels.EMPTY if there are no labels.
    • InfoDataPointSnapshot

      public InfoDataPointSnapshot(Labels labels, long scrapeTimestampMillis)
      Constructor with an additional scrape timestamp. This is only useful in rare cases as the scrape timestamp is usually set by the Prometheus server during scraping. Exceptions include mirroring metrics with given timestamps from other metric sources.
  • Method Details