This class allows for managing measurements.

Hierarchy

Constructors

Methods

  • Removes a measurement with given id.

    Returns

    Response wrapped in IResult

    Deprecated

    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);
    })();

    Parameters

    Returns Promise<IResult<null>>

  • Gets the details of selected measurement.

    Returns

    Response wrapped in IResult

    Deprecated

    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);
    })();

    Parameters

    • entityOrId: string | number | IIdentified

      Entity or Id of the entity.

    Returns Promise<IResult<IMeasurement>>