fun get(id: String, from: Date, to: Date, aggregrationType: MeasurementsService.AggregateType, reverseDateOrder: Boolean, responder: RequestResponder<List<Measurement>>): Unit
Returns a list of Measurement generated by the asset for the given id parameter.
id - internal id of the ManagedObject that is the source of measurements to be returned
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
fun get(id: String, type: String, from: Date, to: Date, aggregrationType: MeasurementsService.AggregateType, reverseDateOrder: Boolean, responder: RequestResponder<List<Measurement>>): Unit
Returns a list of Measurement generated by the asset for the given external id
id - external id of the ManagedObject that is the source of measurements to be returned
type - the type of external id to be used
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