Class DistributionDataPointSnapshot.Builder<T extends DistributionDataPointSnapshot.Builder<T>>

java.lang.Object
io.prometheus.metrics.model.snapshots.DataPointSnapshot.Builder<T>
io.prometheus.metrics.model.snapshots.DistributionDataPointSnapshot.Builder<T>
Direct Known Subclasses:
HistogramSnapshot.HistogramDataPointSnapshot.Builder, SummarySnapshot.SummaryDataPointSnapshot.Builder
Enclosing class:
DistributionDataPointSnapshot

abstract static class DistributionDataPointSnapshot.Builder<T extends DistributionDataPointSnapshot.Builder<T>> extends DataPointSnapshot.Builder<T>
  • Field Details

    • count

      protected long count
    • sum

      protected double sum
    • createdTimestampMillis

      protected long createdTimestampMillis
    • exemplars

      protected Exemplars exemplars
  • Constructor Details

    • Builder

      Builder()
  • Method Details

    • count

      protected T count(long count)
      Count can be explicitly set on summaries (this is a public method for summary metrics), and it is set implicitly on histograms (derived from the bucket counts).
    • sum

      public T sum(double sum)
    • exemplars

      public T exemplars(Exemplars exemplars)
    • createdTimestampMillis

      public T createdTimestampMillis(long createdTimestampMillis)