-
- All Implemented Interfaces:
public class BucketStats
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBucketStats.Snapshotpublic enumBucketStats.FormatHow to format the JSON output.
-
Field Summary
Fields Modifier and Type Field Description private final BucketStats.Snapshotsnapshotprivate final StringaverageMaxMinLabelprivate final StringbucketLabel
-
Constructor Summary
Constructors Constructor Description BucketStats(List<Long> thresholds, String averageMaxMinLabel, String bucketLabel)
-
Method Summary
Modifier and Type Method Description final BucketStats.SnapshotgetSnapshot()final StringgetAverageMaxMinLabel()final StringgetBucketLabel()final UnitaddValue(Long value)OrderedJsonObjecttoJson(BucketStats.Format format)OrderedJsonObjecttoJson()OrderedJsonObjectgetBucketsJson(Buckets.Snapshot b, BucketStats.Format format)-
-
Method Detail
-
getSnapshot
final BucketStats.Snapshot getSnapshot()
-
getAverageMaxMinLabel
final String getAverageMaxMinLabel()
-
getBucketLabel
final String getBucketLabel()
-
toJson
@JvmOverloads() OrderedJsonObject toJson(BucketStats.Format format)
-
toJson
@JvmOverloads() OrderedJsonObject toJson()
-
getBucketsJson
OrderedJsonObject getBucketsJson(Buckets.Snapshot b, BucketStats.Format format)
-
-
-
-