public class MeterServiceImpl extends BaseTelemetryServices implements MeterService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
MeterServiceImpl() |
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
|
wrapList
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Meter> list()
list
in interface MeterService
public List<? extends MeterSample> samples(String meterName)
samples
in interface MeterService
meterName
- the name of the meter to fetch samples frompublic List<? extends MeterSample> samples(String meterName, SampleCriteria criteria)
samples
in interface MeterService
meterName
- the name of the meter to fetch samples fromcriteria
- the sample query criteria for filtering resultspublic List<? extends Statistics> statistics(String meterName)
statistics
in interface MeterService
meterName
- the name of the meter to fetch statistics forpublic List<? extends Statistics> statistics(String meterName, int period)
MeterService
statistics
in interface MeterService
meterName
- the name of the meter to fetch statistics forperiod
- the result will be statistics for a period long of that number of secondspublic List<? extends Statistics> statistics(String meterName, SampleCriteria criteria)
MeterService
statistics
in interface MeterService
meterName
- the name of the meter to fetch statistics forcriteria
- additional query criteriapublic List<? extends Statistics> statistics(String meterName, SampleCriteria criteria, int period)
MeterService
statistics
in interface MeterService
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 secondspublic void putSamples(List<MeterSample> sampleList, String meterName)
putSamples
in interface MeterService
Copyright © 2017. All rights reserved.