Cumulocity API Services / com.softwareag.jc.cumulocity.services.models / DataPoints / Value

Value

class Value : JsonSerializable

Represents a single DataPoint value

Constructors

<init>

Value(id: String, fragment: String, label: String, unit: String, series: String, lineType: String, color: String, renderType: String)

create a new DataPoint to allow measurements to be contextualised

Properties

color

val color: String

clue from drawing tools to determine what the color of the measurement

fragment

val fragment: String

name of the measurement that this data point is referencing

id

val id: String

id of the of the datapoint

label

val label: String

human readable label to identify the measurement

lineType

val lineType: String

clue for drawing tools to determine how this measurement should be displayed

renderType

val renderType: String

series

val series: String

required if the measurement comprises sub values or values in different units

unit

val unit: String

human readable unit of measure for the measurement value

Functions

toJSONString

fun toJSONString(): String

Allows this object type to converted to a JSON String You do not need to use this method directly, instead use the ManagedObjectService class

Companion Object Functions

make

fun make(a: JSONObject, map: HashMap<String, DataPoints.Value>): Unit

Utility method to allow values to be built