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

DataPoints

class DataPoints : JsonSerializable

Represents a set of DataPoints for a ManagedObject, which allows measurements captured by Cumulocity to be displayed more intuitively by prefacing them with unit labels, line colors etc.

Types

Value

class Value : JsonSerializable

Represents a single DataPoint value

Constructors

<init>

DataPoints(o: JSONObject)

Alternative constructor to allow JSON string representation to be converted to object You do not need to use this method, called implicitly by the ManagedObjectService class when fetching ManagedObjects from Cumulocity

DataPoints()

Creates a new empty DataPoints holder

Properties

values

val values: Map<String, DataPoints.Value>

Groups the data points by key

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