public class Avg extends SampledStat
SampledStat
that maintains a simple average over its samples.SampledStat.Sample
samples
Constructor and Description |
---|
Avg() |
Modifier and Type | Method and Description |
---|---|
double |
combine(List<SampledStat.Sample> samples,
MetricConfig config,
long now) |
protected void |
update(SampledStat.Sample sample,
MetricConfig config,
double value,
long now) |
current, measure, newSample, oldest, purgeObsoleteSamples, record, toString
protected void update(SampledStat.Sample sample, MetricConfig config, double value, long now)
update
in class SampledStat
public double combine(List<SampledStat.Sample> samples, MetricConfig config, long now)
combine
in class SampledStat