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

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

NameAccessible byRequired ParamsDescription
getSELECTConfigurationId, resourceGroupName, resourceName, subscriptionIdGet the ProactiveDetection configuration for this configuration id.
listSELECTresourceGroupName, resourceName, subscriptionIdGets a list of ProactiveDetection configurations of an Application Insights component.
updateREPLACEConfigurationId, resourceGroupName, resourceName, subscriptionIdUpdate the ProactiveDetection configuration for this configuration id.

SELECT examples

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 }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

REPLACE example

Replaces all fields in the specified proactive_detection_configurations resource.

/*+ update */
REPLACE azure.application_insights.proactive_detection_configurations
SET
Name = '{{ Name }}',
Enabled = true|false,
SendEmailsToSubscriptionOwners = true|false,
CustomEmails = '{{ CustomEmails }}',
LastUpdatedTime = '{{ LastUpdatedTime }}',
RuleDefinitions = '{{ RuleDefinitions }}'
WHERE
ConfigurationId = '{{ ConfigurationId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';