Interface StateDatapoint

A data point of a time series with type state.

interface StateDatapoint {
    numericValue?: number;
    status?: DatapointStatus;
    stringValue?: string;
    timestamp: Date;
    value?: undefined;
}

Hierarchy (view full)

Properties

numericValue?: number

The numeric value of the state. May be omitted if the data point has Bad status.

stringValue?: string

The string value of the state. May be missing if the numeric value is no longer part of the time series' state set, or if the data point has Bad status.

timestamp: Date
value?: undefined

Never set on state data points. Declared so that value can still be read from a Datapoints union without first narrowing on type.