public interface MeterService extends RestService
Modifier and Type | Method and Description |
---|---|
List<? extends Meter> |
list()
Return all known meters, based on the data recorded so far.
|
void |
putSamples(List<MeterSample> sampleList,
String meterName) |
List<? extends MeterSample> |
samples(String meterName)
Returns samples for the specified Meter
|
List<? extends MeterSample> |
samples(String meterName,
SampleCriteria criteria)
Returns samples for the specified Meter
|
List<? extends Statistics> |
statistics(String meterName)
Returns computed statistics for the given meterName
|
List<? extends Statistics> |
statistics(String meterName,
int period)
Returns computed statistics for the given meterName for the given time range
|
List<? extends Statistics> |
statistics(String meterName,
SampleCriteria criteria)
Returns computed statistics for the given meterName
|
List<? extends Statistics> |
statistics(String meterName,
SampleCriteria criteria,
int period)
Returns computed statistics for the given meterName
|
List<? extends Meter> list()
List<? extends MeterSample> samples(String meterName)
meterName
- the name of the meter to fetch samples fromList<? extends MeterSample> samples(String meterName, SampleCriteria criteria)
meterName
- the name of the meter to fetch samples fromcriteria
- the sample query criteria for filtering resultsList<? extends Statistics> statistics(String meterName)
meterName
- the name of the meter to fetch statistics forList<? extends Statistics> statistics(String meterName, SampleCriteria criteria)
meterName
- the name of the meter to fetch statistics forcriteria
- additional query criteriaList<? extends Statistics> statistics(String meterName, SampleCriteria criteria, int period)
meterName
- the name of the meter to fetch statistics forcriteria
- additional query criteriaperiod
- the result will be statistics for a period long of that number of secondsList<? extends Statistics> statistics(String meterName, int period)
meterName
- the name of the meter to fetch statistics forperiod
- the result will be statistics for a period long of that number of secondsvoid putSamples(List<MeterSample> sampleList, String meterName)
Copyright © 2017. All rights reserved.