Proactive Detection Configuration
A ProactiveDetection configuration definition. Uses Azure REST API version 2018-05-01-preview. In version 1.x of the Azure Native provider, it used API version 2015-05-01. Other available API versions: 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,
Location = "South Central US",
Name = "slowpageloadtime",
ResourceGroupName = "my-resource-group",
ResourceName = "my-component",
RuleDefinitions = new AzureNative.Insights.Inputs.ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitionsArgs
{
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/v2"
"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),
Location: pulumi.String("South Central US"),
Name: pulumi.String("slowpageloadtime"),
ResourceGroupName: pulumi.String("my-resource-group"),
ResourceName: pulumi.String("my-component"),
RuleDefinitions: &insights.ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitionsArgs{
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 com.pulumi.azurenative.insights.inputs.ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitionsArgs;
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)
.location("South Central US")
.name("slowpageloadtime")
.resourceGroupName("my-resource-group")
.resourceName("my-component")
.ruleDefinitions(ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesRuleDefinitionsArgs.builder()
.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)
.build())
.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 slowpageloadtime /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}
Content copied to clipboard
Properties
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val ruleDefinitions: Output<ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesResponseRuleDefinitions>?
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