Optional
realtime: RealtimeCreates a new measurement.
At least sourceId is mandantory.
Response wrapped in [[IResult]]
Example
const mandantoryObject: Partial<IMeasurementCreate> = {
sourceId: device.id,
fragment: { series: { unit: '%', value: 51 } },
};
(async () => {
const {data, res} = await measurementService.create(mandantoryObject);
})();
Removes a measurement with given id.
Response wrapped in [[IResult]]
Gets the details of selected measurement.
Entity or Id of the entity.
Response wrapped in [[IResult]]
Gets the list of measurements filtered by parameters.
Object containing filters for querying measurements.
Example
const filter: object = {
pageSize: 100,
withTotalPages: true
};
(async () => {
const {data, res, paging} = await measurementService.list(filter);
})();
Response wrapped in [[IResultList]]
Gets the list of series in a measurement filtered by parameters.
Response wrapped in [[IResult]]
This class allows for managing measurements.