Class MeterServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.telemetry.internal.BaseTelemetryServices
-
- org.openstack4j.openstack.telemetry.internal.MeterServiceImpl
-
- All Implemented Interfaces:
MeterService,RestService
public class MeterServiceImpl extends BaseTelemetryServices implements MeterService
Provides Measurements against Meters within an OpenStack deployment- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description MeterServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends Meter>list()Return all known meters, based on the data recorded so far.voidputSamples(List<MeterSample> sampleList, String meterName)List<? extends MeterSample>samples(String meterName)Returns samples for the specified MeterList<? extends MeterSample>samples(String meterName, SampleCriteria criteria)Returns samples for the specified MeterList<? extends Statistics>statistics(String meterName)Returns computed statistics for the given meterNameList<? extends Statistics>statistics(String meterName, int period)Returns computed statistics for the given meterName for the given time rangeList<? extends Statistics>statistics(String meterName, SampleCriteria criteria)Returns computed statistics for the given meterNameList<? extends Statistics>statistics(String meterName, SampleCriteria criteria, int period)Returns computed statistics for the given meterName-
Methods inherited from class org.openstack4j.openstack.telemetry.internal.BaseTelemetryServices
wrapList
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Meter> list()
Return all known meters, based on the data recorded so far.- Specified by:
listin interfaceMeterService- Returns:
- list of all known meters
-
samples
public List<? extends MeterSample> samples(String meterName)
Returns samples for the specified Meter- Specified by:
samplesin interfaceMeterService- Parameters:
meterName- the name of the meter to fetch samples from- Returns:
- List of Samples
-
samples
public List<? extends MeterSample> samples(String meterName, SampleCriteria criteria)
Returns samples for the specified Meter- Specified by:
samplesin interfaceMeterService- Parameters:
meterName- the name of the meter to fetch samples fromcriteria- the sample query criteria for filtering results- Returns:
- List of Samples
-
statistics
public List<? extends Statistics> statistics(String meterName)
Returns computed statistics for the given meterName- Specified by:
statisticsin interfaceMeterService- Parameters:
meterName- the name of the meter to fetch statistics for- Returns:
- List of Statistics
-
statistics
public List<? extends Statistics> statistics(String meterName, int period)
Description copied from interface:MeterServiceReturns computed statistics for the given meterName for the given time range- Specified by:
statisticsin interfaceMeterService- Parameters:
meterName- the name of the meter to fetch statistics forperiod- the result will be statistics for a period long of that number of seconds- Returns:
- List of Statistics
-
statistics
public List<? extends Statistics> statistics(String meterName, SampleCriteria criteria)
Description copied from interface:MeterServiceReturns computed statistics for the given meterName- Specified by:
statisticsin interfaceMeterService- Parameters:
meterName- the name of the meter to fetch statistics forcriteria- additional query criteria- Returns:
- List of Statistics
-
statistics
public List<? extends Statistics> statistics(String meterName, SampleCriteria criteria, int period)
Description copied from interface:MeterServiceReturns computed statistics for the given meterName- Specified by:
statisticsin interfaceMeterService- Parameters:
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 seconds- Returns:
- List of Statistics
-
putSamples
public void putSamples(List<MeterSample> sampleList, String meterName)
- Specified by:
putSamplesin interfaceMeterService
-
-