public class Aggregations extends Object
| Modifier and Type | Method and Description |
|---|---|
static Aggregation |
count()
Returns an
Aggregation that calculates count of recorded measurements (the number of
recorded measurements). |
static Aggregation |
distributionWithExplicitBounds(Double... bucketBoundaries)
Returns an
Aggregation that calculates distribution stats on recorded measurements. |
static Aggregation |
lastValue()
Returns an
Aggregation that calculates the last value of all recorded measurements. |
static Aggregation |
minMaxSumCount()
Returns an
Aggregation that calculates a simple summary of all recorded measurements. |
static Aggregation |
sum()
Returns an
Aggregation that calculates sum of recorded measurements. |
public static Aggregation sum()
Aggregation that calculates sum of recorded measurements.Aggregation that calculates sum of recorded measurements.public static Aggregation count()
Aggregation that calculates count of recorded measurements (the number of
recorded measurements).Aggregation that calculates count of recorded measurements (the number of
recorded * measurements).public static Aggregation distributionWithExplicitBounds(Double... bucketBoundaries)
Aggregation that calculates distribution stats on recorded measurements.
Distribution includes sum, count, histogram, and sum of squared deviations.
The boundaries for the buckets in the underlying histogram needs to be sorted.
bucketBoundaries - bucket boundaries to use for distribution.Aggregation that calculates distribution stats on recorded measurements.public static Aggregation lastValue()
Aggregation that calculates the last value of all recorded measurements.Aggregation that calculates the last value of all recorded measurements.public static Aggregation minMaxSumCount()
Aggregation that calculates a simple summary of all recorded measurements.
The summary consists of the count of measurements, the sum of all measurements, the maximum
value recorded and the minimum value recorded.Aggregation that calculates a simple summary of all recorded measurements.