Class MeasurementService

This class allows for managing measurements.

Hierarchy (view full)

Constructors

Methods

  • Removes a measurement with given id.

    Parameters

    Returns Promise<IResult<null>>

    Response wrapped in [[IResult]]

    As of version 10.16.0.0 and the usage of the time series database, deleting a single measurement via id is not supported any more.

    Example


    const id: number = 1;

    (async () => {
    const {data, res} = await measurementService.delete(id);
    })();
  • Gets the details of selected measurement.

    Parameters

    • entityOrId: string | number | IIdentified

      Entity or Id of the entity.

    Returns Promise<IResult<IMeasurement>>

    Response wrapped in [[IResult]]

    As of version 10.16.0.0 and the usage of the time series database, reading a single measurement via id is not supported any more.

    Example


    const measurementId: number = 1;

    (async () => {
    const {data, res} = await measurementService.detail(measurementId);
    })();