Class TimeWindowPercentileHistogram
java.lang.Object
io.micrometer.core.instrument.distribution.TimeWindowPercentileHistogram
- All Implemented Interfaces:
Histogram
,AutoCloseable
NOTE: This class is intended for internal use as an implementation detail. You
should not compile against its API. Please contact the project maintainers if you need
this as public API.
A histogram implementation that supports the computation of percentiles by Micrometer for publishing to a monitoring system.
-
Constructor Summary
ConstructorDescriptionTimeWindowPercentileHistogram
(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.HdrHistogram.DoubleHistogram
protected org.HdrHistogram.DoubleRecorder
void
recordDouble
(double value) void
recordLong
(long value) final HistogramSnapshot
takeSnapshot
(long count, double total, double max)
-
Constructor Details
-
TimeWindowPercentileHistogram
public TimeWindowPercentileHistogram(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles)
-
-
Method Details
-
takeSnapshot
- Specified by:
takeSnapshot
in interfaceHistogram
-
recordLong
public void recordLong(long value) - Specified by:
recordLong
in interfaceHistogram
-
recordDouble
public void recordDouble(double value) - Specified by:
recordDouble
in interfaceHistogram
-
accumulatedHistogram
protected org.HdrHistogram.DoubleHistogram accumulatedHistogram() -
currentHistogram
protected org.HdrHistogram.DoubleRecorder currentHistogram()
-