Skip to main content

proactive_detection_configurations

Creates, updates, deletes, gets or lists a proactive_detection_configurations resource.

Overview

Nameproactive_detection_configurations
TypeResource
Idazure.application_insights.proactive_detection_configurations

Fields

The following fields are returned by SELECT queries:

The ProactiveDetection configuration for this configuration id.

NameDatatypeDescription
CustomEmailsarrayCustom email addresses for this rule notifications
EnabledbooleanA flag that indicates whether this rule is enabled by the user
LastUpdatedTimestringThe last time this rule was updated
NamestringThe rule name
RuleDefinitionsobjectStatic definitions of the ProactiveDetection configuration rule (same values for all components).
SendEmailsToSubscriptionOwnersbooleanA flag that indicated whether notifications on this rule should be sent to subscription owners

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, subscriptionId, resourceName, ConfigurationIdGet the ProactiveDetection configuration for this configuration id.
listselectresourceGroupName, subscriptionId, resourceNameGets a list of ProactiveDetection configurations of an Application Insights component.
updatereplaceresourceGroupName, subscriptionId, resourceName, ConfigurationIdUpdate 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.

NameDatatypeDescription
ConfigurationIdstringThe ProactiveDetection configuration ID. This is unique within a Application Insights component.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
resourceNamestringThe name of the Application Insights component resource.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

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
;

REPLACE examples

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;