public class DeviceMeasurementsCreateRequest extends DeviceEventCreateRequest implements IDeviceMeasurementsCreateRequest, java.io.Serializable
DeviceMeasurements
via REST APIs.Modifier and Type | Class and Description |
---|---|
static class |
DeviceMeasurementsCreateRequest.Builder |
Constructor and Description |
---|
DeviceMeasurementsCreateRequest() |
Modifier and Type | Method and Description |
---|---|
void |
addOrReplaceMeasurement(java.lang.String name,
java.lang.Double value)
Add or replace measurement data.
|
void |
clearMeasurements()
Clear all measurements.
|
java.lang.Double |
getMeasurement(java.lang.String name)
Get measurement by name.
|
java.util.Map<java.lang.String,java.lang.Double> |
getMeasurements()
Get map of all measurements.
|
java.lang.Double |
removeMeasurement(java.lang.String name)
Remove a measurement.
|
void |
setMeasurements(java.util.Map<java.lang.String,java.lang.Double> measurements)
Needed for JSON marshaling.
|
getEventDate, getMetadata, isUpdateState, setEventDate, setMetadata, setUpdateState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventDate, getMetadata, isUpdateState, setUpdateState
public void addOrReplaceMeasurement(java.lang.String name, java.lang.Double value)
IMeasurementsProvider
addOrReplaceMeasurement
in interface IMeasurementsProvider
public java.lang.Double removeMeasurement(java.lang.String name)
IMeasurementsProvider
removeMeasurement
in interface IMeasurementsProvider
public java.lang.Double getMeasurement(java.lang.String name)
IMeasurementsProvider
getMeasurement
in interface IMeasurementsProvider
public java.util.Map<java.lang.String,java.lang.Double> getMeasurements()
IMeasurementsProvider
getMeasurements
in interface IMeasurementsProvider
public void setMeasurements(java.util.Map<java.lang.String,java.lang.Double> measurements)
measurements
- public void clearMeasurements()
IMeasurementsProvider
clearMeasurements
in interface IMeasurementsProvider