public static final class IntervalAggregation.Interval extends Object
| Modifier and Type | Method and Description |
|---|---|
static IntervalAggregation.Interval |
create(Duration intervalSize,
double count,
double sum)
Constructs a new
IntervalAggregation.Interval. |
double |
getCount()
The number of measurements in this interval.
|
Duration |
getIntervalSize()
The interval duration.
|
double |
getSum()
The cumulative sum of measurements in this interval.
|
public static IntervalAggregation.Interval create(Duration intervalSize, double count, double sum)
IntervalAggregation.Interval.
Note: intervalSize must be positive otherwise behavior is unspecified.
public Duration getIntervalSize()
public double getCount()
public double getSum()