public class Percentiles extends SampledStat implements CompoundStat
Modifier and Type | Class and Description |
---|---|
static class |
Percentiles.BucketSizing |
SampledStat.Sample
CompoundStat.NamedMeasurable
samples
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, toString
public 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 CompoundStat
public double value(MetricConfig config, long now, double quantile)
public double combine(List<SampledStat.Sample> samples, MetricConfig config, long now)
combine
in class SampledStat
protected org.apache.kafka.common.metrics.stats.Percentiles.HistogramSample newSample(long timeMs)
newSample
in class SampledStat
protected void update(SampledStat.Sample sample, MetricConfig config, double value, long timeMs)
update
in class SampledStat