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

MeasurementValue

data class MeasurementValue : JsonSerializable

Individual measurement consisting of a human readable label, its unit of measure and the value

Types

ValueHolder

data class ValueHolder : JsonSerializable

Constructors

<init>

MeasurementValue(o: JSONObject)
MeasurementValue(label: String, unit: String, value: Number)MeasurementValue(label: String, value: MeasurementValue.ValueHolder)

Individual measurement consisting of a human readable label, its unit of measure and the value

Properties

label

val label: String

value

val value: MeasurementValue.ValueHolder

Functions

toJSONString

fun toJSONString(): String

Companion Object Functions

captureValue

fun captureValue(o: JSONObject): MeasurementValue.ValueHolder

label

fun label(o: JSONObject): String