Class Snapshot.HistogramBucket

java.lang.Object
org.eclipse.microprofile.metrics.Snapshot.HistogramBucket
Enclosing class:
Snapshot

public static class Snapshot.HistogramBucket extends Object
Represents a cumulative histogram bucket at the moment it was sampled from the Snapshot. The bucket of Timer will be represented in nanoseconds. See Snapshot.bucketValues()
  • Constructor Details

    • HistogramBucket

      public HistogramBucket(double bucket, long count)
      Parameters:
      count - count at this bucket
      bucket - the upper limit value of this bucket
  • Method Details

    • 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 String toString()
      Overrides:
      toString in class Object