Represents a single aggregate window entry in a simple time series aggregates response.

When cumulative is true (meter-style counter parameters), count, sum, min, max and average are computed over consumption deltas between consecutive readings within the window — not over the raw readings.

interface ESPSimpleTSAggregate {
    average?: number;
    count?: number;
    cumulative?: boolean;
    cumulativeValue?: number;
    date: string;
    firstValue?: number;
    lastValue?: number;
    max?: number;
    message?: string;
    min?: number;
    status?: string;
    sum?: number;
    timezone?: string;
    windowEnd?: number;
    windowStart?: number;
    windowType: string;
}

Properties

average?: number
count?: number
cumulative?: boolean

Whether the parameter was ingested as a cumulative (monotonically increasing) counter.

cumulativeValue?: number

Latest absolute meter reading; only meaningful when cumulative is true.

date: string
firstValue?: number
lastValue?: number
max?: number
message?: string
min?: number
status?: string
sum?: number
timezone?: string
windowEnd?: number
windowStart?: number
windowType: string