Statistics of one aggregation window. For cumulative params, use cumulativeValue (consumption within the window) rather than sum.

interface ESPRMNeoTSWindowAggregate {
    average?: number;
    count?: number;
    cumulativeValue?: number;
    firstValue?: number;
    lastValue?: number;
    max?: number;
    min?: number;
    status?: string;
    sum?: number;
    windowEnd?: string;
    windowStart?: string;
    [key: string]: unknown;
}

Indexable

  • [key: string]: unknown

    Backend stats not yet modeled here are passed through by the transform.

Properties

average?: number

Average of the sample values.

count?: number

Number of samples in the window.

cumulativeValue?: number

Consumption within the window (cumulative params only).

firstValue?: number

First sample value in the window.

lastValue?: number

Last sample value in the window.

max?: number

Maximum sample value in the window.

min?: number

Minimum sample value in the window.

status?: string

"completed" for archived historical windows.

sum?: number

Sum of the sample values.

windowEnd?: string

RFC3339 window end.

windowStart?: string

RFC3339 window start.