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
The ProactiveDetection configuration for this configuration id.
Name | Datatype | Description |
---|---|---|
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 |
Name | string | The rule name |
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 |
A list containing 0 or more ProactiveDetection configurations of an Application Insights component.
Name | Datatype | Description |
---|---|---|
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 |
Name | string | The rule name |
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 | resourceGroupName , subscriptionId , resourceName , ConfigurationId | Get the ProactiveDetection configuration for this configuration id. | |
list | select | resourceGroupName , subscriptionId , resourceName | Gets a list of ProactiveDetection configurations of an Application Insights component. | |
update | replace | resourceGroupName , subscriptionId , resourceName , ConfigurationId | 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 |
---|---|---|
ConfigurationId | string | The ProactiveDetection configuration ID. This is unique within a Application Insights component. |
resourceGroupName | string | The name of the resource group. The name is case insensitive. |
resourceName | string | The name of the Application Insights component resource. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
SELECT
examples
- get
- list
Get the ProactiveDetection configuration for this configuration id.
SELECT
CustomEmails,
Enabled,
LastUpdatedTime,
Name,
RuleDefinitions,
SendEmailsToSubscriptionOwners
FROM azure.application_insights.proactive_detection_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceName = '{{ resourceName }}' -- required
AND ConfigurationId = '{{ ConfigurationId }}' -- required
;
Gets a list of ProactiveDetection configurations of an Application Insights component.
SELECT
CustomEmails,
Enabled,
LastUpdatedTime,
Name,
RuleDefinitions,
SendEmailsToSubscriptionOwners
FROM azure.application_insights.proactive_detection_configurations
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND resourceName = '{{ resourceName }}' -- required
;
REPLACE
examples
- update
Update the ProactiveDetection configuration for this configuration id.
REPLACE azure.application_insights.proactive_detection_configurations
SET
data__Name = '{{ Name }}',
data__Enabled = {{ Enabled }},
data__SendEmailsToSubscriptionOwners = {{ SendEmailsToSubscriptionOwners }},
data__CustomEmails = '{{ CustomEmails }}',
data__LastUpdatedTime = '{{ LastUpdatedTime }}',
data__RuleDefinitions = '{{ RuleDefinitions }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND resourceName = '{{ resourceName }}' --required
AND ConfigurationId = '{{ ConfigurationId }}' --required
RETURNING
CustomEmails,
Enabled,
LastUpdatedTime,
Name,
RuleDefinitions,
SendEmailsToSubscriptionOwners;