Class HistogramSnapshot
java.lang.Object
io.micrometer.core.instrument.distribution.HistogramSnapshot
public final class HistogramSnapshot
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description HistogramSnapshot(long count, double total, double max, ValueAtPercentile[] percentileValues, CountAtBucket[] histogramCounts, java.util.function.BiConsumer<java.io.PrintStream,java.lang.Double> summaryOutput) -
Method Summary
Modifier and Type Method Description longcount()static HistogramSnapshotempty(long count, double total, double max)CountAtBucket[]histogramCounts()doublemax()doublemax(java.util.concurrent.TimeUnit unit)doublemean()doublemean(java.util.concurrent.TimeUnit unit)voidoutputSummary(java.io.PrintStream out, double scale)ValueAtPercentile[]percentileValues()java.lang.StringtoString()doubletotal()doubletotal(java.util.concurrent.TimeUnit unit)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
HistogramSnapshot
public HistogramSnapshot(long count, double total, double max, @Nullable ValueAtPercentile[] percentileValues, @Nullable CountAtBucket[] histogramCounts, @Nullable java.util.function.BiConsumer<java.io.PrintStream,java.lang.Double> summaryOutput)- Parameters:
count- Total number of recordingstotal- In nanos if a unit of timemax- In nanos if a unit of timepercentileValues- Pre-computed percentiles.histogramCounts- Bucket counts.summaryOutput- A function defining how to print the histogram.
-
-
Method Details
-
count
public long count() -
total
public double total() -
total
public double total(java.util.concurrent.TimeUnit unit) -
max
public double max() -
max
public double max(java.util.concurrent.TimeUnit unit) -
mean
public double mean() -
mean
public double mean(java.util.concurrent.TimeUnit unit) -
percentileValues
-
histogramCounts
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
empty
-
outputSummary
public void outputSummary(java.io.PrintStream out, double scale)
-