Cumulocity API Services / com.softwareag.jc.cumulocity.services.models / Measurement

Measurement

data class Measurement : JsonSerializable

Represents individual measurements that can be queried, created and deleted

Formal definition is given in Cumulocity REST API Guide

Types

Source

data class Source : JsonSerializable

Constructors

<init>

Measurement(o: JSONObject)Measurement(source: Measurement.Source, type: String)

allows a new measurement to be created (Use prior to calling MeasurementsService

Properties

source

val source: Measurement.Source

time

val time: Date

type

val type: String

values

val values: HashMap<String, MeasurementValue>

Functions

addValue

fun addValue(label: String, unit: String, value: Number): Unit

toJSONString

fun toJSONString(): String