public class PercentileDef extends Source
timestamps, values
CF_AVERAGE, CF_FIRST, CF_LAST, CF_MAX, CF_MIN, CF_TOTAL
Constructor and Description |
---|
PercentileDef(String name,
Source source,
double percentile) |
PercentileDef(String name,
Source source,
double percentile,
boolean ignorenan) |
Modifier and Type | Method and Description |
---|---|
void |
calculate(long tStart,
long tEnd)
Realize the calculation of this definition, over the given time period
|
(package private) Aggregates |
getAggregates(long tStart,
long tEnd)
Same as SDef; the aggregates of a static value are all just the
same static value.
|
(package private) double |
getPercentile(long tStart,
long tEnd,
double percentile)
Returns just the calculated percentile; the "Xth" percentile of a static value is
the static value itself.
|
(package private) void |
setTimestamps(long[] timestamps) |
getName, getPercentile, getTimestamps, getValues, setValues
public void calculate(long tStart, long tEnd) throws RrdException
tStart
- the time period starttEnd
- the time period endRrdException
- Thrown if we cannot get a percentile value for the time period.void setTimestamps(long[] timestamps)
setTimestamps
in class Source
Aggregates getAggregates(long tStart, long tEnd) throws RrdException
getAggregates
in class Source
RrdException
double getPercentile(long tStart, long tEnd, double percentile) throws RrdException
getPercentile
in class Source
RrdException