Skip to main content

alerts_histories

Creates, updates, deletes, gets or lists an alerts_histories resource.

Overview

Namealerts_histories
TypeResource
Idazure.alerts_management.alerts_histories

Fields

The following fields are returned by SELECT queries:

OK. Returns the history of the specified alert.

NameDatatypeDescription
idstringAzure resource Id
namestringAzure resource name
propertiesobjectProperties of the alert modification item.
typestringAzure resource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, alertIdGet the history of an alert, which captures any monitor condition changes (Fired/Resolved) and alert state changes (New/Acknowledged/Closed).

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
alertIdstringUnique ID of an alert instance.
scopestringscope here is resourceId for which alert is created.

SELECT examples

Get the history of an alert, which captures any monitor condition changes (Fired/Resolved) and alert state changes (New/Acknowledged/Closed).

SELECT
id,
name,
properties,
type
FROM azure.alerts_management.alerts_histories
WHERE scope = '{{ scope }}' -- required
AND alertId = '{{ alertId }}' -- required
;