1. Packages
  2. Azure Native v1
  3. API Docs
  4. alertsmanagement
  5. SmartDetectorAlertRule
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.alertsmanagement.SmartDetectorAlertRule

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The alert rule information API Version: 2019-06-01.

    Example Usage

    Create or update a Smart Detector alert rule

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var smartDetectorAlertRule = new AzureNative.AlertsManagement.SmartDetectorAlertRule("smartDetectorAlertRule", new()
        {
            ActionGroups = new AzureNative.AlertsManagement.Inputs.ActionGroupsInformationArgs
            {
                CustomEmailSubject = "My custom email subject",
                CustomWebhookPayload = "{\"AlertRuleName\":\"#alertrulename\"}",
                GroupIds = new[]
                {
                    "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup",
                },
            },
            AlertRuleName = "MyAlertRule",
            Description = "Sample smart detector alert rule description",
            Detector = new AzureNative.AlertsManagement.Inputs.DetectorArgs
            {
                Id = "VMMemoryLeak",
            },
            Frequency = "PT5M",
            ResourceGroupName = "MyAlertRules",
            Scope = new[]
            {
                "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1",
            },
            Severity = "Sev3",
            State = "Enabled",
            Throttling = new AzureNative.AlertsManagement.Inputs.ThrottlingInformationArgs
            {
                Duration = "PT20M",
            },
        });
    
    });
    
    package main
    
    import (
    	alertsmanagement "github.com/pulumi/pulumi-azure-native-sdk/alertsmanagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := alertsmanagement.NewSmartDetectorAlertRule(ctx, "smartDetectorAlertRule", &alertsmanagement.SmartDetectorAlertRuleArgs{
    			ActionGroups: &alertsmanagement.ActionGroupsInformationArgs{
    				CustomEmailSubject:   pulumi.String("My custom email subject"),
    				CustomWebhookPayload: pulumi.String("{\"AlertRuleName\":\"#alertrulename\"}"),
    				GroupIds: pulumi.StringArray{
    					pulumi.String("/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"),
    				},
    			},
    			AlertRuleName: pulumi.String("MyAlertRule"),
    			Description:   pulumi.String("Sample smart detector alert rule description"),
    			Detector: &alertsmanagement.DetectorArgs{
    				Id: pulumi.String("VMMemoryLeak"),
    			},
    			Frequency:         pulumi.String("PT5M"),
    			ResourceGroupName: pulumi.String("MyAlertRules"),
    			Scope: pulumi.StringArray{
    				pulumi.String("/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"),
    			},
    			Severity: pulumi.String("Sev3"),
    			State:    pulumi.String("Enabled"),
    			Throttling: &alertsmanagement.ThrottlingInformationArgs{
    				Duration: pulumi.String("PT20M"),
    			},
    		})
    		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.alertsmanagement.SmartDetectorAlertRule;
    import com.pulumi.azurenative.alertsmanagement.SmartDetectorAlertRuleArgs;
    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 smartDetectorAlertRule = new SmartDetectorAlertRule("smartDetectorAlertRule", SmartDetectorAlertRuleArgs.builder()        
                .actionGroups(Map.ofEntries(
                    Map.entry("customEmailSubject", "My custom email subject"),
                    Map.entry("customWebhookPayload", "{\"AlertRuleName\":\"#alertrulename\"}"),
                    Map.entry("groupIds", "/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup")
                ))
                .alertRuleName("MyAlertRule")
                .description("Sample smart detector alert rule description")
                .detector(Map.of("id", "VMMemoryLeak"))
                .frequency("PT5M")
                .resourceGroupName("MyAlertRules")
                .scope("/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1")
                .severity("Sev3")
                .state("Enabled")
                .throttling(Map.of("duration", "PT20M"))
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    smart_detector_alert_rule = azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRule",
        action_groups=azure_native.alertsmanagement.ActionGroupsInformationArgs(
            custom_email_subject="My custom email subject",
            custom_webhook_payload="{\"AlertRuleName\":\"#alertrulename\"}",
            group_ids=["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"],
        ),
        alert_rule_name="MyAlertRule",
        description="Sample smart detector alert rule description",
        detector=azure_native.alertsmanagement.DetectorArgs(
            id="VMMemoryLeak",
        ),
        frequency="PT5M",
        resource_group_name="MyAlertRules",
        scope=["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"],
        severity="Sev3",
        state="Enabled",
        throttling=azure_native.alertsmanagement.ThrottlingInformationArgs(
            duration="PT20M",
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const smartDetectorAlertRule = new azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRule", {
        actionGroups: {
            customEmailSubject: "My custom email subject",
            customWebhookPayload: "{\"AlertRuleName\":\"#alertrulename\"}",
            groupIds: ["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup"],
        },
        alertRuleName: "MyAlertRule",
        description: "Sample smart detector alert rule description",
        detector: {
            id: "VMMemoryLeak",
        },
        frequency: "PT5M",
        resourceGroupName: "MyAlertRules",
        scope: ["/subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1"],
        severity: "Sev3",
        state: "Enabled",
        throttling: {
            duration: "PT20M",
        },
    });
    
    resources:
      smartDetectorAlertRule:
        type: azure-native:alertsmanagement:SmartDetectorAlertRule
        properties:
          actionGroups:
            customEmailSubject: My custom email subject
            customWebhookPayload: '{"AlertRuleName":"#alertrulename"}'
            groupIds:
              - /subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourcegroups/actionGroups/providers/microsoft.insights/actiongroups/MyActionGroup
          alertRuleName: MyAlertRule
          description: Sample smart detector alert rule description
          detector:
            id: VMMemoryLeak
          frequency: PT5M
          resourceGroupName: MyAlertRules
          scope:
            - /subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyVms/providers/Microsoft.Compute/virtualMachines/vm1
          severity: Sev3
          state: Enabled
          throttling:
            duration: PT20M
    

    Create SmartDetectorAlertRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SmartDetectorAlertRule(name: string, args: SmartDetectorAlertRuleArgs, opts?: CustomResourceOptions);
    @overload
    def SmartDetectorAlertRule(resource_name: str,
                               args: SmartDetectorAlertRuleArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def SmartDetectorAlertRule(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               action_groups: Optional[ActionGroupsInformationArgs] = None,
                               detector: Optional[DetectorArgs] = None,
                               frequency: Optional[str] = None,
                               resource_group_name: Optional[str] = None,
                               scope: Optional[Sequence[str]] = None,
                               severity: Optional[Union[str, Severity]] = None,
                               state: Optional[Union[str, AlertRuleState]] = None,
                               alert_rule_name: Optional[str] = None,
                               description: Optional[str] = None,
                               location: Optional[str] = None,
                               tags: Optional[Mapping[str, str]] = None,
                               throttling: Optional[ThrottlingInformationArgs] = None)
    func NewSmartDetectorAlertRule(ctx *Context, name string, args SmartDetectorAlertRuleArgs, opts ...ResourceOption) (*SmartDetectorAlertRule, error)
    public SmartDetectorAlertRule(string name, SmartDetectorAlertRuleArgs args, CustomResourceOptions? opts = null)
    public SmartDetectorAlertRule(String name, SmartDetectorAlertRuleArgs args)
    public SmartDetectorAlertRule(String name, SmartDetectorAlertRuleArgs args, CustomResourceOptions options)
    
    type: azure-native:alertsmanagement:SmartDetectorAlertRule
    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 SmartDetectorAlertRuleArgs
    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 SmartDetectorAlertRuleArgs
    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 SmartDetectorAlertRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SmartDetectorAlertRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SmartDetectorAlertRuleArgs
    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 smartDetectorAlertRuleResource = new AzureNative.Alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRuleResource", new()
    {
        ActionGroups = 
        {
            { "groupIds", new[]
            {
                "string",
            } },
            { "customEmailSubject", "string" },
            { "customWebhookPayload", "string" },
        },
        Detector = 
        {
            { "id", "string" },
            { "description", "string" },
            { "imagePaths", new[]
            {
                "string",
            } },
            { "name", "string" },
            { "parameters", 
            {
                { "string", "any" },
            } },
            { "supportedResourceTypes", new[]
            {
                "string",
            } },
        },
        Frequency = "string",
        ResourceGroupName = "string",
        Scope = new[]
        {
            "string",
        },
        Severity = "string",
        State = "string",
        AlertRuleName = "string",
        Description = "string",
        Location = "string",
        Tags = 
        {
            { "string", "string" },
        },
        Throttling = 
        {
            { "duration", "string" },
        },
    });
    
    example, err := alertsmanagement.NewSmartDetectorAlertRule(ctx, "smartDetectorAlertRuleResource", &alertsmanagement.SmartDetectorAlertRuleArgs{
    	ActionGroups: map[string]interface{}{
    		"groupIds": []string{
    			"string",
    		},
    		"customEmailSubject":   "string",
    		"customWebhookPayload": "string",
    	},
    	Detector: map[string]interface{}{
    		"id":          "string",
    		"description": "string",
    		"imagePaths": []string{
    			"string",
    		},
    		"name": "string",
    		"parameters": map[string]interface{}{
    			"string": "any",
    		},
    		"supportedResourceTypes": []string{
    			"string",
    		},
    	},
    	Frequency:         "string",
    	ResourceGroupName: "string",
    	Scope: []string{
    		"string",
    	},
    	Severity:      "string",
    	State:         "string",
    	AlertRuleName: "string",
    	Description:   "string",
    	Location:      "string",
    	Tags: map[string]interface{}{
    		"string": "string",
    	},
    	Throttling: map[string]interface{}{
    		"duration": "string",
    	},
    })
    
    var smartDetectorAlertRuleResource = new SmartDetectorAlertRule("smartDetectorAlertRuleResource", SmartDetectorAlertRuleArgs.builder()
        .actionGroups(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .detector(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .frequency("string")
        .resourceGroupName("string")
        .scope("string")
        .severity("string")
        .state("string")
        .alertRuleName("string")
        .description("string")
        .location("string")
        .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .throttling(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    smart_detector_alert_rule_resource = azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRuleResource",
        action_groups={
            groupIds: [string],
            customEmailSubject: string,
            customWebhookPayload: string,
        },
        detector={
            id: string,
            description: string,
            imagePaths: [string],
            name: string,
            parameters: {
                string: any,
            },
            supportedResourceTypes: [string],
        },
        frequency=string,
        resource_group_name=string,
        scope=[string],
        severity=string,
        state=string,
        alert_rule_name=string,
        description=string,
        location=string,
        tags={
            string: string,
        },
        throttling={
            duration: string,
        })
    
    const smartDetectorAlertRuleResource = new azure_native.alertsmanagement.SmartDetectorAlertRule("smartDetectorAlertRuleResource", {
        actionGroups: {
            groupIds: ["string"],
            customEmailSubject: "string",
            customWebhookPayload: "string",
        },
        detector: {
            id: "string",
            description: "string",
            imagePaths: ["string"],
            name: "string",
            parameters: {
                string: "any",
            },
            supportedResourceTypes: ["string"],
        },
        frequency: "string",
        resourceGroupName: "string",
        scope: ["string"],
        severity: "string",
        state: "string",
        alertRuleName: "string",
        description: "string",
        location: "string",
        tags: {
            string: "string",
        },
        throttling: {
            duration: "string",
        },
    });
    
    type: azure-native:alertsmanagement:SmartDetectorAlertRule
    properties:
        actionGroups:
            customEmailSubject: string
            customWebhookPayload: string
            groupIds:
                - string
        alertRuleName: string
        description: string
        detector:
            description: string
            id: string
            imagePaths:
                - string
            name: string
            parameters:
                string: any
            supportedResourceTypes:
                - string
        frequency: string
        location: string
        resourceGroupName: string
        scope:
            - string
        severity: string
        state: string
        tags:
            string: string
        throttling:
            duration: string
    

    SmartDetectorAlertRule 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 SmartDetectorAlertRule resource accepts the following input properties:

    ActionGroups Pulumi.AzureNative.AlertsManagement.Inputs.ActionGroupsInformation
    The alert rule actions.
    Detector Pulumi.AzureNative.AlertsManagement.Inputs.Detector
    The alert rule's detector.
    Frequency string
    The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    ResourceGroupName string
    The name of the resource group.
    Scope List<string>
    The alert rule resources scope.
    Severity string | Pulumi.AzureNative.AlertsManagement.Severity
    The alert rule severity.
    State string | Pulumi.AzureNative.AlertsManagement.AlertRuleState
    The alert rule state.
    AlertRuleName string
    The name of the alert rule.
    Description string
    The alert rule description.
    Location string
    The resource location.
    Tags Dictionary<string, string>
    The resource tags.
    Throttling Pulumi.AzureNative.AlertsManagement.Inputs.ThrottlingInformation
    The alert rule throttling information.
    ActionGroups ActionGroupsInformationArgs
    The alert rule actions.
    Detector DetectorArgs
    The alert rule's detector.
    Frequency string
    The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    ResourceGroupName string
    The name of the resource group.
    Scope []string
    The alert rule resources scope.
    Severity string | Severity
    The alert rule severity.
    State string | AlertRuleState
    The alert rule state.
    AlertRuleName string
    The name of the alert rule.
    Description string
    The alert rule description.
    Location string
    The resource location.
    Tags map[string]string
    The resource tags.
    Throttling ThrottlingInformationArgs
    The alert rule throttling information.
    actionGroups ActionGroupsInformation
    The alert rule actions.
    detector Detector
    The alert rule's detector.
    frequency String
    The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    resourceGroupName String
    The name of the resource group.
    scope List<String>
    The alert rule resources scope.
    severity String | Severity
    The alert rule severity.
    state String | AlertRuleState
    The alert rule state.
    alertRuleName String
    The name of the alert rule.
    description String
    The alert rule description.
    location String
    The resource location.
    tags Map<String,String>
    The resource tags.
    throttling ThrottlingInformation
    The alert rule throttling information.
    actionGroups ActionGroupsInformation
    The alert rule actions.
    detector Detector
    The alert rule's detector.
    frequency string
    The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    resourceGroupName string
    The name of the resource group.
    scope string[]
    The alert rule resources scope.
    severity string | Severity
    The alert rule severity.
    state string | AlertRuleState
    The alert rule state.
    alertRuleName string
    The name of the alert rule.
    description string
    The alert rule description.
    location string
    The resource location.
    tags {[key: string]: string}
    The resource tags.
    throttling ThrottlingInformation
    The alert rule throttling information.
    action_groups ActionGroupsInformationArgs
    The alert rule actions.
    detector DetectorArgs
    The alert rule's detector.
    frequency str
    The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    resource_group_name str
    The name of the resource group.
    scope Sequence[str]
    The alert rule resources scope.
    severity str | Severity
    The alert rule severity.
    state str | AlertRuleState
    The alert rule state.
    alert_rule_name str
    The name of the alert rule.
    description str
    The alert rule description.
    location str
    The resource location.
    tags Mapping[str, str]
    The resource tags.
    throttling ThrottlingInformationArgs
    The alert rule throttling information.
    actionGroups Property Map
    The alert rule actions.
    detector Property Map
    The alert rule's detector.
    frequency String
    The alert rule frequency in ISO8601 format. The time granularity must be in minutes and minimum value is 5 minutes.
    resourceGroupName String
    The name of the resource group.
    scope List<String>
    The alert rule resources scope.
    severity String | "Sev0" | "Sev1" | "Sev2" | "Sev3" | "Sev4"
    The alert rule severity.
    state String | "Enabled" | "Disabled"
    The alert rule state.
    alertRuleName String
    The name of the alert rule.
    description String
    The alert rule description.
    location String
    The resource location.
    tags Map<String>
    The resource tags.
    throttling Property Map
    The alert rule throttling information.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SmartDetectorAlertRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name.
    Type string
    The resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name.
    Type string
    The resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name.
    type String
    The resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name.
    type string
    The resource type.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name.
    type str
    The resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name.
    type String
    The resource type.

    Supporting Types

    ActionGroupsInformation, ActionGroupsInformationArgs

    GroupIds List<string>
    The Action Group resource IDs.
    CustomEmailSubject string
    An optional custom email subject to use in email notifications.
    CustomWebhookPayload string
    An optional custom web-hook payload to use in web-hook notifications.
    GroupIds []string
    The Action Group resource IDs.
    CustomEmailSubject string
    An optional custom email subject to use in email notifications.
    CustomWebhookPayload string
    An optional custom web-hook payload to use in web-hook notifications.
    groupIds List<String>
    The Action Group resource IDs.
    customEmailSubject String
    An optional custom email subject to use in email notifications.
    customWebhookPayload String
    An optional custom web-hook payload to use in web-hook notifications.
    groupIds string[]
    The Action Group resource IDs.
    customEmailSubject string
    An optional custom email subject to use in email notifications.
    customWebhookPayload string
    An optional custom web-hook payload to use in web-hook notifications.
    group_ids Sequence[str]
    The Action Group resource IDs.
    custom_email_subject str
    An optional custom email subject to use in email notifications.
    custom_webhook_payload str
    An optional custom web-hook payload to use in web-hook notifications.
    groupIds List<String>
    The Action Group resource IDs.
    customEmailSubject String
    An optional custom email subject to use in email notifications.
    customWebhookPayload String
    An optional custom web-hook payload to use in web-hook notifications.

    ActionGroupsInformationResponse, ActionGroupsInformationResponseArgs

    GroupIds List<string>
    The Action Group resource IDs.
    CustomEmailSubject string
    An optional custom email subject to use in email notifications.
    CustomWebhookPayload string
    An optional custom web-hook payload to use in web-hook notifications.
    GroupIds []string
    The Action Group resource IDs.
    CustomEmailSubject string
    An optional custom email subject to use in email notifications.
    CustomWebhookPayload string
    An optional custom web-hook payload to use in web-hook notifications.
    groupIds List<String>
    The Action Group resource IDs.
    customEmailSubject String
    An optional custom email subject to use in email notifications.
    customWebhookPayload String
    An optional custom web-hook payload to use in web-hook notifications.
    groupIds string[]
    The Action Group resource IDs.
    customEmailSubject string
    An optional custom email subject to use in email notifications.
    customWebhookPayload string
    An optional custom web-hook payload to use in web-hook notifications.
    group_ids Sequence[str]
    The Action Group resource IDs.
    custom_email_subject str
    An optional custom email subject to use in email notifications.
    custom_webhook_payload str
    An optional custom web-hook payload to use in web-hook notifications.
    groupIds List<String>
    The Action Group resource IDs.
    customEmailSubject String
    An optional custom email subject to use in email notifications.
    customWebhookPayload String
    An optional custom web-hook payload to use in web-hook notifications.

    AlertRuleState, AlertRuleStateArgs

    Enabled
    Enabled
    Disabled
    Disabled
    AlertRuleStateEnabled
    Enabled
    AlertRuleStateDisabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    Enabled
    Enabled
    Disabled
    Disabled
    ENABLED
    Enabled
    DISABLED
    Disabled
    "Enabled"
    Enabled
    "Disabled"
    Disabled

    Detector, DetectorArgs

    Id string
    The detector id.
    Description string
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    ImagePaths List<string>
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    Name string
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    Parameters Dictionary<string, object>
    The detector's parameters.'
    SupportedResourceTypes List<string>
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    Id string
    The detector id.
    Description string
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    ImagePaths []string
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    Name string
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    Parameters map[string]interface{}
    The detector's parameters.'
    SupportedResourceTypes []string
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id String
    The detector id.
    description String
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    imagePaths List<String>
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name String
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters Map<String,Object>
    The detector's parameters.'
    supportedResourceTypes List<String>
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id string
    The detector id.
    description string
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    imagePaths string[]
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name string
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters {[key: string]: any}
    The detector's parameters.'
    supportedResourceTypes string[]
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id str
    The detector id.
    description str
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    image_paths Sequence[str]
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name str
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters Mapping[str, Any]
    The detector's parameters.'
    supported_resource_types Sequence[str]
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id String
    The detector id.
    description String
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    imagePaths List<String>
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name String
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters Map<Any>
    The detector's parameters.'
    supportedResourceTypes List<String>
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector

    DetectorResponse, DetectorResponseArgs

    Id string
    The detector id.
    Description string
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    ImagePaths List<string>
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    Name string
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    Parameters Dictionary<string, object>
    The detector's parameters.'
    SupportedResourceTypes List<string>
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    Id string
    The detector id.
    Description string
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    ImagePaths []string
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    Name string
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    Parameters map[string]interface{}
    The detector's parameters.'
    SupportedResourceTypes []string
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id String
    The detector id.
    description String
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    imagePaths List<String>
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name String
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters Map<String,Object>
    The detector's parameters.'
    supportedResourceTypes List<String>
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id string
    The detector id.
    description string
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    imagePaths string[]
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name string
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters {[key: string]: any}
    The detector's parameters.'
    supportedResourceTypes string[]
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id str
    The detector id.
    description str
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    image_paths Sequence[str]
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name str
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters Mapping[str, Any]
    The detector's parameters.'
    supported_resource_types Sequence[str]
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector
    id String
    The detector id.
    description String
    The Smart Detector description. By default this is not populated, unless it's specified in expandDetector
    imagePaths List<String>
    The Smart Detector image path. By default this is not populated, unless it's specified in expandDetector
    name String
    The Smart Detector name. By default this is not populated, unless it's specified in expandDetector
    parameters Map<Any>
    The detector's parameters.'
    supportedResourceTypes List<String>
    The Smart Detector supported resource types. By default this is not populated, unless it's specified in expandDetector

    Severity, SeverityArgs

    Sev0
    Sev0
    Sev1
    Sev1
    Sev2
    Sev2
    Sev3
    Sev3
    Sev4
    Sev4
    SeveritySev0
    Sev0
    SeveritySev1
    Sev1
    SeveritySev2
    Sev2
    SeveritySev3
    Sev3
    SeveritySev4
    Sev4
    Sev0
    Sev0
    Sev1
    Sev1
    Sev2
    Sev2
    Sev3
    Sev3
    Sev4
    Sev4
    Sev0
    Sev0
    Sev1
    Sev1
    Sev2
    Sev2
    Sev3
    Sev3
    Sev4
    Sev4
    SEV0
    Sev0
    SEV1
    Sev1
    SEV2
    Sev2
    SEV3
    Sev3
    SEV4
    Sev4
    "Sev0"
    Sev0
    "Sev1"
    Sev1
    "Sev2"
    Sev2
    "Sev3"
    Sev3
    "Sev4"
    Sev4

    ThrottlingInformation, ThrottlingInformationArgs

    Duration string
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    Duration string
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration String
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration string
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration str
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration String
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes

    ThrottlingInformationResponse, ThrottlingInformationResponseArgs

    Duration string
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    Duration string
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration String
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration string
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration str
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes
    duration String
    The required duration (in ISO8601 format) to wait before notifying on the alert rule again. The time granularity must be in minutes and minimum value is 0 minutes

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:alertsmanagement:SmartDetectorAlertRule MyAlertRule /subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/MyAlertRules/providers/microsoft.alertsManagement/smartDetectorAlertRules/MyAlertRule 
    

    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
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi