public interface RecordedData extends ReadOnlyTimeSeries
InterpolationModeNONE. Possible filters to effectively read out this are configured using
ReductionModes. RecordedData are collected only for active resources that have been explicitly configured to be logged.
|Modifier and Type||Method and Description|
Get a copy of the current configuration object of this RecordedData instance.
The resource path of the logged resource.
Get all values (time series) from startTime until endTime interpolated to a fixed interval.
Configure automated writing of values from the parent resource into the database.
void setConfiguration(RecordedDataConfiguration configuration)
configuration- a configuration object or null to disable data logging
java.util.List<SampledValue> getValues(long startTime, long endTime, long interval, ReductionMode mode)
ReductionMode.NONEis given then this method returns the same as
ReadOnlyTimeSeries.getValues(long, long). If
ReductionMode.MIN_MAX_VALUEis given then the returned list will contain for each interval two values. The first value is the minimum and the second the maximum. E.g. if interval is 2 then list.get(0) contains the minimum and list.get(1) the maximum of the first interval and respectively list.get(2) the minimum and list.get(3) the maximum of the second interval.
startTime- Time of the first value in the time series in ms since epoche. inclusive
endTime- Time of the last value in the time series in ms since epoche. exclusive
interval- fixed interval between individual timestamps in ms
mode- reduction mode to be used for the values