1. Packages
  2. Azure Native
  3. API Docs
  4. workloads
  5. Alert
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.74.0 published on Monday, Nov 25, 2024 by Pulumi

azure-native.workloads.Alert

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.74.0 published on Monday, Nov 25, 2024 by Pulumi

    A alert associated with SAP monitor. Azure REST API version: 2024-02-01-preview.

    Example Usage

    Creates an Alert

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var alert = new AzureNative.Workloads.Alert("alert", new()
        {
            AlertName = "myAlert",
            AlertRuleProperties = new AzureNative.Workloads.Inputs.AlertRulePropertiesArgs
            {
                ActionGroups = new[]
                {
                    "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
                    "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2",
                },
                AlertQueryParameters = new[]
                {
                    new AzureNative.Workloads.Inputs.AlertQueryParameterArgs
                    {
                        Name = "providerInstance",
                        Value = "",
                    },
                    new AzureNative.Workloads.Inputs.AlertQueryParameterArgs
                    {
                        Name = "workType",
                        Value = "",
                    },
                },
                AutoMitigate = AzureNative.Workloads.AlertAutoMitigate.Disable,
                Dimension = "cpu",
                EvaluationFrequency = 5,
                FailingPeriodsOperator = AzureNative.Workloads.ConditionalOperator.GreaterThan,
                FailingPeriodsToAlert = 3,
                MuteActionsDuration = 0,
                Severity = 3,
                Status = AzureNative.Workloads.AlertRuleStatus.Enabled,
                Threshold = 80,
                ThresholdOperator = AzureNative.Workloads.ConditionalOperator.GreaterThan,
                WindowSize = 15,
            },
            MonitorName = "mySapMonitor",
            ProviderNames = new[]
            {
                "hana-provider-1",
                "hana-provider-2",
            },
            ProviderType = "SapHana",
            ResourceGroupName = "myResourceGroup",
            TemplateName = "saphana-cpu-memory-health",
        });
    
    });
    
    package main
    
    import (
    	workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := workloads.NewAlert(ctx, "alert", &workloads.AlertArgs{
    			AlertName: pulumi.String("myAlert"),
    			AlertRuleProperties: &workloads.AlertRulePropertiesArgs{
    				ActionGroups: pulumi.StringArray{
    					pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1"),
    					pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2"),
    				},
    				AlertQueryParameters: workloads.AlertQueryParameterArray{
    					&workloads.AlertQueryParameterArgs{
    						Name:  pulumi.String("providerInstance"),
    						Value: pulumi.String(""),
    					},
    					&workloads.AlertQueryParameterArgs{
    						Name:  pulumi.String("workType"),
    						Value: pulumi.String(""),
    					},
    				},
    				AutoMitigate:           pulumi.String(workloads.AlertAutoMitigateDisable),
    				Dimension:              pulumi.String("cpu"),
    				EvaluationFrequency:    pulumi.Int(5),
    				FailingPeriodsOperator: pulumi.String(workloads.ConditionalOperatorGreaterThan),
    				FailingPeriodsToAlert:  pulumi.Int(3),
    				MuteActionsDuration:    pulumi.Int(0),
    				Severity:               pulumi.Int(3),
    				Status:                 pulumi.String(workloads.AlertRuleStatusEnabled),
    				Threshold:              pulumi.Int(80),
    				ThresholdOperator:      pulumi.String(workloads.ConditionalOperatorGreaterThan),
    				WindowSize:             pulumi.Int(15),
    			},
    			MonitorName: pulumi.String("mySapMonitor"),
    			ProviderNames: pulumi.StringArray{
    				pulumi.String("hana-provider-1"),
    				pulumi.String("hana-provider-2"),
    			},
    			ProviderType:      pulumi.String("SapHana"),
    			ResourceGroupName: pulumi.String("myResourceGroup"),
    			TemplateName:      pulumi.String("saphana-cpu-memory-health"),
    		})
    		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.workloads.Alert;
    import com.pulumi.azurenative.workloads.AlertArgs;
    import com.pulumi.azurenative.workloads.inputs.AlertRulePropertiesArgs;
    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 alert = new Alert("alert", AlertArgs.builder()
                .alertName("myAlert")
                .alertRuleProperties(AlertRulePropertiesArgs.builder()
                    .actionGroups(                
                        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
                        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2")
                    .alertQueryParameters(                
                        AlertQueryParameterArgs.builder()
                            .name("providerInstance")
                            .value("")
                            .build(),
                        AlertQueryParameterArgs.builder()
                            .name("workType")
                            .value("")
                            .build())
                    .autoMitigate("Disable")
                    .dimension("cpu")
                    .evaluationFrequency(5)
                    .failingPeriodsOperator("GreaterThan")
                    .failingPeriodsToAlert(3)
                    .muteActionsDuration(0)
                    .severity(3)
                    .status("Enabled")
                    .threshold(80)
                    .thresholdOperator("GreaterThan")
                    .windowSize(15)
                    .build())
                .monitorName("mySapMonitor")
                .providerNames(            
                    "hana-provider-1",
                    "hana-provider-2")
                .providerType("SapHana")
                .resourceGroupName("myResourceGroup")
                .templateName("saphana-cpu-memory-health")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    alert = azure_native.workloads.Alert("alert",
        alert_name="myAlert",
        alert_rule_properties={
            "action_groups": [
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2",
            ],
            "alert_query_parameters": [
                {
                    "name": "providerInstance",
                    "value": "",
                },
                {
                    "name": "workType",
                    "value": "",
                },
            ],
            "auto_mitigate": azure_native.workloads.AlertAutoMitigate.DISABLE,
            "dimension": "cpu",
            "evaluation_frequency": 5,
            "failing_periods_operator": azure_native.workloads.ConditionalOperator.GREATER_THAN,
            "failing_periods_to_alert": 3,
            "mute_actions_duration": 0,
            "severity": 3,
            "status": azure_native.workloads.AlertRuleStatus.ENABLED,
            "threshold": 80,
            "threshold_operator": azure_native.workloads.ConditionalOperator.GREATER_THAN,
            "window_size": 15,
        },
        monitor_name="mySapMonitor",
        provider_names=[
            "hana-provider-1",
            "hana-provider-2",
        ],
        provider_type="SapHana",
        resource_group_name="myResourceGroup",
        template_name="saphana-cpu-memory-health")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const alert = new azure_native.workloads.Alert("alert", {
        alertName: "myAlert",
        alertRuleProperties: {
            actionGroups: [
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1",
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2",
            ],
            alertQueryParameters: [
                {
                    name: "providerInstance",
                    value: "",
                },
                {
                    name: "workType",
                    value: "",
                },
            ],
            autoMitigate: azure_native.workloads.AlertAutoMitigate.Disable,
            dimension: "cpu",
            evaluationFrequency: 5,
            failingPeriodsOperator: azure_native.workloads.ConditionalOperator.GreaterThan,
            failingPeriodsToAlert: 3,
            muteActionsDuration: 0,
            severity: 3,
            status: azure_native.workloads.AlertRuleStatus.Enabled,
            threshold: 80,
            thresholdOperator: azure_native.workloads.ConditionalOperator.GreaterThan,
            windowSize: 15,
        },
        monitorName: "mySapMonitor",
        providerNames: [
            "hana-provider-1",
            "hana-provider-2",
        ],
        providerType: "SapHana",
        resourceGroupName: "myResourceGroup",
        templateName: "saphana-cpu-memory-health",
    });
    
    resources:
      alert:
        type: azure-native:workloads:Alert
        properties:
          alertName: myAlert
          alertRuleProperties:
            actionGroups:
              - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup1
              - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.insights/actiongroups/actiongroup2
            alertQueryParameters:
              - name: providerInstance
                value:
              - name: workType
                value:
            autoMitigate: Disable
            dimension: cpu
            evaluationFrequency: 5
            failingPeriodsOperator: GreaterThan
            failingPeriodsToAlert: 3
            muteActionsDuration: 0
            severity: 3
            status: Enabled
            threshold: 80
            thresholdOperator: GreaterThan
            windowSize: 15
          monitorName: mySapMonitor
          providerNames:
            - hana-provider-1
            - hana-provider-2
          providerType: SapHana
          resourceGroupName: myResourceGroup
          templateName: saphana-cpu-memory-health
    

    Create Alert Resource

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

    Constructor syntax

    new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);
    @overload
    def Alert(resource_name: str,
              args: AlertArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Alert(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              monitor_name: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              alert_name: Optional[str] = None,
              alert_rule_properties: Optional[AlertRulePropertiesArgs] = None,
              provider_names: Optional[Sequence[str]] = None,
              provider_type: Optional[str] = None,
              template_name: Optional[str] = None)
    func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)
    public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)
    public Alert(String name, AlertArgs args)
    public Alert(String name, AlertArgs args, CustomResourceOptions options)
    
    type: azure-native:workloads:Alert
    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 AlertArgs
    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 AlertArgs
    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 AlertArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertArgs
    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 alertResource = new AzureNative.Workloads.Alert("alertResource", new()
    {
        MonitorName = "string",
        ResourceGroupName = "string",
        AlertName = "string",
        AlertRuleProperties = new AzureNative.Workloads.Inputs.AlertRulePropertiesArgs
        {
            ActionGroups = new[]
            {
                "string",
            },
            AlertQueryParameters = new[]
            {
                new AzureNative.Workloads.Inputs.AlertQueryParameterArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            AutoMitigate = "string",
            Dimension = "string",
            EvaluationFrequency = 0,
            FailingPeriodsOperator = "string",
            FailingPeriodsToAlert = 0,
            MuteActionsDuration = 0,
            Severity = 0,
            Status = "string",
            Threshold = 0,
            ThresholdOperator = "string",
            WindowSize = 0,
        },
        ProviderNames = new[]
        {
            "string",
        },
        ProviderType = "string",
        TemplateName = "string",
    });
    
    example, err := workloads.NewAlert(ctx, "alertResource", &workloads.AlertArgs{
    	MonitorName:       pulumi.String("string"),
    	ResourceGroupName: pulumi.String("string"),
    	AlertName:         pulumi.String("string"),
    	AlertRuleProperties: &workloads.AlertRulePropertiesArgs{
    		ActionGroups: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		AlertQueryParameters: workloads.AlertQueryParameterArray{
    			&workloads.AlertQueryParameterArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		AutoMitigate:           pulumi.String("string"),
    		Dimension:              pulumi.String("string"),
    		EvaluationFrequency:    pulumi.Int(0),
    		FailingPeriodsOperator: pulumi.String("string"),
    		FailingPeriodsToAlert:  pulumi.Int(0),
    		MuteActionsDuration:    pulumi.Int(0),
    		Severity:               pulumi.Int(0),
    		Status:                 pulumi.String("string"),
    		Threshold:              pulumi.Int(0),
    		ThresholdOperator:      pulumi.String("string"),
    		WindowSize:             pulumi.Int(0),
    	},
    	ProviderNames: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ProviderType: pulumi.String("string"),
    	TemplateName: pulumi.String("string"),
    })
    
    var alertResource = new Alert("alertResource", AlertArgs.builder()
        .monitorName("string")
        .resourceGroupName("string")
        .alertName("string")
        .alertRuleProperties(AlertRulePropertiesArgs.builder()
            .actionGroups("string")
            .alertQueryParameters(AlertQueryParameterArgs.builder()
                .name("string")
                .value("string")
                .build())
            .autoMitigate("string")
            .dimension("string")
            .evaluationFrequency(0)
            .failingPeriodsOperator("string")
            .failingPeriodsToAlert(0)
            .muteActionsDuration(0)
            .severity(0)
            .status("string")
            .threshold(0)
            .thresholdOperator("string")
            .windowSize(0)
            .build())
        .providerNames("string")
        .providerType("string")
        .templateName("string")
        .build());
    
    alert_resource = azure_native.workloads.Alert("alertResource",
        monitor_name="string",
        resource_group_name="string",
        alert_name="string",
        alert_rule_properties={
            "action_groups": ["string"],
            "alert_query_parameters": [{
                "name": "string",
                "value": "string",
            }],
            "auto_mitigate": "string",
            "dimension": "string",
            "evaluation_frequency": 0,
            "failing_periods_operator": "string",
            "failing_periods_to_alert": 0,
            "mute_actions_duration": 0,
            "severity": 0,
            "status": "string",
            "threshold": 0,
            "threshold_operator": "string",
            "window_size": 0,
        },
        provider_names=["string"],
        provider_type="string",
        template_name="string")
    
    const alertResource = new azure_native.workloads.Alert("alertResource", {
        monitorName: "string",
        resourceGroupName: "string",
        alertName: "string",
        alertRuleProperties: {
            actionGroups: ["string"],
            alertQueryParameters: [{
                name: "string",
                value: "string",
            }],
            autoMitigate: "string",
            dimension: "string",
            evaluationFrequency: 0,
            failingPeriodsOperator: "string",
            failingPeriodsToAlert: 0,
            muteActionsDuration: 0,
            severity: 0,
            status: "string",
            threshold: 0,
            thresholdOperator: "string",
            windowSize: 0,
        },
        providerNames: ["string"],
        providerType: "string",
        templateName: "string",
    });
    
    type: azure-native:workloads:Alert
    properties:
        alertName: string
        alertRuleProperties:
            actionGroups:
                - string
            alertQueryParameters:
                - name: string
                  value: string
            autoMitigate: string
            dimension: string
            evaluationFrequency: 0
            failingPeriodsOperator: string
            failingPeriodsToAlert: 0
            muteActionsDuration: 0
            severity: 0
            status: string
            threshold: 0
            thresholdOperator: string
            windowSize: 0
        monitorName: string
        providerNames:
            - string
        providerType: string
        resourceGroupName: string
        templateName: string
    

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

    MonitorName string
    Name of the SAP monitor resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AlertName string
    Name of the SAP monitor alert resource.
    AlertRuleProperties Pulumi.AzureNative.Workloads.Inputs.AlertRuleProperties
    Describes the properties of an alert.
    ProviderNames List<string>
    Name of provider instances associated with the alert.
    ProviderType string
    The provider type for alert. For example, the value can be SapHana.
    TemplateName string
    Name of the alert template from which it was created.
    MonitorName string
    Name of the SAP monitor resource.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AlertName string
    Name of the SAP monitor alert resource.
    AlertRuleProperties AlertRulePropertiesArgs
    Describes the properties of an alert.
    ProviderNames []string
    Name of provider instances associated with the alert.
    ProviderType string
    The provider type for alert. For example, the value can be SapHana.
    TemplateName string
    Name of the alert template from which it was created.
    monitorName String
    Name of the SAP monitor resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    alertName String
    Name of the SAP monitor alert resource.
    alertRuleProperties AlertRuleProperties
    Describes the properties of an alert.
    providerNames List<String>
    Name of provider instances associated with the alert.
    providerType String
    The provider type for alert. For example, the value can be SapHana.
    templateName String
    Name of the alert template from which it was created.
    monitorName string
    Name of the SAP monitor resource.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    alertName string
    Name of the SAP monitor alert resource.
    alertRuleProperties AlertRuleProperties
    Describes the properties of an alert.
    providerNames string[]
    Name of provider instances associated with the alert.
    providerType string
    The provider type for alert. For example, the value can be SapHana.
    templateName string
    Name of the alert template from which it was created.
    monitor_name str
    Name of the SAP monitor resource.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    alert_name str
    Name of the SAP monitor alert resource.
    alert_rule_properties AlertRulePropertiesArgs
    Describes the properties of an alert.
    provider_names Sequence[str]
    Name of provider instances associated with the alert.
    provider_type str
    The provider type for alert. For example, the value can be SapHana.
    template_name str
    Name of the alert template from which it was created.
    monitorName String
    Name of the SAP monitor resource.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    alertName String
    Name of the SAP monitor alert resource.
    alertRuleProperties Property Map
    Describes the properties of an alert.
    providerNames List<String>
    Name of provider instances associated with the alert.
    providerType String
    The provider type for alert. For example, the value can be SapHana.
    templateName String
    Name of the alert template from which it was created.

    Outputs

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

    AlertRuleResourceId string
    ID of the alert rule resource created.
    Errors Pulumi.AzureNative.Workloads.Outputs.ErrorDetailResponse
    Defines the alert instance errors.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    State of provisioning of the alert instance
    SystemData Pulumi.AzureNative.Workloads.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AlertRuleResourceId string
    ID of the alert rule resource created.
    Errors ErrorDetailResponse
    Defines the alert instance errors.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    State of provisioning of the alert instance
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    alertRuleResourceId String
    ID of the alert rule resource created.
    errors ErrorDetailResponse
    Defines the alert instance errors.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    State of provisioning of the alert instance
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    alertRuleResourceId string
    ID of the alert rule resource created.
    errors ErrorDetailResponse
    Defines the alert instance errors.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    State of provisioning of the alert instance
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    alert_rule_resource_id str
    ID of the alert rule resource created.
    errors ErrorDetailResponse
    Defines the alert instance errors.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    State of provisioning of the alert instance
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    alertRuleResourceId String
    ID of the alert rule resource created.
    errors Property Map
    Defines the alert instance errors.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    State of provisioning of the alert instance
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    AlertAutoMitigate, AlertAutoMitigateArgs

    Enable
    EnableThe alert should be automatically resolved.
    Disable
    DisableThe alert should not be automatically resolved.
    AlertAutoMitigateEnable
    EnableThe alert should be automatically resolved.
    AlertAutoMitigateDisable
    DisableThe alert should not be automatically resolved.
    Enable
    EnableThe alert should be automatically resolved.
    Disable
    DisableThe alert should not be automatically resolved.
    Enable
    EnableThe alert should be automatically resolved.
    Disable
    DisableThe alert should not be automatically resolved.
    ENABLE
    EnableThe alert should be automatically resolved.
    DISABLE
    DisableThe alert should not be automatically resolved.
    "Enable"
    EnableThe alert should be automatically resolved.
    "Disable"
    DisableThe alert should not be automatically resolved.

    AlertQueryParameter, AlertQueryParameterArgs

    Name string
    The name of the alert query parameter.
    Value string
    The value of the alert query parameter.
    Name string
    The name of the alert query parameter.
    Value string
    The value of the alert query parameter.
    name String
    The name of the alert query parameter.
    value String
    The value of the alert query parameter.
    name string
    The name of the alert query parameter.
    value string
    The value of the alert query parameter.
    name str
    The name of the alert query parameter.
    value str
    The value of the alert query parameter.
    name String
    The name of the alert query parameter.
    value String
    The value of the alert query parameter.

    AlertQueryParameterResponse, AlertQueryParameterResponseArgs

    Name string
    The name of the alert query parameter.
    Value string
    The value of the alert query parameter.
    Name string
    The name of the alert query parameter.
    Value string
    The value of the alert query parameter.
    name String
    The name of the alert query parameter.
    value String
    The value of the alert query parameter.
    name string
    The name of the alert query parameter.
    value string
    The value of the alert query parameter.
    name str
    The name of the alert query parameter.
    value str
    The value of the alert query parameter.
    name String
    The name of the alert query parameter.
    value String
    The value of the alert query parameter.

    AlertRuleProperties, AlertRulePropertiesArgs

    ActionGroups List<string>
    Action Group resource Ids to invoke when the alert fires
    AlertQueryParameters List<Pulumi.AzureNative.Workloads.Inputs.AlertQueryParameter>
    The alert query parameters.
    AutoMitigate string | Pulumi.AzureNative.Workloads.AlertAutoMitigate
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    Dimension string
    Evaluation of metric on a particular column.
    EvaluationFrequency int
    How often the scheduled query rule is evaluated.
    FailingPeriodsOperator string | Pulumi.AzureNative.Workloads.ConditionalOperator
    The operator for failing periods.
    FailingPeriodsToAlert int
    The number of failing periods to trigger an alert.
    MuteActionsDuration int
    Mute actions for the chosen period of time after the alert is fired.
    Severity int
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    Status string | Pulumi.AzureNative.Workloads.AlertRuleStatus
    Indicates whether the alert is in an enabled state.
    Threshold int
    The threshold of the alert.
    ThresholdOperator string | Pulumi.AzureNative.Workloads.ConditionalOperator
    The threshold operator of the alert.
    WindowSize int
    The period of time on which the Alert query will be executed.
    ActionGroups []string
    Action Group resource Ids to invoke when the alert fires
    AlertQueryParameters []AlertQueryParameter
    The alert query parameters.
    AutoMitigate string | AlertAutoMitigate
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    Dimension string
    Evaluation of metric on a particular column.
    EvaluationFrequency int
    How often the scheduled query rule is evaluated.
    FailingPeriodsOperator string | ConditionalOperator
    The operator for failing periods.
    FailingPeriodsToAlert int
    The number of failing periods to trigger an alert.
    MuteActionsDuration int
    Mute actions for the chosen period of time after the alert is fired.
    Severity int
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    Status string | AlertRuleStatus
    Indicates whether the alert is in an enabled state.
    Threshold int
    The threshold of the alert.
    ThresholdOperator string | ConditionalOperator
    The threshold operator of the alert.
    WindowSize int
    The period of time on which the Alert query will be executed.
    actionGroups List<String>
    Action Group resource Ids to invoke when the alert fires
    alertQueryParameters List<AlertQueryParameter>
    The alert query parameters.
    autoMitigate String | AlertAutoMitigate
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension String
    Evaluation of metric on a particular column.
    evaluationFrequency Integer
    How often the scheduled query rule is evaluated.
    failingPeriodsOperator String | ConditionalOperator
    The operator for failing periods.
    failingPeriodsToAlert Integer
    The number of failing periods to trigger an alert.
    muteActionsDuration Integer
    Mute actions for the chosen period of time after the alert is fired.
    severity Integer
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status String | AlertRuleStatus
    Indicates whether the alert is in an enabled state.
    threshold Integer
    The threshold of the alert.
    thresholdOperator String | ConditionalOperator
    The threshold operator of the alert.
    windowSize Integer
    The period of time on which the Alert query will be executed.
    actionGroups string[]
    Action Group resource Ids to invoke when the alert fires
    alertQueryParameters AlertQueryParameter[]
    The alert query parameters.
    autoMitigate string | AlertAutoMitigate
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension string
    Evaluation of metric on a particular column.
    evaluationFrequency number
    How often the scheduled query rule is evaluated.
    failingPeriodsOperator string | ConditionalOperator
    The operator for failing periods.
    failingPeriodsToAlert number
    The number of failing periods to trigger an alert.
    muteActionsDuration number
    Mute actions for the chosen period of time after the alert is fired.
    severity number
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status string | AlertRuleStatus
    Indicates whether the alert is in an enabled state.
    threshold number
    The threshold of the alert.
    thresholdOperator string | ConditionalOperator
    The threshold operator of the alert.
    windowSize number
    The period of time on which the Alert query will be executed.
    action_groups Sequence[str]
    Action Group resource Ids to invoke when the alert fires
    alert_query_parameters Sequence[AlertQueryParameter]
    The alert query parameters.
    auto_mitigate str | AlertAutoMitigate
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension str
    Evaluation of metric on a particular column.
    evaluation_frequency int
    How often the scheduled query rule is evaluated.
    failing_periods_operator str | ConditionalOperator
    The operator for failing periods.
    failing_periods_to_alert int
    The number of failing periods to trigger an alert.
    mute_actions_duration int
    Mute actions for the chosen period of time after the alert is fired.
    severity int
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status str | AlertRuleStatus
    Indicates whether the alert is in an enabled state.
    threshold int
    The threshold of the alert.
    threshold_operator str | ConditionalOperator
    The threshold operator of the alert.
    window_size int
    The period of time on which the Alert query will be executed.
    actionGroups List<String>
    Action Group resource Ids to invoke when the alert fires
    alertQueryParameters List<Property Map>
    The alert query parameters.
    autoMitigate String | "Enable" | "Disable"
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension String
    Evaluation of metric on a particular column.
    evaluationFrequency Number
    How often the scheduled query rule is evaluated.
    failingPeriodsOperator String | "LessThan" | "GreaterThan" | "Equal" | "GreaterThanOrEqual" | "LessThanOrEqual"
    The operator for failing periods.
    failingPeriodsToAlert Number
    The number of failing periods to trigger an alert.
    muteActionsDuration Number
    Mute actions for the chosen period of time after the alert is fired.
    severity Number
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status String | "Enabled" | "Disabled"
    Indicates whether the alert is in an enabled state.
    threshold Number
    The threshold of the alert.
    thresholdOperator String | "LessThan" | "GreaterThan" | "Equal" | "GreaterThanOrEqual" | "LessThanOrEqual"
    The threshold operator of the alert.
    windowSize Number
    The period of time on which the Alert query will be executed.

    AlertRulePropertiesResponse, AlertRulePropertiesResponseArgs

    ActionGroups List<string>
    Action Group resource Ids to invoke when the alert fires
    AlertQueryParameters List<Pulumi.AzureNative.Workloads.Inputs.AlertQueryParameterResponse>
    The alert query parameters.
    AutoMitigate string
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    Dimension string
    Evaluation of metric on a particular column.
    EvaluationFrequency int
    How often the scheduled query rule is evaluated.
    FailingPeriodsOperator string
    The operator for failing periods.
    FailingPeriodsToAlert int
    The number of failing periods to trigger an alert.
    MuteActionsDuration int
    Mute actions for the chosen period of time after the alert is fired.
    Severity int
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    Status string
    Indicates whether the alert is in an enabled state.
    Threshold int
    The threshold of the alert.
    ThresholdOperator string
    The threshold operator of the alert.
    WindowSize int
    The period of time on which the Alert query will be executed.
    ActionGroups []string
    Action Group resource Ids to invoke when the alert fires
    AlertQueryParameters []AlertQueryParameterResponse
    The alert query parameters.
    AutoMitigate string
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    Dimension string
    Evaluation of metric on a particular column.
    EvaluationFrequency int
    How often the scheduled query rule is evaluated.
    FailingPeriodsOperator string
    The operator for failing periods.
    FailingPeriodsToAlert int
    The number of failing periods to trigger an alert.
    MuteActionsDuration int
    Mute actions for the chosen period of time after the alert is fired.
    Severity int
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    Status string
    Indicates whether the alert is in an enabled state.
    Threshold int
    The threshold of the alert.
    ThresholdOperator string
    The threshold operator of the alert.
    WindowSize int
    The period of time on which the Alert query will be executed.
    actionGroups List<String>
    Action Group resource Ids to invoke when the alert fires
    alertQueryParameters List<AlertQueryParameterResponse>
    The alert query parameters.
    autoMitigate String
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension String
    Evaluation of metric on a particular column.
    evaluationFrequency Integer
    How often the scheduled query rule is evaluated.
    failingPeriodsOperator String
    The operator for failing periods.
    failingPeriodsToAlert Integer
    The number of failing periods to trigger an alert.
    muteActionsDuration Integer
    Mute actions for the chosen period of time after the alert is fired.
    severity Integer
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status String
    Indicates whether the alert is in an enabled state.
    threshold Integer
    The threshold of the alert.
    thresholdOperator String
    The threshold operator of the alert.
    windowSize Integer
    The period of time on which the Alert query will be executed.
    actionGroups string[]
    Action Group resource Ids to invoke when the alert fires
    alertQueryParameters AlertQueryParameterResponse[]
    The alert query parameters.
    autoMitigate string
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension string
    Evaluation of metric on a particular column.
    evaluationFrequency number
    How often the scheduled query rule is evaluated.
    failingPeriodsOperator string
    The operator for failing periods.
    failingPeriodsToAlert number
    The number of failing periods to trigger an alert.
    muteActionsDuration number
    Mute actions for the chosen period of time after the alert is fired.
    severity number
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status string
    Indicates whether the alert is in an enabled state.
    threshold number
    The threshold of the alert.
    thresholdOperator string
    The threshold operator of the alert.
    windowSize number
    The period of time on which the Alert query will be executed.
    action_groups Sequence[str]
    Action Group resource Ids to invoke when the alert fires
    alert_query_parameters Sequence[AlertQueryParameterResponse]
    The alert query parameters.
    auto_mitigate str
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension str
    Evaluation of metric on a particular column.
    evaluation_frequency int
    How often the scheduled query rule is evaluated.
    failing_periods_operator str
    The operator for failing periods.
    failing_periods_to_alert int
    The number of failing periods to trigger an alert.
    mute_actions_duration int
    Mute actions for the chosen period of time after the alert is fired.
    severity int
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status str
    Indicates whether the alert is in an enabled state.
    threshold int
    The threshold of the alert.
    threshold_operator str
    The threshold operator of the alert.
    window_size int
    The period of time on which the Alert query will be executed.
    actionGroups List<String>
    Action Group resource Ids to invoke when the alert fires
    alertQueryParameters List<Property Map>
    The alert query parameters.
    autoMitigate String
    The value that indicates whether the alert should be automatically resolved or not. The default is Disable.
    dimension String
    Evaluation of metric on a particular column.
    evaluationFrequency Number
    How often the scheduled query rule is evaluated.
    failingPeriodsOperator String
    The operator for failing periods.
    failingPeriodsToAlert Number
    The number of failing periods to trigger an alert.
    muteActionsDuration Number
    Mute actions for the chosen period of time after the alert is fired.
    severity Number
    Severity of the alert. Should be an integer between [0-4]. Value of 0 is severest.
    status String
    Indicates whether the alert is in an enabled state.
    threshold Number
    The threshold of the alert.
    thresholdOperator String
    The threshold operator of the alert.
    windowSize Number
    The period of time on which the Alert query will be executed.

    AlertRuleStatus, AlertRuleStatusArgs

    Enabled
    EnabledThe scheduled query rule is enabled
    Disabled
    DisabledThe scheduled query rule is disabled
    AlertRuleStatusEnabled
    EnabledThe scheduled query rule is enabled
    AlertRuleStatusDisabled
    DisabledThe scheduled query rule is disabled
    Enabled
    EnabledThe scheduled query rule is enabled
    Disabled
    DisabledThe scheduled query rule is disabled
    Enabled
    EnabledThe scheduled query rule is enabled
    Disabled
    DisabledThe scheduled query rule is disabled
    ENABLED
    EnabledThe scheduled query rule is enabled
    DISABLED
    DisabledThe scheduled query rule is disabled
    "Enabled"
    EnabledThe scheduled query rule is enabled
    "Disabled"
    DisabledThe scheduled query rule is disabled

    ConditionalOperator, ConditionalOperatorArgs

    LessThan
    LessThanThe value is less than the specified value.
    GreaterThan
    GreaterThanThe value is greater than the specified value.
    Equal
    EqualThe value is equal to the specified value.
    GreaterThanOrEqual
    GreaterThanOrEqualThe value is greater than or equal to the specified value.
    LessThanOrEqual
    LessThanOrEqualThe value is less than or equal to the specified value.
    ConditionalOperatorLessThan
    LessThanThe value is less than the specified value.
    ConditionalOperatorGreaterThan
    GreaterThanThe value is greater than the specified value.
    ConditionalOperatorEqual
    EqualThe value is equal to the specified value.
    ConditionalOperatorGreaterThanOrEqual
    GreaterThanOrEqualThe value is greater than or equal to the specified value.
    ConditionalOperatorLessThanOrEqual
    LessThanOrEqualThe value is less than or equal to the specified value.
    LessThan
    LessThanThe value is less than the specified value.
    GreaterThan
    GreaterThanThe value is greater than the specified value.
    Equal
    EqualThe value is equal to the specified value.
    GreaterThanOrEqual
    GreaterThanOrEqualThe value is greater than or equal to the specified value.
    LessThanOrEqual
    LessThanOrEqualThe value is less than or equal to the specified value.
    LessThan
    LessThanThe value is less than the specified value.
    GreaterThan
    GreaterThanThe value is greater than the specified value.
    Equal
    EqualThe value is equal to the specified value.
    GreaterThanOrEqual
    GreaterThanOrEqualThe value is greater than or equal to the specified value.
    LessThanOrEqual
    LessThanOrEqualThe value is less than or equal to the specified value.
    LESS_THAN
    LessThanThe value is less than the specified value.
    GREATER_THAN
    GreaterThanThe value is greater than the specified value.
    EQUAL
    EqualThe value is equal to the specified value.
    GREATER_THAN_OR_EQUAL
    GreaterThanOrEqualThe value is greater than or equal to the specified value.
    LESS_THAN_OR_EQUAL
    LessThanOrEqualThe value is less than or equal to the specified value.
    "LessThan"
    LessThanThe value is less than the specified value.
    "GreaterThan"
    GreaterThanThe value is greater than the specified value.
    "Equal"
    EqualThe value is equal to the specified value.
    "GreaterThanOrEqual"
    GreaterThanOrEqualThe value is greater than or equal to the specified value.
    "LessThanOrEqual"
    LessThanOrEqualThe value is less than or equal to the specified value.

    ErrorAdditionalInfoResponse, ErrorAdditionalInfoResponseArgs

    Info object
    The additional info.
    Type string
    The additional info type.
    Info interface{}
    The additional info.
    Type string
    The additional info type.
    info Object
    The additional info.
    type String
    The additional info type.
    info any
    The additional info.
    type string
    The additional info type.
    info Any
    The additional info.
    type str
    The additional info type.
    info Any
    The additional info.
    type String
    The additional info type.

    ErrorDetailResponse, ErrorDetailResponseArgs

    AdditionalInfo List<Pulumi.AzureNative.Workloads.Inputs.ErrorAdditionalInfoResponse>
    The error additional info.
    Code string
    The error code.
    Details List<Pulumi.AzureNative.Workloads.Inputs.ErrorDetailResponse>
    The error details.
    Message string
    The error message.
    Target string
    The error target.
    AdditionalInfo []ErrorAdditionalInfoResponse
    The error additional info.
    Code string
    The error code.
    Details []ErrorDetailResponse
    The error details.
    Message string
    The error message.
    Target string
    The error target.
    additionalInfo List<ErrorAdditionalInfoResponse>
    The error additional info.
    code String
    The error code.
    details List<ErrorDetailResponse>
    The error details.
    message String
    The error message.
    target String
    The error target.
    additionalInfo ErrorAdditionalInfoResponse[]
    The error additional info.
    code string
    The error code.
    details ErrorDetailResponse[]
    The error details.
    message string
    The error message.
    target string
    The error target.
    additional_info Sequence[ErrorAdditionalInfoResponse]
    The error additional info.
    code str
    The error code.
    details Sequence[ErrorDetailResponse]
    The error details.
    message str
    The error message.
    target str
    The error target.
    additionalInfo List<Property Map>
    The error additional info.
    code String
    The error code.
    details List<Property Map>
    The error details.
    message String
    The error message.
    target String
    The error target.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:workloads:Alert myAlert /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/monitors/{monitorName}/alerts/{alertName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.74.0 published on Monday, Nov 25, 2024 by Pulumi