Alert_Source
An AlertSource represents a single query used in an alert. Like ChartSource inDashboard, it includes the query and all the related fields.
{
"hidden": false,
"color": "string",
"name": "string",
"query": "string",
"description": "string",
"queryType": "string",
"queryBuilderEnabled": false,
"queryBuilderSerialization": "string",
"alertSourceType": [
"string"
]
}
A flag to indicate whether the alert source is hidden or not.
The color of the alert source.
The alert source query name. Used as the variable name in the other query.
The alert query. Support both Wavefront Query and Prometheus Query.
The additional long description of the alert source.
The type of the alert query. Supported types are [PROMQL, WQL].
A flag indicate whether the alert source query builder enabled or not.
The string serialization of the alert source query builder, mostly used by Wavefront UI.
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.