alerts
Creates, updates, deletes, gets or lists a alerts
resource.
Overview
Name | alerts |
Type | Resource |
Id | azure.cost_management.alerts |
Fields
- vw_alerts
- alerts
Name | Datatype | Description |
---|---|---|
id | text | Resource Id. |
name | text | Resource name. |
description | text | field from the properties object |
alertId | text | field from the properties object |
close_time | text | field from the properties object |
cost_entity_id | text | field from the properties object |
creation_time | text | field from the properties object |
definition | text | field from the properties object |
details | text | field from the properties object |
e_tag | text | field from the properties object |
modification_time | text | field from the properties object |
scope | text | field from the properties object |
source | text | field from the properties object |
status | text | field from the properties object |
status_modification_time | text | field from the properties object |
status_modification_user_name | text | field from the properties object |
type | text | Resource type. |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id. |
name | string | Resource name. |
eTag | string | eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not. |
properties | object | Alert properties. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | alertId, scope | Gets the alert for the scope by alert ID. |
list | SELECT | scope | Lists the alerts for scope defined. |
dismiss | EXEC | alertId, scope | Dismisses the specified alert |
SELECT
examples
Lists the alerts for scope defined.
- vw_alerts
- alerts
SELECT
id,
name,
description,
alertId,
close_time,
cost_entity_id,
creation_time,
definition,
details,
e_tag,
modification_time,
scope,
source,
status,
status_modification_time,
status_modification_user_name,
type
FROM azure.cost_management.vw_alerts
WHERE scope = '{{ scope }}';
SELECT
id,
name,
eTag,
properties,
type
FROM azure.cost_management.alerts
WHERE scope = '{{ scope }}';