Class HistogramStatistic.HistogramSnapshot

java.lang.Object
com.arpnetworking.metrics.mad.model.statistics.HistogramStatistic.HistogramSnapshot
Enclosing class:
HistogramStatistic

public static final class HistogramStatistic.HistogramSnapshot extends Object
Represents a snapshot of immutable histogram data.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot io)
  • Method Details

    • getValueAtPercentile

      public Double getValueAtPercentile(double percentile)
      Gets the value of the bucket that corresponds to the percentile.
      Parameters:
      percentile - the percentile
      Returns:
      The value of the bucket at the percentile.
    • getPrecision

      public int getPrecision()
    • getEntriesCount

      public long getEntriesCount()
    • getValues

      public it.unimi.dsi.fastutil.objects.ObjectSortedSet<it.unimi.dsi.fastutil.doubles.Double2LongMap.Entry> getValues()
      Access the histogram bucket to count entries.
      Returns:
      the histogram bucket count entries
    • getValue

      public long getValue(double key)
      Access the histogram bucket count.
      Parameters:
      key - the histogram bucket key
      Returns:
      the count in the bucket