Class Percentiles
java.lang.Object
org.apache.kafka.common.metrics.stats.SampledStat
org.apache.kafka.common.metrics.stats.Percentiles
- All Implemented Interfaces:
CompoundStat,Measurable,MeasurableStat,MetricValueProvider<Double>,Stat
A compound stat that reports one or more percentiles
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.kafka.common.metrics.CompoundStat
CompoundStat.NamedMeasurableConstructor Summary
ConstructorsConstructorDescriptionPercentiles(int sizeInBytes, double min, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles) Percentiles(int sizeInBytes, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles) Method Summary
Modifier and TypeMethodDescriptiondoublecombine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now) stats()doublevalue(MetricConfig config, long now, double quantile) Methods inherited from class org.apache.kafka.common.metrics.stats.SampledStat
current, measure, oldest, record, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.kafka.common.metrics.Measurable
value
Constructor Details
Percentiles
public Percentiles(int sizeInBytes, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles) Percentiles
public Percentiles(int sizeInBytes, double min, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles)
Method Details
stats
- Specified by:
statsin interfaceCompoundStat
value
combine
public double combine(List<org.apache.kafka.common.metrics.stats.SampledStat.Sample> samples, MetricConfig config, long now) - Specified by:
combinein classSampledStat