public interface MeasurementApi
Modifier and Type | Method and Description |
---|---|
MeasurementRepresentation |
create(MeasurementRepresentation measurement)
Creates measurement in the platform.
|
Future |
createAsync(MeasurementRepresentation measurement)
Creates measurement in the platform.
|
MeasurementCollectionRepresentation |
createBulk(MeasurementCollectionRepresentation measurementCollection)
Creates measurements in the platform.
|
void |
createBulkWithoutResponse(MeasurementCollectionRepresentation measurementCollection)
Creates measurements in the platform.
|
void |
createWithoutResponse(MeasurementRepresentation measurement)
Creates measurement in the platform.
|
void |
delete(MeasurementRepresentation measurement)
Deletes measurement from the platform.
|
void |
deleteMeasurement(MeasurementRepresentation measurement)
Deprecated.
|
void |
deleteMeasurementsByFilter(MeasurementFilter filter)
Delete measurements from the platform based on the specified filter
|
MeasurementRepresentation |
getMeasurement(com.cumulocity.model.idtype.GId gid)
Gets measurement by id
|
MeasurementCollection |
getMeasurements()
Gets the all the measurement in the platform
|
MeasurementCollection |
getMeasurementsByFilter(MeasurementFilter filter)
Gets the measurements from the platform based on specified filter
|
MeasurementRepresentation getMeasurement(com.cumulocity.model.idtype.GId gid) throws SDKException
gid
- id of the measurement to search forSDKException
- if the measurement is not found or if the query failedMeasurementRepresentation create(MeasurementRepresentation measurement) throws SDKException
measurement
- measurement to be createdSDKException
- if the measurement could not be createdvoid createWithoutResponse(MeasurementRepresentation measurement) throws SDKException
measurement
- measurement to be createdSDKException
- if the measurement could not be createdMeasurementCollectionRepresentation createBulk(MeasurementCollectionRepresentation measurementCollection) throws SDKException
measurementCollection
- measurements to be createdSDKException
- if the measurements could not be createdvoid createBulkWithoutResponse(MeasurementCollectionRepresentation measurementCollection) throws SDKException
measurementCollection
- measurements to be createdSDKException
- if the measurements could not be createdFuture createAsync(MeasurementRepresentation measurement) throws SDKException
measurement
- measurement to be createdSDKException
- if the measurement could not be createdvoid delete(MeasurementRepresentation measurement) throws SDKException
measurement
- to be deletedSDKException
- if the measurement could not be deletedvoid deleteMeasurementsByFilter(MeasurementFilter filter) throws IllegalArgumentException, SDKException
filter
- the filter criteria(s)IllegalArgumentException
- when invalid filter providedSDKException
- if the query failedMeasurementCollection getMeasurements() throws SDKException
SDKException
- if the query failedMeasurementCollection getMeasurementsByFilter(MeasurementFilter filter) throws SDKException
filter
- the filter criteria(s)SDKException
- if the query failed@Deprecated void deleteMeasurement(MeasurementRepresentation measurement) throws SDKException
measurement
- to be deletedSDKException
- if the measurement could not be deletedCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.