proactive_detection_configurations
Creates, updates, deletes, gets or lists a proactive_detection_configurations resource.
Overview
| Name | proactive_detection_configurations |
| Type | Resource |
| Id | azure.application_insights.proactive_detection_configurations |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | The rule name. |
customEmails | array | Custom email addresses for this rule notifications. |
enabled | boolean | A flag that indicates whether this rule is enabled by the user. |
lastUpdatedTime | string | The last time this rule was updated. |
ruleDefinitions | object | Static definitions of the ProactiveDetection configuration rule (same values for all components). |
sendEmailsToSubscriptionOwners | boolean | A flag that indicated whether notifications on this rule should be sent to subscription owners. |
| Name | Datatype | Description |
|---|---|---|
name | string | The rule name. |
customEmails | array | Custom email addresses for this rule notifications. |
enabled | boolean | A flag that indicates whether this rule is enabled by the user. |
lastUpdatedTime | string | The last time this rule was updated. |
ruleDefinitions | object | Static definitions of the ProactiveDetection configuration rule (same values for all components). |
sendEmailsToSubscriptionOwners | boolean | A flag that indicated whether notifications on this rule should be sent to subscription owners. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, resource_name, configuration_id, subscription_id | Get the ProactiveDetection configuration for this configuration id. | |
list | select | resource_group_name, resource_name, subscription_id | Gets a list of ProactiveDetection configurations of an Application Insights component. | |
update | update | resource_group_name, resource_name, configuration_id, subscription_id | Update the ProactiveDetection configuration for this configuration id. |
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 |
|---|---|---|
configuration_id | string | The ProactiveDetection configuration ID. This is unique within a Application Insights component. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
resource_name | string | The name of the Application Insights component resource. Required. |
subscription_id | string |
SELECT examples
- get
- list
Get the ProactiveDetection configuration for this configuration id.
SELECT
name,
customEmails,
enabled,
lastUpdatedTime,
ruleDefinitions,
sendEmailsToSubscriptionOwners
FROM azure.application_insights.proactive_detection_configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND configuration_id = '{{ configuration_id }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Gets a list of ProactiveDetection configurations of an Application Insights component.
SELECT
name,
customEmails,
enabled,
lastUpdatedTime,
ruleDefinitions,
sendEmailsToSubscriptionOwners
FROM azure.application_insights.proactive_detection_configurations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
UPDATE examples
- update
Update the ProactiveDetection configuration for this configuration id.
UPDATE azure.application_insights.proactive_detection_configurations
SET
name = '{{ name }}',
enabled = {{ enabled }},
sendEmailsToSubscriptionOwners = {{ sendEmailsToSubscriptionOwners }},
customEmails = '{{ customEmails }}',
lastUpdatedTime = '{{ lastUpdatedTime }}',
ruleDefinitions = '{{ ruleDefinitions }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND configuration_id = '{{ configuration_id }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
name,
customEmails,
enabled,
lastUpdatedTime,
ruleDefinitions,
sendEmailsToSubscriptionOwners;