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
ConstructorsModifierConstructorDescriptionTimeWindowPercentileHistogram(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles) protectedTimeWindowPercentileHistogram(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles, boolean isCumulativeBucketCounts, boolean includeInfinityBucket) This constructor allows full customization of the histogram characteristics. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.HdrHistogram.DoubleHistogramprotected org.HdrHistogram.DoubleRecordervoidrecordDouble(double value) voidrecordLong(long value) final HistogramSnapshottakeSnapshot(long count, double total, double max)
-
Constructor Details
-
TimeWindowPercentileHistogram
public TimeWindowPercentileHistogram(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles) -
TimeWindowPercentileHistogram
protected TimeWindowPercentileHistogram(Clock clock, DistributionStatisticConfig distributionStatisticConfig, boolean supportsAggregablePercentiles, boolean isCumulativeBucketCounts, boolean includeInfinityBucket) This constructor allows full customization of the histogram characteristics.- Parameters:
clock- clock used for time windowingdistributionStatisticConfig- distribution config to use with this histogramsupportsAggregablePercentiles- whether the backend receiving this histogram supports aggregating histograms to estimate percentilesisCumulativeBucketCounts- whether histogram bucket counts are cumulativeincludeInfinityBucket- whether to include the infinity histogram bucket- Since:
- 1.13.11
-
-
Method Details
-
takeSnapshot
- Specified by:
takeSnapshotin interfaceHistogram
-
recordLong
public void recordLong(long value) - Specified by:
recordLongin interfaceHistogram
-
recordDouble
public void recordDouble(double value) - Specified by:
recordDoublein interfaceHistogram
-
accumulatedHistogram
protected org.HdrHistogram.DoubleHistogram accumulatedHistogram() -
currentHistogram
protected org.HdrHistogram.DoubleRecorder currentHistogram()
-