Class HistogramSnapshot
java.lang.Object
io.micrometer.core.instrument.distribution.HistogramSnapshot
-
Constructor Summary
ConstructorsConstructorDescriptionHistogramSnapshot(long count, double total, double max, ValueAtPercentile @Nullable [] percentileValues, CountAtBucket @Nullable [] histogramCounts, @Nullable BiConsumer<PrintStream, Double> summaryOutput) -
Method Summary
Modifier and TypeMethodDescriptionlongcount()static HistogramSnapshotempty(long count, double total, double max) doublemax()doubledoublemean()doublevoidoutputSummary(PrintStream out, double scale) toString()doubletotal()double
-
Constructor Details
-
HistogramSnapshot
public HistogramSnapshot(long count, double total, double max, ValueAtPercentile @Nullable [] percentileValues, CountAtBucket @Nullable [] histogramCounts, @Nullable BiConsumer<PrintStream, 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