Package com.pulumi.azurenative.insights
Class ProactiveDetectionConfiguration
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.insights.ProactiveDetectionConfiguration
-
public class ProactiveDetectionConfiguration extends com.pulumi.resources.CustomResource
A ProactiveDetection configuration definition. Azure REST API version: 2018-05-01-preview. Prior API version in Azure Native 1.x: 2015-05-01. Other available API versions: 2015-05-01. ## Example Usage ### ProactiveDetectionConfigurationUpdate ```java 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( "[email protected]", "[email protected]") .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()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:insights:ProactiveDetectionConfiguration slowpageloadtime /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId} ```
-
-
Constructor Summary
Constructors Constructor Description ProactiveDetectionConfiguration(java.lang.String name)
ProactiveDetectionConfiguration(java.lang.String name, ProactiveDetectionConfigurationArgs args)
ProactiveDetectionConfiguration(java.lang.String name, ProactiveDetectionConfigurationArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>>
customEmails()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
enabled()
static ProactiveDetectionConfiguration
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
lastUpdatedTime()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
location()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.util.Optional<ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesResponseRuleDefinitions>>
ruleDefinitions()
com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>>
sendEmailsToSubscriptionOwners()
com.pulumi.core.Output<java.lang.String>
type()
-
-
-
Constructor Detail
-
ProactiveDetectionConfiguration
public ProactiveDetectionConfiguration(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
ProactiveDetectionConfiguration
public ProactiveDetectionConfiguration(java.lang.String name, ProactiveDetectionConfigurationArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
ProactiveDetectionConfiguration
public ProactiveDetectionConfiguration(java.lang.String name, ProactiveDetectionConfigurationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
customEmails
public com.pulumi.core.Output<java.util.Optional<java.util.List<java.lang.String>>> customEmails()
- Returns:
- Custom email addresses for this rule notifications
-
enabled
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> enabled()
- Returns:
- A flag that indicates whether this rule is enabled by the user
-
lastUpdatedTime
public com.pulumi.core.Output<java.lang.String> lastUpdatedTime()
- Returns:
- The last time this rule was updated
-
location
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> location()
- Returns:
- Resource location
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The rule name
-
ruleDefinitions
public com.pulumi.core.Output<java.util.Optional<ApplicationInsightsComponentProactiveDetectionConfigurationPropertiesResponseRuleDefinitions>> ruleDefinitions()
- Returns:
- Static definitions of the ProactiveDetection configuration rule (same values for all components).
-
sendEmailsToSubscriptionOwners
public com.pulumi.core.Output<java.util.Optional<java.lang.Boolean>> sendEmailsToSubscriptionOwners()
- Returns:
- A flag that indicated whether notifications on this rule should be sent to subscription owners
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- Azure resource type
-
get
public static ProactiveDetectionConfiguration get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-