An object that holds an SLI value and its associated data. It can represent an SLO's overall SLI value. This can also represent the SLI value for a specific monitor in multi-monitor SLOs, or a group in grouped SLOs.

Hierarchy

  • SLOHistoryMonitor

Constructors

Properties

additionalProperties?: {
    [key: string]: any;
}

A container for additional, undeclared properties. This is a holder for any undeclared properties as specified with the 'additionalProperties' keyword in the OAS document.

Type declaration

  • [key: string]: any
errorBudgetRemaining?: {
    [key: string]: number;
}

A mapping of threshold timeframe to the remaining error budget.

Type declaration

  • [key: string]: number

An array of error objects returned while querying the history data for the service level objective.

group?: string

For groups in a grouped SLO, this is the group name.

history?: [number, number][]

The state transition history for the monitor. It is represented as an array of pairs. Each pair is an array containing the timestamp of the transition as an integer in Unix epoch format in the first element, and the state as an integer in the second element. An integer value of 0 for state means uptime, 1 means downtime, and 2 means no data. Periods of no data are counted either as uptime or downtime depending on monitor settings. See SLO documentation for detailed information.

monitorModified?: number

For monitor based SLOs, this is the last modified timestamp in epoch seconds of the monitor.

monitorType?: string

For monitor based SLOs, this describes the type of monitor.

name?: string

For groups in a grouped SLO, this is the group name. For monitors in a multi-monitor SLO, this is the monitor name.

precision?: number

The amount of decimal places the SLI value is accurate to for the given from && to timestamp. Use span_precision instead.

preview?: boolean

For monitor based SLOs, when true this indicates that a replay is in progress to give an accurate uptime calculation.

sliValue?: number

The current SLI value of the SLO over the history window.

spanPrecision?: number

The amount of decimal places the SLI value is accurate to for the given from && to timestamp.

uptime?: number

Use sli_value instead.

Generated using TypeDoc