public class TimeHistogram extends java.lang.Object implements Histogram<java.lang.Double>
Modifier and Type | Class and Description |
---|---|
static class |
TimeHistogram.Builder |
Histogram.Summation
Modifier and Type | Method and Description |
---|---|
void |
bucketTimeScale(java.util.concurrent.TimeUnit bucketTimeScale)
Set the time scale that the buckets should be represented in.
|
Histogram<java.lang.Double> |
filterBuckets(BucketFilter<java.lang.Double> filter) |
Bucket<java.lang.Double> |
getBucket(java.lang.Double tag) |
java.util.Collection<Bucket<java.lang.Double>> |
getBuckets() |
void |
infinityBucket() |
boolean |
isCumulative() |
void |
observe(double value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exponential, exponentialFunction, exponentialTime, function, linear, linearFunction, linearTime, percentiles, percentilesTime
public void bucketTimeScale(java.util.concurrent.TimeUnit bucketTimeScale)
bucketTimeScale
is seconds, then the buckets that are reported will be
[0.001, ..., 0.01]. Future values observed by this histogram will also be assumed to be in bucketTimeScale
units and scaled to the bucket function's base unit.bucketTimeScale
- Should always correspond to the base time unit of the monitoring system for consistency.public java.util.Collection<Bucket<java.lang.Double>> getBuckets()
getBuckets
in interface Histogram<java.lang.Double>
public Histogram<java.lang.Double> filterBuckets(BucketFilter<java.lang.Double> filter)
filterBuckets
in interface Histogram<java.lang.Double>
public void infinityBucket()
public Bucket<java.lang.Double> getBucket(java.lang.Double tag)
public void observe(double value)
public boolean isCumulative()
isCumulative
in interface Histogram<java.lang.Double>