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 aCountAtBucket
instance.CountAtBucket(long bucket, double count)
Deprecated. -
Method Summary
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.UseCountAtBucket(double, double)
instead since 1.4.0.Create aCountAtBucket
instance.- Parameters:
bucket
- bucketcount
- count
-
CountAtBucket
public CountAtBucket(double bucket, double count)Create aCountAtBucket
instance.- Parameters:
bucket
- bucketcount
- 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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
CountAtBucket(double, double)
instead since 1.4.0.