Class CountAtBucket

java.lang.Object
io.micrometer.core.instrument.distribution.CountAtBucket

public final class CountAtBucket
extends java.lang.Object
The count of events less than or equal to a histogram bucket.
  • Constructor Summary

    Constructors
    Constructor Description
    CountAtBucket​(double bucket, double count)
    Create a CountAtBucket instance.
    CountAtBucket​(long bucket, double count)
    Deprecated.
    Use CountAtBucket(double, double) instead since 1.4.0.
  • Method Summary

    Modifier and Type Method Description
    double bucket()  
    double bucket​(java.util.concurrent.TimeUnit unit)  
    double count()  
    boolean equals​(java.lang.Object o)  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CountAtBucket

      @Deprecated public CountAtBucket​(long bucket, double count)
      Deprecated.
      Use CountAtBucket(double, double) instead since 1.4.0.
      Create a CountAtBucket instance.
      Parameters:
      bucket - bucket
      count - count
    • CountAtBucket

      public CountAtBucket​(double bucket, double count)
      Create a CountAtBucket instance.
      Parameters:
      bucket - bucket
      count - count
      Since:
      1.4.0
  • Method Details

    • bucket

      public double bucket()
    • bucket

      public double bucket​(java.util.concurrent.TimeUnit unit)
    • count

      public double count()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object