Class HistogramStatistic.HistogramSnapshot
java.lang.Object
com.arpnetworking.metrics.mad.model.statistics.HistogramStatistic.HistogramSnapshot
- Enclosing class:
- HistogramStatistic
Represents a snapshot of immutable histogram data.
- Author:
- Brandon Arp (brandon dot arp at inscopemetrics dot io)
-
Method Summary
Modifier and TypeMethodDescriptionlong
int
long
getValue
(double key) Access the histogram bucket count.getValueAtPercentile
(double percentile) Gets the value of the bucket that corresponds to the percentile.it.unimi.dsi.fastutil.objects.ObjectSortedSet<it.unimi.dsi.fastutil.doubles.Double2LongMap.Entry>
Access the histogram bucket to count entries.
-
Method Details
-
getValueAtPercentile
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
-