data class Measurement : JsonSerializable
Represents individual measurements that can be queried, created and deleted
Formal definition is given in Cumulocity REST API Guide
data class Source : JsonSerializable |
Measurement(o: JSONObject) Measurement(source: Measurement.Source, type: String)
allows a new measurement to be created (Use prior to calling MeasurementsService |
val source: Measurement.Source |
|
val time: Date |
|
val type: String |
|
val values: HashMap<String, MeasurementValue> |
fun addValue(label: String, unit: String, value: Number): Unit |
|
fun toJSONString(): String |