@Immutable public abstract static class Distribution.Bucket extends Object
| Modifier and Type | Method and Description |
|---|---|
static Distribution.Bucket |
create(long count)
Creates a
Distribution.Bucket. |
static Distribution.Bucket |
create(long count,
Distribution.Exemplar exemplar)
Creates a
Distribution.Bucket with an Distribution.Exemplar. |
abstract long |
getCount()
Returns the number of values in each bucket of the histogram.
|
abstract Distribution.Exemplar |
getExemplar()
Returns the
Distribution.Exemplar associated with the Distribution.Bucket, or null if there
isn't one. |
public static Distribution.Bucket create(long count)
Distribution.Bucket.count - the number of values in each bucket of the histogram.Bucket.public static Distribution.Bucket create(long count, Distribution.Exemplar exemplar)
Distribution.Bucket with an Distribution.Exemplar.count - the number of values in each bucket of the histogram.exemplar - the Exemplar of this Bucket.Bucket.public abstract long getCount()
@Nullable public abstract Distribution.Exemplar getExemplar()
Distribution.Exemplar associated with the Distribution.Bucket, or null if there
isn't one.Exemplar associated with the Bucket, or null if there
isn't one.