public class Percentiles extends SampledStat implements CompoundStat
| Modifier and Type | Class and Description |
|---|---|
static class | Percentiles.BucketSizing |
SampledStat.SampleCompoundStat.NamedMeasurablesamples| Constructor and Description |
|---|
Percentiles(int sizeInBytes, double min, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles) |
Percentiles(int sizeInBytes, double max, Percentiles.BucketSizing bucketing, Percentile... percentiles) |
| Modifier and Type | Method and Description |
|---|---|
double | combine(List<SampledStat.Sample> samples, MetricConfig config, long now) |
protected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSample | newSample(long timeMs) |
List<CompoundStat.NamedMeasurable> | stats() |
protected void | update(SampledStat.Sample sample, MetricConfig config, double value, long timeMs) |
double | value(MetricConfig config, long now, double quantile) |
current, measure, oldest, purgeObsoleteSamples, record, toStringpublic Percentiles(int sizeInBytes,
double max,
Percentiles.BucketSizing bucketing,
Percentile... percentiles)public Percentiles(int sizeInBytes,
double min,
double max,
Percentiles.BucketSizing bucketing,
Percentile... percentiles)public List<CompoundStat.NamedMeasurable> stats()
stats in interface CompoundStatpublic double value(MetricConfig config, long now, double quantile)
public double combine(List<SampledStat.Sample> samples, MetricConfig config, long now)
combine in class SampledStatprotected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSample newSample(long timeMs)
newSample in class SampledStatprotected void update(SampledStat.Sample sample, MetricConfig config, double value, long timeMs)
update in class SampledStat