SmartDetectionRuleArgs

data class SmartDetectionRuleArgs(val additionalEmailRecipients: Output<List<String>>? = null, val applicationInsightsId: Output<String>? = null, val enabled: Output<Boolean>? = null, val name: Output<String>? = null, val sendEmailsToSubscriptionOwners: Output<Boolean>? = null) : ConvertibleToJava<SmartDetectionRuleArgs>

Manages an Application Insights Smart Detection Rule.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.appinsights.Insights;
import com.pulumi.azure.appinsights.InsightsArgs;
import com.pulumi.azure.appinsights.SmartDetectionRule;
import com.pulumi.azure.appinsights.SmartDetectionRuleArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.applicationType("web")
.build());
var exampleSmartDetectionRule = new SmartDetectionRule("exampleSmartDetectionRule", SmartDetectionRuleArgs.builder()
.applicationInsightsId(exampleInsights.id())
.enabled(false)
.build());
}
}

Import

Application Insights Smart Detection Rules can be imported using the resource id, e.g.

$ pulumi import azure:appinsights/smartDetectionRule:SmartDetectionRule rule1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Insights/components/mycomponent1/smartDetectionRule/myrule1

Constructors

Link copied to clipboard
fun SmartDetectionRuleArgs(additionalEmailRecipients: Output<List<String>>? = null, applicationInsightsId: Output<String>? = null, enabled: Output<Boolean>? = null, name: Output<String>? = null, sendEmailsToSubscriptionOwners: Output<Boolean>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SmartDetectionRuleArgs

Properties

Link copied to clipboard
val additionalEmailRecipients: Output<List<String>>? = null

Specifies a list of additional recipients that will be sent emails on this Application Insights Smart Detection Rule.

Link copied to clipboard
val applicationInsightsId: Output<String>? = null

The ID of the Application Insights component on which the Smart Detection Rule operates. Changing this forces a new resource to be created.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Is the Application Insights Smart Detection Rule enabled? Defaults to true.

Link copied to clipboard
val name: Output<String>? = null

Specifies the name of the Application Insights Smart Detection Rule. Valid values include Slow page load time, Slow server response time, Long dependency duration, Degradation in server response time, Degradation in dependency duration, Degradation in trace severity ratio, Abnormal rise in exception volume, Potential memory leak detected, Potential security issue detected and Abnormal rise in daily data volume, Long dependency duration, Degradation in server response time, Degradation in dependency duration, Degradation in trace severity ratio, Abnormal rise in exception volume, Potential memory leak detected, Potential security issue detected, Abnormal rise in daily data volume. Changing this forces a new resource to be created.

Link copied to clipboard

Do emails get sent to subscription owners? Defaults to true.