alert_rule_recommendations
Creates, updates, deletes, gets or lists an alert_rule_recommendations resource.
Overview
| Name | alert_rule_recommendations |
| Type | Resource |
| Id | azure.alerts_management.alert_rule_recommendations |
Fields
The following fields are returned by SELECT queries:
- list_by_resource
- list_by_target_type
Successful request for a list of alert rule recommendations
| Name | Datatype | Description |
|---|---|---|
properties | object | recommendation properties. |
Successful request for a list of alert rule recommendations
| Name | Datatype | Description |
|---|---|---|
properties | object | recommendation properties. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_resource | select | resourceUri | Retrieve alert rule recommendations for a resource. | |
list_by_target_type | select | subscriptionId, targetType | Retrieve alert rule recommendations for a target type. |
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 |
|---|---|---|
resourceUri | string | The identifier of the resource. |
subscriptionId | string | The ID of the target subscription. |
targetType | string | The recommendations target type. |
SELECT examples
- list_by_resource
- list_by_target_type
Retrieve alert rule recommendations for a resource.
SELECT
properties
FROM azure.alerts_management.alert_rule_recommendations
WHERE resourceUri = '{{ resourceUri }}' -- required
;
Retrieve alert rule recommendations for a target type.
SELECT
properties
FROM azure.alerts_management.alert_rule_recommendations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND targetType = '{{ targetType }}' -- required
;