Class HistogramSnapshot
java.lang.Object
io.micrometer.core.instrument.distribution.HistogramSnapshot
-
Constructor Summary
ConstructorDescriptionHistogramSnapshot
(long count, double total, double max, ValueAtPercentile[] percentileValues, CountAtBucket[] histogramCounts, BiConsumer<PrintStream, Double> summaryOutput) -
Method Summary
Modifier and TypeMethodDescriptionlong
count()
static HistogramSnapshot
empty
(long count, double total, double max) double
max()
double
double
mean()
double
void
outputSummary
(PrintStream out, double scale) toString()
double
total()
double
-
Constructor Details
-
HistogramSnapshot
public HistogramSnapshot(long count, double total, double max, @Nullable ValueAtPercentile[] percentileValues, @Nullable CountAtBucket[] 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