alerts_histories
Creates, updates, deletes, gets or lists an alerts_histories resource.
Overview
| Name | alerts_histories |
| Type | Resource |
| Id | azure.alerts_management.alerts_histories |
Fields
The following fields are returned by SELECT queries:
- get
OK. Returns the history of the specified alert.
| Name | Datatype | Description |
|---|---|---|
id | string | Azure resource Id |
name | string | Azure resource name |
properties | object | Properties of the alert modification item. |
type | string | Azure resource type |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | scope, alertId | Get 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.
| Name | Datatype | Description |
|---|---|---|
alertId | string | Unique ID of an alert instance. |
scope | string | scope here is resourceId for which alert is created. |
SELECT examples
- get
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
;