alerts
Creates, updates, deletes, gets or lists a alerts
resource.
Overview
Name | alerts |
Type | Resource |
Id | azure.alerts_management.alerts |
Fields
- vw_alerts
- alerts
Name | Datatype | Description |
---|---|---|
id | text | Azure resource Id |
name | text | Azure resource name |
alertId | text | field from the properties object |
context | text | field from the properties object |
egress_config | text | field from the properties object |
essentials | text | field from the properties object |
scope | text | field from the properties object |
type | text | Azure resource type |
Name | Datatype | Description |
---|---|---|
id | string | Azure resource Id |
name | string | Azure resource name |
properties | object | Alert property bag |
type | string | Azure resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_all | SELECT | scope | List all existing alerts, where the results can be filtered on the basis of multiple parameters (e.g. time range). The results can then be sorted on the basis specific fields, with the default being lastModifiedDateTime. |
get_by_id | SELECT | alertId, scope | Get information related to a specific alert |
change_state | EXEC | alertId, newState, scope | Change the state of an alert. |
meta_data | EXEC | identifier | List alerts meta data information based on value of identifier parameter. |
SELECT
examples
List all existing alerts, where the results can be filtered on the basis of multiple parameters (e.g. time range). The results can then be sorted on the basis specific fields, with the default being lastModifiedDateTime.
- vw_alerts
- alerts
SELECT
id,
name,
alertId,
context,
egress_config,
essentials,
scope,
type
FROM azure.alerts_management.vw_alerts
WHERE scope = '{{ scope }}';
SELECT
id,
name,
properties,
type
FROM azure.alerts_management.alerts
WHERE scope = '{{ scope }}';