Proactive Detection Configuration Args
data class ProactiveDetectionConfigurationArgs(val configurationId: Output<String>? = null, val customEmails: Output<List<String>>? = null, val enabled: Output<Boolean>? = null, val lastUpdatedTime: Output<String>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val ruleDefinitions: Output<ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs>? = null, val sendEmailsToSubscriptionOwners: Output<Boolean>? = null) : ConvertibleToJava<ProactiveDetectionConfigurationArgs>
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(configurationId: Output<String>? = null, customEmails: Output<List<String>>? = null, enabled: Output<Boolean>? = null, lastUpdatedTime: Output<String>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, ruleDefinitions: Output<ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs>? = null, sendEmailsToSubscriptionOwners: Output<Boolean>? = null)
Properties
Link copied to clipboard
The ProactiveDetection configuration ID. This is unique within a Application Insights component.
Link copied to clipboard
Custom email addresses for this rule notifications
Link copied to clipboard
The last time this rule was updated
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
The name of the Application Insights component resource.
Link copied to clipboard
val ruleDefinitions: Output<ApplicationInsightsComponentProactiveDetectionConfigurationRuleDefinitionsArgs>? = null
Static definitions of the ProactiveDetection configuration rule (same values for all components).
Link copied to clipboard
A flag that indicated whether notifications on this rule should be sent to subscription owners