Interface ISeriesFilter

This interface specifies all fragments which can be used to filter for specific series.

interface ISeriesFilter {
    aggregationType?: aggregationType;
    dateFrom: string | Date;
    dateTo: string | Date;
    revert?: boolean;
    series?: string | string[];
    source: string | number;
}

Properties

aggregationType?: aggregationType

For which aggregation it should filter, see [[aggregationType]]

dateFrom: string | Date

From which date the series should be gathered

dateTo: string | Date

To which date the series should be gathered

revert?: boolean

If you are using a range query (that is, at least one of the dateFrom or dateTo parameters is included in the request), then setting revert=true will sort the results by the newest measurements first. By default, the results are sorted by the oldest measurements first.

Note: it will not sort a measurements by a date, but by the order of the measurements in the response.

series?: string | string[]

The series type and name

Example


const series: string[] = ['c8y_AccelerationMeasurement.acceleration', '...'];
source: string | number

The ManagedObject which is the source of these series