Skip to main content

getMeasures

@nmi-agro/fdm-source


@nmi-agro/fdm-source / fdm-core/src / getMeasures

Function: getMeasures()

getMeasures(fdm, principal_id, b_id, timeframe?): Promise<Measure[]>

Defined in: fdm-core/src/measure.ts:259

Fetches all measures applied to a specific field, optionally filtered by timeframe.

Parameters

fdm

PgDatabase

The FDM instance providing the connection to the database.

principal_id

any

The ID of the principal making the request.

b_id

any

The field ID.

timeframe?

Timeframe

Optional timeframe to filter measures (overlap logic).

Returns

Promise<Measure[]>

A Promise resolving to an array of Measure.