|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cumulocity.sdk.client.measurement.MeasurementApiImpl
public class MeasurementApiImpl
| Constructor Summary | |
|---|---|
MeasurementApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl)
Deprecated. |
|
MeasurementApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl,
int pageSize)
|
|
| Method Summary | |
|---|---|
MeasurementRepresentation |
create(MeasurementRepresentation measurementRepresentation)
Creates measurement in the platform. |
void |
deleteMeasurement(MeasurementRepresentation measurement)
Deletes measurement from the platform. |
MeasurementRepresentation |
getMeasurement(GId measurementId)
Gets measurement by id |
PagedCollectionResource<MeasurementCollectionRepresentation> |
getMeasurements()
Gets the all the measurement in the platform |
PagedCollectionResource<MeasurementCollectionRepresentation> |
getMeasurementsByFilter(MeasurementFilter filter)
Gets the measurements from the platform based on specified filter |
protected String |
getSelfUri()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated
public MeasurementApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl)
public MeasurementApiImpl(RestConnector restConnector,
TemplateUrlParser templateUrlParser,
String platformUrl,
int pageSize)
| Method Detail |
|---|
public MeasurementRepresentation getMeasurement(GId measurementId)
throws SDKException
MeasurementApi
getMeasurement in interface MeasurementApimeasurementId - id of the measurement to search for
SDKException - if the measurement is not found or if the query failed
public void deleteMeasurement(MeasurementRepresentation measurement)
throws SDKException
MeasurementApi
deleteMeasurement in interface MeasurementApimeasurement - to be deleted
SDKException - if the measurement could not be deleted
public PagedCollectionResource<MeasurementCollectionRepresentation> getMeasurementsByFilter(MeasurementFilter filter)
throws SDKException
MeasurementApi
getMeasurementsByFilter in interface MeasurementApifilter - the filter criteria(s)
SDKException - if the query failed
public PagedCollectionResource<MeasurementCollectionRepresentation> getMeasurements()
throws SDKException
MeasurementApi
getMeasurements in interface MeasurementApiSDKException - if the query failed
public MeasurementRepresentation create(MeasurementRepresentation measurementRepresentation)
throws SDKException
MeasurementApi
create in interface MeasurementApimeasurementRepresentation - measurement to be created
SDKException - if the measurement could not be created
protected String getSelfUri()
throws SDKException
SDKException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||