Package org.eclipse.microprofile.metrics
Class Snapshot.HistogramBucket
- java.lang.Object
-
- org.eclipse.microprofile.metrics.Snapshot.HistogramBucket
-
- Enclosing class:
- Snapshot
public static class Snapshot.HistogramBucket extends java.lang.Object
Represents a cumulative histogram bucket at the moment it was sampled from the Snapshot. The bucket ofTimer
will be represented in nanoseconds. SeeSnapshot.bucketValues()
-
-
Constructor Summary
Constructors Constructor Description HistogramBucket(double bucket, long count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBucket()
Returns the upper limit value of this bucketlong
getCount()
Returns the count of the bucketjava.lang.String
toString()
-
-
-
Method Detail
-
getCount
public long getCount()
Returns the count of the bucket- Returns:
- the count of the bucket
-
getBucket
public double getBucket()
Returns the upper limit value of this bucket- Returns:
- the upper limit value of this bucket
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-