Alert_Source

Alert_Source
Alert_Source

An AlertSource represents a single query used in an alert. Like ChartSource inDashboard, it includes the query and all the related fields.

JSON Example
{
    "hidden": false,
    "color": "string",
    "name": "string",
    "query": "string",
    "description": "string",
    "queryType": "string",
    "queryBuilderEnabled": false,
    "queryBuilderSerialization": "string",
    "alertSourceType": [
        "string"
    ]
}
boolean
hidden
Optional

A flag to indicate whether the alert source is hidden or not.

string
color
Optional

The color of the alert source.

string
name
Optional

The alert source query name. Used as the variable name in the other query.

string
query
Optional

The alert query. Support both Wavefront Query and Prometheus Query.

string
description
Optional

The additional long description of the alert source.

string
queryType
Optional

The type of the alert query. Supported types are [PROMQL, WQL].

Possible values are : WQL, PROMQL, HYBRID,
boolean
queryBuilderEnabled
Optional

A flag indicate whether the alert source query builder enabled or not.

string
queryBuilderSerialization
Optional

The string serialization of the alert source query builder, mostly used by Wavefront UI.

array of string
alertSourceType
Optional

The types of the alert source (an array of CONDITION, AUDIT, VARIABLE) and the default one is [VARIABLE]. CONDITION alert source is the condition query in the alert. AUDIT alert source is the query to get more details when the alert changes state. VARIABLE alert source is a variable used in the other queries.

Possible values are : VARIABLE, CONDITION, AUDIT,