Package io.opencensus.stats
Class BucketBoundaries
java.lang.Object
io.opencensus.stats.BucketBoundaries
- Direct Known Subclasses:
AutoValue_BucketBoundaries
The bucket boundaries for a histogram.
- Since:
- 0.8
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final BucketBoundaries
Returns aBucketBoundaries
with the given buckets.dropNegativeBucketBounds
(List<Double> bucketBoundaries) Returns a list of histogram bucket boundaries.
-
Field Details
-
logger
-
-
Constructor Details
-
BucketBoundaries
public BucketBoundaries()
-
-
Method Details
-
create
Returns aBucketBoundaries
with the given buckets.- Parameters:
bucketBoundaries
- the boundaries for the buckets in the underlying histogram.- Returns:
- a new
BucketBoundaries
with the specified boundaries. - Throws:
NullPointerException
- ifbucketBoundaries
is null.IllegalArgumentException
- ifbucketBoundaries
is not sorted.- Since:
- 0.8
-
dropNegativeBucketBounds
-
getBoundaries
Returns a list of histogram bucket boundaries.- Returns:
- a list of histogram bucket boundaries.
- Since:
- 0.8
-