azure-native.insights.ProactiveDetectionConfiguration
Explore with Pulumi AI
Properties that define a ProactiveDetection configuration. API Version: 2015-05-01.
Example Usage
ProactiveDetectionConfigurationUpdate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var proactiveDetectionConfiguration = new AzureNative.Insights.ProactiveDetectionConfiguration("proactiveDetectionConfiguration", new()
{
ConfigurationId = "slowpageloadtime",
CustomEmails = new[]
{
"foo@microsoft.com",
"foo2@microsoft.com",
},
Enabled = true,
Name = "slowpageloadtime",
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
RuleDefinitions = new AzureNative.Insights.Inputs.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs
{
Description = "Smart Detection rules notify you of performance anomaly issues.",
DisplayName = "Slow page load time",
HelpUrl = "https://docs.microsoft.com/en-us/azure/application-insights/app-insights-proactive-performance-diagnostics",
IsEnabledByDefault = true,
IsHidden = false,
IsInPreview = false,
Name = "slowpageloadtime",
SupportsEmailNotifications = true,
},
SendEmailsToSubscriptionOwners = true,
});
});
package main
import (
insights "github.com/pulumi/pulumi-azure-native-sdk/insights"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := insights.NewProactiveDetectionConfiguration(ctx, "proactiveDetectionConfiguration", &insights.ProactiveDetectionConfigurationArgs{
ConfigurationId: pulumi.String("slowpageloadtime"),
CustomEmails: pulumi.StringArray{
pulumi.String("foo@microsoft.com"),
pulumi.String("foo2@microsoft.com"),
},
Enabled: pulumi.Bool(true),
Name: pulumi.String("slowpageloadtime"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
RuleDefinitions: &insights.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs{
Description: pulumi.String("Smart Detection rules notify you of performance anomaly issues."),
DisplayName: pulumi.String("Slow page load time"),
HelpUrl: pulumi.String("https://docs.microsoft.com/en-us/azure/application-insights/app-insights-proactive-performance-diagnostics"),
IsEnabledByDefault: pulumi.Bool(true),
IsHidden: pulumi.Bool(false),
IsInPreview: pulumi.Bool(false),
Name: pulumi.String("slowpageloadtime"),
SupportsEmailNotifications: pulumi.Bool(true),
},
SendEmailsToSubscriptionOwners: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.insights.ProactiveDetectionConfiguration;
import com.pulumi.azurenative.insights.ProactiveDetectionConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var proactiveDetectionConfiguration = new ProactiveDetectionConfiguration("proactiveDetectionConfiguration", ProactiveDetectionConfigurationArgs.builder()
.configurationId("slowpageloadtime")
.customEmails(
"foo@microsoft.com",
"foo2@microsoft.com")
.enabled(true)
.name("slowpageloadtime")
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.ruleDefinitions(Map.ofEntries(
Map.entry("description", "Smart Detection rules notify you of performance anomaly issues."),
Map.entry("displayName", "Slow page load time"),
Map.entry("helpUrl", "https://docs.microsoft.com/en-us/azure/application-insights/app-insights-proactive-performance-diagnostics"),
Map.entry("isEnabledByDefault", true),
Map.entry("isHidden", false),
Map.entry("isInPreview", false),
Map.entry("name", "slowpageloadtime"),
Map.entry("supportsEmailNotifications", true)
))
.sendEmailsToSubscriptionOwners(true)
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
proactive_detection_configuration = azure_native.insights.ProactiveDetectionConfiguration("proactiveDetectionConfiguration",
configuration_id="slowpageloadtime",
custom_emails=[
"foo@microsoft.com",
"foo2@microsoft.com",
],
enabled=True,
name="slowpageloadtime",
resource_group_name="my-resource-group",
resource_name_="my-component",
rule_definitions=azure_native.insights.ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs(
description="Smart Detection rules notify you of performance anomaly issues.",
display_name="Slow page load time",
help_url="https://docs.microsoft.com/en-us/azure/application-insights/app-insights-proactive-performance-diagnostics",
is_enabled_by_default=True,
is_hidden=False,
is_in_preview=False,
name="slowpageloadtime",
supports_email_notifications=True,
),
send_emails_to_subscription_owners=True)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const proactiveDetectionConfiguration = new azure_native.insights.ProactiveDetectionConfiguration("proactiveDetectionConfiguration", {
configurationId: "slowpageloadtime",
customEmails: [
"foo@microsoft.com",
"foo2@microsoft.com",
],
enabled: true,
name: "slowpageloadtime",
resourceGroupName: "my-resource-group",
resourceName: "my-component",
ruleDefinitions: {
description: "Smart Detection rules notify you of performance anomaly issues.",
displayName: "Slow page load time",
helpUrl: "https://docs.microsoft.com/en-us/azure/application-insights/app-insights-proactive-performance-diagnostics",
isEnabledByDefault: true,
isHidden: false,
isInPreview: false,
name: "slowpageloadtime",
supportsEmailNotifications: true,
},
sendEmailsToSubscriptionOwners: true,
});
resources:
proactiveDetectionConfiguration:
type: azure-native:insights:ProactiveDetectionConfiguration
properties:
configurationId: slowpageloadtime
customEmails:
- foo@microsoft.com
- foo2@microsoft.com
enabled: true
name: slowpageloadtime
resourceGroupName: my-resource-group
resourceName: my-component
ruleDefinitions:
description: Smart Detection rules notify you of performance anomaly issues.
displayName: Slow page load time
helpUrl: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-proactive-performance-diagnostics
isEnabledByDefault: true
isHidden: false
isInPreview: false
name: slowpageloadtime
supportsEmailNotifications: true
sendEmailsToSubscriptionOwners: true
Create ProactiveDetectionConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProactiveDetectionConfiguration(name: string, args: ProactiveDetectionConfigurationArgs, opts?: CustomResourceOptions);
@overload
def ProactiveDetectionConfiguration(resource_name: str,
args: ProactiveDetectionConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProactiveDetectionConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
resource_name_: Optional[str] = None,
configuration_id: Optional[str] = None,
custom_emails: Optional[Sequence[str]] = None,
enabled: Optional[bool] = None,
last_updated_time: Optional[str] = None,
name: Optional[str] = None,
rule_definitions: Optional[ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs] = None,
send_emails_to_subscription_owners: Optional[bool] = None)
func NewProactiveDetectionConfiguration(ctx *Context, name string, args ProactiveDetectionConfigurationArgs, opts ...ResourceOption) (*ProactiveDetectionConfiguration, error)
public ProactiveDetectionConfiguration(string name, ProactiveDetectionConfigurationArgs args, CustomResourceOptions? opts = null)
public ProactiveDetectionConfiguration(String name, ProactiveDetectionConfigurationArgs args)
public ProactiveDetectionConfiguration(String name, ProactiveDetectionConfigurationArgs args, CustomResourceOptions options)
type: azure-native:insights:ProactiveDetectionConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProactiveDetectionConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProactiveDetectionConfigurationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProactiveDetectionConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProactiveDetectionConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProactiveDetectionConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var proactiveDetectionConfigurationResource = new AzureNative.Insights.ProactiveDetectionConfiguration("proactiveDetectionConfigurationResource", new()
{
ResourceGroupName = "string",
ResourceName = "string",
ConfigurationId = "string",
CustomEmails = new[]
{
"string",
},
Enabled = false,
LastUpdatedTime = "string",
Name = "string",
RuleDefinitions =
{
{ "description", "string" },
{ "displayName", "string" },
{ "helpUrl", "string" },
{ "isEnabledByDefault", false },
{ "isHidden", false },
{ "isInPreview", false },
{ "name", "string" },
{ "supportsEmailNotifications", false },
},
SendEmailsToSubscriptionOwners = false,
});
example, err := insights.NewProactiveDetectionConfiguration(ctx, "proactiveDetectionConfigurationResource", &insights.ProactiveDetectionConfigurationArgs{
ResourceGroupName: "string",
ResourceName: "string",
ConfigurationId: "string",
CustomEmails: []string{
"string",
},
Enabled: false,
LastUpdatedTime: "string",
Name: "string",
RuleDefinitions: map[string]interface{}{
"description": "string",
"displayName": "string",
"helpUrl": "string",
"isEnabledByDefault": false,
"isHidden": false,
"isInPreview": false,
"name": "string",
"supportsEmailNotifications": false,
},
SendEmailsToSubscriptionOwners: false,
})
var proactiveDetectionConfigurationResource = new ProactiveDetectionConfiguration("proactiveDetectionConfigurationResource", ProactiveDetectionConfigurationArgs.builder()
.resourceGroupName("string")
.resourceName("string")
.configurationId("string")
.customEmails("string")
.enabled(false)
.lastUpdatedTime("string")
.name("string")
.ruleDefinitions(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.sendEmailsToSubscriptionOwners(false)
.build());
proactive_detection_configuration_resource = azure_native.insights.ProactiveDetectionConfiguration("proactiveDetectionConfigurationResource",
resource_group_name=string,
resource_name_=string,
configuration_id=string,
custom_emails=[string],
enabled=False,
last_updated_time=string,
name=string,
rule_definitions={
description: string,
displayName: string,
helpUrl: string,
isEnabledByDefault: False,
isHidden: False,
isInPreview: False,
name: string,
supportsEmailNotifications: False,
},
send_emails_to_subscription_owners=False)
const proactiveDetectionConfigurationResource = new azure_native.insights.ProactiveDetectionConfiguration("proactiveDetectionConfigurationResource", {
resourceGroupName: "string",
resourceName: "string",
configurationId: "string",
customEmails: ["string"],
enabled: false,
lastUpdatedTime: "string",
name: "string",
ruleDefinitions: {
description: "string",
displayName: "string",
helpUrl: "string",
isEnabledByDefault: false,
isHidden: false,
isInPreview: false,
name: "string",
supportsEmailNotifications: false,
},
sendEmailsToSubscriptionOwners: false,
});
type: azure-native:insights:ProactiveDetectionConfiguration
properties:
configurationId: string
customEmails:
- string
enabled: false
lastUpdatedTime: string
name: string
resourceGroupName: string
resourceName: string
ruleDefinitions:
description: string
displayName: string
helpUrl: string
isEnabledByDefault: false
isHidden: false
isInPreview: false
name: string
supportsEmailNotifications: false
sendEmailsToSubscriptionOwners: false
ProactiveDetectionConfiguration Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ProactiveDetectionConfiguration resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Application Insights component resource.
- Configuration
Id string - The ProactiveDetection configuration ID. This is unique within a Application Insights component.
- Custom
Emails List<string> - Custom email addresses for this rule notifications
- Enabled bool
- A flag that indicates whether this rule is enabled by the user
- Last
Updated stringTime - The last time this rule was updated
- Name string
- The rule name
- Rule
Definitions Pulumi.Azure Native. Insights. Inputs. Application Insights Component Proactive Detection Configuration Rule Definitions - Static definitions of the ProactiveDetection configuration rule (same values for all components).
- Send
Emails boolTo Subscription Owners - A flag that indicated whether notifications on this rule should be sent to subscription owners
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the Application Insights component resource.
- Configuration
Id string - The ProactiveDetection configuration ID. This is unique within a Application Insights component.
- Custom
Emails []string - Custom email addresses for this rule notifications
- Enabled bool
- A flag that indicates whether this rule is enabled by the user
- Last
Updated stringTime - The last time this rule was updated
- Name string
- The rule name
- Rule
Definitions ApplicationInsights Component Proactive Detection Configuration Rule Definitions Args - Static definitions of the ProactiveDetection configuration rule (same values for all components).
- Send
Emails boolTo Subscription Owners - A flag that indicated whether notifications on this rule should be sent to subscription owners
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Application Insights component resource.
- configuration
Id String - The ProactiveDetection configuration ID. This is unique within a Application Insights component.
- custom
Emails List<String> - Custom email addresses for this rule notifications
- enabled Boolean
- A flag that indicates whether this rule is enabled by the user
- last
Updated StringTime - The last time this rule was updated
- name String
- The rule name
- rule
Definitions ApplicationInsights Component Proactive Detection Configuration Rule Definitions - Static definitions of the ProactiveDetection configuration rule (same values for all components).
- send
Emails BooleanTo Subscription Owners - A flag that indicated whether notifications on this rule should be sent to subscription owners
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the Application Insights component resource.
- configuration
Id string - The ProactiveDetection configuration ID. This is unique within a Application Insights component.
- custom
Emails string[] - Custom email addresses for this rule notifications
- enabled boolean
- A flag that indicates whether this rule is enabled by the user
- last
Updated stringTime - The last time this rule was updated
- name string
- The rule name
- rule
Definitions ApplicationInsights Component Proactive Detection Configuration Rule Definitions - Static definitions of the ProactiveDetection configuration rule (same values for all components).
- send
Emails booleanTo Subscription Owners - A flag that indicated whether notifications on this rule should be sent to subscription owners
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- resource_
name str - The name of the Application Insights component resource.
- configuration_
id str - The ProactiveDetection configuration ID. This is unique within a Application Insights component.
- custom_
emails Sequence[str] - Custom email addresses for this rule notifications
- enabled bool
- A flag that indicates whether this rule is enabled by the user
- last_
updated_ strtime - The last time this rule was updated
- name str
- The rule name
- rule_
definitions ApplicationInsights Component Proactive Detection Configuration Rule Definitions Args - Static definitions of the ProactiveDetection configuration rule (same values for all components).
- send_
emails_ boolto_ subscription_ owners - A flag that indicated whether notifications on this rule should be sent to subscription owners
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the Application Insights component resource.
- configuration
Id String - The ProactiveDetection configuration ID. This is unique within a Application Insights component.
- custom
Emails List<String> - Custom email addresses for this rule notifications
- enabled Boolean
- A flag that indicates whether this rule is enabled by the user
- last
Updated StringTime - The last time this rule was updated
- name String
- The rule name
- rule
Definitions Property Map - Static definitions of the ProactiveDetection configuration rule (same values for all components).
- send
Emails BooleanTo Subscription Owners - A flag that indicated whether notifications on this rule should be sent to subscription owners
Outputs
All input properties are implicitly available as output properties. Additionally, the ProactiveDetectionConfiguration resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ApplicationInsightsComponentProactiveDetectionConfigurationResponseRuleDefinitions, ApplicationInsightsComponentProactiveDetectionConfigurationResponseRuleDefinitionsArgs
- Description string
- The rule description
- Display
Name string - The rule name as it is displayed in UI
- Help
Url string - URL which displays additional info about the proactive detection rule
- Is
Enabled boolBy Default - A flag indicating whether the rule is enabled by default
- bool
- A flag indicating whether the rule is hidden (from the UI)
- Is
In boolPreview - A flag indicating whether the rule is in preview
- Name string
- The rule name
- Supports
Email boolNotifications - A flag indicating whether email notifications are supported for detections for this rule
- Description string
- The rule description
- Display
Name string - The rule name as it is displayed in UI
- Help
Url string - URL which displays additional info about the proactive detection rule
- Is
Enabled boolBy Default - A flag indicating whether the rule is enabled by default
- bool
- A flag indicating whether the rule is hidden (from the UI)
- Is
In boolPreview - A flag indicating whether the rule is in preview
- Name string
- The rule name
- Supports
Email boolNotifications - A flag indicating whether email notifications are supported for detections for this rule
- description String
- The rule description
- display
Name String - The rule name as it is displayed in UI
- help
Url String - URL which displays additional info about the proactive detection rule
- is
Enabled BooleanBy Default - A flag indicating whether the rule is enabled by default
- Boolean
- A flag indicating whether the rule is hidden (from the UI)
- is
In BooleanPreview - A flag indicating whether the rule is in preview
- name String
- The rule name
- supports
Email BooleanNotifications - A flag indicating whether email notifications are supported for detections for this rule
- description string
- The rule description
- display
Name string - The rule name as it is displayed in UI
- help
Url string - URL which displays additional info about the proactive detection rule
- is
Enabled booleanBy Default - A flag indicating whether the rule is enabled by default
- boolean
- A flag indicating whether the rule is hidden (from the UI)
- is
In booleanPreview - A flag indicating whether the rule is in preview
- name string
- The rule name
- supports
Email booleanNotifications - A flag indicating whether email notifications are supported for detections for this rule
- description str
- The rule description
- display_
name str - The rule name as it is displayed in UI
- help_
url str - URL which displays additional info about the proactive detection rule
- is_
enabled_ boolby_ default - A flag indicating whether the rule is enabled by default
- bool
- A flag indicating whether the rule is hidden (from the UI)
- is_
in_ boolpreview - A flag indicating whether the rule is in preview
- name str
- The rule name
- supports_
email_ boolnotifications - A flag indicating whether email notifications are supported for detections for this rule
- description String
- The rule description
- display
Name String - The rule name as it is displayed in UI
- help
Url String - URL which displays additional info about the proactive detection rule
- is
Enabled BooleanBy Default - A flag indicating whether the rule is enabled by default
- Boolean
- A flag indicating whether the rule is hidden (from the UI)
- is
In BooleanPreview - A flag indicating whether the rule is in preview
- name String
- The rule name
- supports
Email BooleanNotifications - A flag indicating whether email notifications are supported for detections for this rule
ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitions, ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs
- Description string
- The rule description
- Display
Name string - The rule name as it is displayed in UI
- Help
Url string - URL which displays additional info about the proactive detection rule
- Is
Enabled boolBy Default - A flag indicating whether the rule is enabled by default
- bool
- A flag indicating whether the rule is hidden (from the UI)
- Is
In boolPreview - A flag indicating whether the rule is in preview
- Name string
- The rule name
- Supports
Email boolNotifications - A flag indicating whether email notifications are supported for detections for this rule
- Description string
- The rule description
- Display
Name string - The rule name as it is displayed in UI
- Help
Url string - URL which displays additional info about the proactive detection rule
- Is
Enabled boolBy Default - A flag indicating whether the rule is enabled by default
- bool
- A flag indicating whether the rule is hidden (from the UI)
- Is
In boolPreview - A flag indicating whether the rule is in preview
- Name string
- The rule name
- Supports
Email boolNotifications - A flag indicating whether email notifications are supported for detections for this rule
- description String
- The rule description
- display
Name String - The rule name as it is displayed in UI
- help
Url String - URL which displays additional info about the proactive detection rule
- is
Enabled BooleanBy Default - A flag indicating whether the rule is enabled by default
- Boolean
- A flag indicating whether the rule is hidden (from the UI)
- is
In BooleanPreview - A flag indicating whether the rule is in preview
- name String
- The rule name
- supports
Email BooleanNotifications - A flag indicating whether email notifications are supported for detections for this rule
- description string
- The rule description
- display
Name string - The rule name as it is displayed in UI
- help
Url string - URL which displays additional info about the proactive detection rule
- is
Enabled booleanBy Default - A flag indicating whether the rule is enabled by default
- boolean
- A flag indicating whether the rule is hidden (from the UI)
- is
In booleanPreview - A flag indicating whether the rule is in preview
- name string
- The rule name
- supports
Email booleanNotifications - A flag indicating whether email notifications are supported for detections for this rule
- description str
- The rule description
- display_
name str - The rule name as it is displayed in UI
- help_
url str - URL which displays additional info about the proactive detection rule
- is_
enabled_ boolby_ default - A flag indicating whether the rule is enabled by default
- bool
- A flag indicating whether the rule is hidden (from the UI)
- is_
in_ boolpreview - A flag indicating whether the rule is in preview
- name str
- The rule name
- supports_
email_ boolnotifications - A flag indicating whether email notifications are supported for detections for this rule
- description String
- The rule description
- display
Name String - The rule name as it is displayed in UI
- help
Url String - URL which displays additional info about the proactive detection rule
- is
Enabled BooleanBy Default - A flag indicating whether the rule is enabled by default
- Boolean
- A flag indicating whether the rule is hidden (from the UI)
- is
In BooleanPreview - A flag indicating whether the rule is in preview
- name String
- The rule name
- supports
Email BooleanNotifications - A flag indicating whether email notifications are supported for detections for this rule
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:insights:ProactiveDetectionConfiguration myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0