Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / MeasurementSeriesService / get

get

fun get(id: String, series: String, from: Date, to: Date, aggregrationType: MeasurementsService.AggregateType, responder: RequestResponder<MeasurementSeries>): Unit

Returns a list of Measurement generated by the asset for the given id parameter.

Parameters

id - internal id of the ManagedObject that is the source of measurements to be returned

series - label of the measurement to be retrieved

from - Date and time to search from

to - Data nd time to search upto (use Date() to specify up to now)

agggregrationType - Limits the number of responses by grouping them into the specified time interval AggregateType

reverseDateOrder - if false results are ordered date descending, specify true (default) for the opposite i.e. the last measurement will be first in the list

responder - callback function which will be called with the results