azure-native.monitor.MetricAlert
The metric alert resource.
Uses Azure REST API version 2018-03-01.
Example Usage
Create or update a dynamic alert rule for Multiple Resources
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[]
        {
            new AzureNative.Monitor.Inputs.MetricAlertActionArgs
            {
                ActionGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
                WebHookProperties = 
                {
                    { "key11", "value11" },
                    { "key12", "value12" },
                },
            },
        },
        AutoMitigate = true,
        Criteria = new AzureNative.Monitor.Inputs.MetricAlertMultipleResourceMultipleMetricCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.DynamicMetricCriteriaArgs
                {
                    AlertSensitivity = AzureNative.Monitor.DynamicThresholdSensitivity.Medium,
                    CriterionType = "DynamicThresholdCriterion",
                    Dimensions = new() { },
                    FailingPeriods = new AzureNative.Monitor.Inputs.DynamicThresholdFailingPeriodsArgs
                    {
                        MinFailingPeriodsToAlert = 4,
                        NumberOfEvaluationPeriods = 4,
                    },
                    MetricName = "Percentage CPU",
                    MetricNamespace = "microsoft.compute/virtualmachines",
                    Name = "High_CPU_80",
                    Operator = AzureNative.Monitor.DynamicThresholdOperator.GreaterOrLessThan,
                    TimeAggregation = AzureNative.Monitor.AggregationTypeEnum.Average,
                },
            },
            OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        },
        Description = "This is the description of the rule1",
        Enabled = true,
        EvaluationFrequency = "PT1M",
        Location = "global",
        ResourceGroupName = "gigtest",
        RuleName = "MetricAlertOnMultipleResources",
        Scopes = new[]
        {
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2",
        },
        Severity = 3,
        Tags = null,
        TargetResourceRegion = "southcentralus",
        TargetResourceType = "Microsoft.Compute/virtualMachines",
        WindowSize = "PT15M",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{
				&monitor.MetricAlertActionArgs{
					ActionGroupId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2"),
					WebHookProperties: pulumi.StringMap{
						"key11": pulumi.String("value11"),
						"key12": pulumi.String("value12"),
					},
				},
			},
			AutoMitigate: pulumi.Bool(true),
			Criteria: &monitor.MetricAlertMultipleResourceMultipleMetricCriteriaArgs{
				AllOf: pulumi.Array{
					monitor.DynamicMetricCriteria{
						AlertSensitivity: monitor.DynamicThresholdSensitivityMedium,
						CriterionType:    "DynamicThresholdCriterion",
						Dimensions:       []monitor.MetricDimension{},
						FailingPeriods: monitor.DynamicThresholdFailingPeriods{
							MinFailingPeriodsToAlert:  4,
							NumberOfEvaluationPeriods: 4,
						},
						MetricName:      "Percentage CPU",
						MetricNamespace: "microsoft.compute/virtualmachines",
						Name:            "High_CPU_80",
						Operator:        monitor.DynamicThresholdOperatorGreaterOrLessThan,
						TimeAggregation: monitor.AggregationTypeEnumAverage,
					},
				},
				OdataType: pulumi.String("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"),
			},
			Description:         pulumi.String("This is the description of the rule1"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1M"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("gigtest"),
			RuleName:            pulumi.String("MetricAlertOnMultipleResources"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1"),
				pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"),
			},
			Severity:             pulumi.Int(3),
			Tags:                 pulumi.StringMap{},
			TargetResourceRegion: pulumi.String("southcentralus"),
			TargetResourceType:   pulumi.String("Microsoft.Compute/virtualMachines"),
			WindowSize:           pulumi.String("PT15M"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
import com.pulumi.azurenative.monitor.inputs.MetricAlertActionArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions(MetricAlertActionArgs.builder()
                .actionGroupId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
                .webHookProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .autoMitigate(true)
            .criteria(MetricAlertMultipleResourceMultipleMetricCriteriaArgs.builder()
                .allOf(DynamicMetricCriteriaArgs.builder()
                    .alertSensitivity("Medium")
                    .criterionType("DynamicThresholdCriterion")
                    .dimensions()
                    .failingPeriods(DynamicThresholdFailingPeriodsArgs.builder()
                        .minFailingPeriodsToAlert(4)
                        .numberOfEvaluationPeriods(4)
                        .build())
                    .metricName("Percentage CPU")
                    .metricNamespace("microsoft.compute/virtualmachines")
                    .name("High_CPU_80")
                    .operator("GreaterOrLessThan")
                    .timeAggregation("Average")
                    .build())
                .odataType("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
                .build())
            .description("This is the description of the rule1")
            .enabled(true)
            .evaluationFrequency("PT1M")
            .location("global")
            .resourceGroupName("gigtest")
            .ruleName("MetricAlertOnMultipleResources")
            .scopes(            
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
                "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2")
            .severity(3)
            .tags(Map.ofEntries(
            ))
            .targetResourceRegion("southcentralus")
            .targetResourceType("Microsoft.Compute/virtualMachines")
            .windowSize("PT15M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [{
        actionGroupId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        webHookProperties: {
            key11: "value11",
            key12: "value12",
        },
    }],
    autoMitigate: true,
    criteria: {
        allOf: [{
            alertSensitivity: azure_native.monitor.DynamicThresholdSensitivity.Medium,
            criterionType: "DynamicThresholdCriterion",
            dimensions: [],
            failingPeriods: {
                minFailingPeriodsToAlert: 4,
                numberOfEvaluationPeriods: 4,
            },
            metricName: "Percentage CPU",
            metricNamespace: "microsoft.compute/virtualmachines",
            name: "High_CPU_80",
            operator: azure_native.monitor.DynamicThresholdOperator.GreaterOrLessThan,
            timeAggregation: azure_native.monitor.AggregationTypeEnum.Average,
        }],
        odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description: "This is the description of the rule1",
    enabled: true,
    evaluationFrequency: "PT1M",
    location: "global",
    resourceGroupName: "gigtest",
    ruleName: "MetricAlertOnMultipleResources",
    scopes: [
        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2",
    ],
    severity: 3,
    tags: {},
    targetResourceRegion: "southcentralus",
    targetResourceType: "Microsoft.Compute/virtualMachines",
    windowSize: "PT15M",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[{
        "action_group_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        "web_hook_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    }],
    auto_mitigate=True,
    criteria={
        "all_of": [{
            "alert_sensitivity": azure_native.monitor.DynamicThresholdSensitivity.MEDIUM,
            "criterion_type": "DynamicThresholdCriterion",
            "dimensions": [],
            "failing_periods": {
                "min_failing_periods_to_alert": 4,
                "number_of_evaluation_periods": 4,
            },
            "metric_name": "Percentage CPU",
            "metric_namespace": "microsoft.compute/virtualmachines",
            "name": "High_CPU_80",
            "operator": azure_native.monitor.DynamicThresholdOperator.GREATER_OR_LESS_THAN,
            "time_aggregation": azure_native.monitor.AggregationTypeEnum.AVERAGE,
        }],
        "odata_type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description="This is the description of the rule1",
    enabled=True,
    evaluation_frequency="PT1M",
    location="global",
    resource_group_name="gigtest",
    rule_name="MetricAlertOnMultipleResources",
    scopes=[
        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
        "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2",
    ],
    severity=3,
    tags={},
    target_resource_region="southcentralus",
    target_resource_type="Microsoft.Compute/virtualMachines",
    window_size="PT15M")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions:
        - actionGroupId: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2
          webHookProperties:
            key11: value11
            key12: value12
      autoMitigate: true
      criteria:
        allOf:
          - alertSensitivity: Medium
            criterionType: DynamicThresholdCriterion
            dimensions: []
            failingPeriods:
              minFailingPeriodsToAlert: 4
              numberOfEvaluationPeriods: 4
            metricName: Percentage CPU
            metricNamespace: microsoft.compute/virtualmachines
            name: High_CPU_80
            operator: GreaterOrLessThan
            timeAggregation: Average
        odataType: Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria
      description: This is the description of the rule1
      enabled: true
      evaluationFrequency: PT1M
      location: global
      resourceGroupName: gigtest
      ruleName: MetricAlertOnMultipleResources
      scopes:
        - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1
        - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2
      severity: 3
      tags: {}
      targetResourceRegion: southcentralus
      targetResourceType: Microsoft.Compute/virtualMachines
      windowSize: PT15M
Create or update a dynamic alert rule for Single Resource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[]
        {
            new AzureNative.Monitor.Inputs.MetricAlertActionArgs
            {
                ActionGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
                WebHookProperties = 
                {
                    { "key11", "value11" },
                    { "key12", "value12" },
                },
            },
        },
        AutoMitigate = true,
        Criteria = new AzureNative.Monitor.Inputs.MetricAlertMultipleResourceMultipleMetricCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.DynamicMetricCriteriaArgs
                {
                    AlertSensitivity = AzureNative.Monitor.DynamicThresholdSensitivity.Medium,
                    CriterionType = "DynamicThresholdCriterion",
                    Dimensions = new() { },
                    FailingPeriods = new AzureNative.Monitor.Inputs.DynamicThresholdFailingPeriodsArgs
                    {
                        MinFailingPeriodsToAlert = 4,
                        NumberOfEvaluationPeriods = 4,
                    },
                    IgnoreDataBefore = "2019-04-04T21:00:00.000Z",
                    MetricName = "Percentage CPU",
                    MetricNamespace = "microsoft.compute/virtualmachines",
                    Name = "High_CPU_80",
                    Operator = AzureNative.Monitor.DynamicThresholdOperator.GreaterOrLessThan,
                    TimeAggregation = AzureNative.Monitor.AggregationTypeEnum.Average,
                },
            },
            OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        },
        Description = "This is the description of the rule1",
        Enabled = true,
        EvaluationFrequency = "PT1M",
        Location = "global",
        ResourceGroupName = "gigtest",
        RuleName = "chiricutin",
        Scopes = new[]
        {
            "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme",
        },
        Severity = 3,
        Tags = null,
        WindowSize = "PT15M",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{
				&monitor.MetricAlertActionArgs{
					ActionGroupId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2"),
					WebHookProperties: pulumi.StringMap{
						"key11": pulumi.String("value11"),
						"key12": pulumi.String("value12"),
					},
				},
			},
			AutoMitigate: pulumi.Bool(true),
			Criteria: &monitor.MetricAlertMultipleResourceMultipleMetricCriteriaArgs{
				AllOf: pulumi.Array{
					monitor.DynamicMetricCriteria{
						AlertSensitivity: monitor.DynamicThresholdSensitivityMedium,
						CriterionType:    "DynamicThresholdCriterion",
						Dimensions:       []monitor.MetricDimension{},
						FailingPeriods: monitor.DynamicThresholdFailingPeriods{
							MinFailingPeriodsToAlert:  4,
							NumberOfEvaluationPeriods: 4,
						},
						IgnoreDataBefore: "2019-04-04T21:00:00.000Z",
						MetricName:       "Percentage CPU",
						MetricNamespace:  "microsoft.compute/virtualmachines",
						Name:             "High_CPU_80",
						Operator:         monitor.DynamicThresholdOperatorGreaterOrLessThan,
						TimeAggregation:  monitor.AggregationTypeEnumAverage,
					},
				},
				OdataType: pulumi.String("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"),
			},
			Description:         pulumi.String("This is the description of the rule1"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1M"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("gigtest"),
			RuleName:            pulumi.String("chiricutin"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"),
			},
			Severity:   pulumi.Int(3),
			Tags:       pulumi.StringMap{},
			WindowSize: pulumi.String("PT15M"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
import com.pulumi.azurenative.monitor.inputs.MetricAlertActionArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions(MetricAlertActionArgs.builder()
                .actionGroupId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
                .webHookProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .autoMitigate(true)
            .criteria(MetricAlertMultipleResourceMultipleMetricCriteriaArgs.builder()
                .allOf(DynamicMetricCriteriaArgs.builder()
                    .alertSensitivity("Medium")
                    .criterionType("DynamicThresholdCriterion")
                    .dimensions()
                    .failingPeriods(DynamicThresholdFailingPeriodsArgs.builder()
                        .minFailingPeriodsToAlert(4)
                        .numberOfEvaluationPeriods(4)
                        .build())
                    .ignoreDataBefore("2019-04-04T21:00:00.000Z")
                    .metricName("Percentage CPU")
                    .metricNamespace("microsoft.compute/virtualmachines")
                    .name("High_CPU_80")
                    .operator("GreaterOrLessThan")
                    .timeAggregation("Average")
                    .build())
                .odataType("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
                .build())
            .description("This is the description of the rule1")
            .enabled(true)
            .evaluationFrequency("PT1M")
            .location("global")
            .resourceGroupName("gigtest")
            .ruleName("chiricutin")
            .scopes("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme")
            .severity(3)
            .tags(Map.ofEntries(
            ))
            .windowSize("PT15M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [{
        actionGroupId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        webHookProperties: {
            key11: "value11",
            key12: "value12",
        },
    }],
    autoMitigate: true,
    criteria: {
        allOf: [{
            alertSensitivity: azure_native.monitor.DynamicThresholdSensitivity.Medium,
            criterionType: "DynamicThresholdCriterion",
            dimensions: [],
            failingPeriods: {
                minFailingPeriodsToAlert: 4,
                numberOfEvaluationPeriods: 4,
            },
            ignoreDataBefore: "2019-04-04T21:00:00.000Z",
            metricName: "Percentage CPU",
            metricNamespace: "microsoft.compute/virtualmachines",
            name: "High_CPU_80",
            operator: azure_native.monitor.DynamicThresholdOperator.GreaterOrLessThan,
            timeAggregation: azure_native.monitor.AggregationTypeEnum.Average,
        }],
        odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description: "This is the description of the rule1",
    enabled: true,
    evaluationFrequency: "PT1M",
    location: "global",
    resourceGroupName: "gigtest",
    ruleName: "chiricutin",
    scopes: ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],
    severity: 3,
    tags: {},
    windowSize: "PT15M",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[{
        "action_group_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        "web_hook_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    }],
    auto_mitigate=True,
    criteria={
        "all_of": [{
            "alert_sensitivity": azure_native.monitor.DynamicThresholdSensitivity.MEDIUM,
            "criterion_type": "DynamicThresholdCriterion",
            "dimensions": [],
            "failing_periods": {
                "min_failing_periods_to_alert": 4,
                "number_of_evaluation_periods": 4,
            },
            "ignore_data_before": "2019-04-04T21:00:00.000Z",
            "metric_name": "Percentage CPU",
            "metric_namespace": "microsoft.compute/virtualmachines",
            "name": "High_CPU_80",
            "operator": azure_native.monitor.DynamicThresholdOperator.GREATER_OR_LESS_THAN,
            "time_aggregation": azure_native.monitor.AggregationTypeEnum.AVERAGE,
        }],
        "odata_type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description="This is the description of the rule1",
    enabled=True,
    evaluation_frequency="PT1M",
    location="global",
    resource_group_name="gigtest",
    rule_name="chiricutin",
    scopes=["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],
    severity=3,
    tags={},
    window_size="PT15M")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions:
        - actionGroupId: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2
          webHookProperties:
            key11: value11
            key12: value12
      autoMitigate: true
      criteria:
        allOf:
          - alertSensitivity: Medium
            criterionType: DynamicThresholdCriterion
            dimensions: []
            failingPeriods:
              minFailingPeriodsToAlert: 4
              numberOfEvaluationPeriods: 4
            ignoreDataBefore: 2019-04-04T21:00:00.000Z
            metricName: Percentage CPU
            metricNamespace: microsoft.compute/virtualmachines
            name: High_CPU_80
            operator: GreaterOrLessThan
            timeAggregation: Average
        odataType: Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria
      description: This is the description of the rule1
      enabled: true
      evaluationFrequency: PT1M
      location: global
      resourceGroupName: gigtest
      ruleName: chiricutin
      scopes:
        - /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme
      severity: 3
      tags: {}
      windowSize: PT15M
Create or update a web test alert rule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[] {},
        Criteria = new AzureNative.Monitor.Inputs.WebtestLocationAvailabilityCriteriaArgs
        {
            ComponentId = "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example",
            FailedLocationCount = 2,
            OdataType = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria",
            WebTestId = "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
        },
        Description = "Automatically created alert rule for availability test \"component-example\" a",
        Enabled = true,
        EvaluationFrequency = "PT1M",
        Location = "global",
        ResourceGroupName = "rg-example",
        RuleName = "webtest-name-example",
        Scopes = new[]
        {
            "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
            "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example",
        },
        Severity = 4,
        Tags = 
        {
            { "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", "Resource" },
            { "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", "Resource" },
        },
        WindowSize = "PT15M",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{},
			Criteria: &monitor.WebtestLocationAvailabilityCriteriaArgs{
				ComponentId:         pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example"),
				FailedLocationCount: pulumi.Float64(2),
				OdataType:           pulumi.String("Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"),
				WebTestId:           pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example"),
			},
			Description:         pulumi.String("Automatically created alert rule for availability test \"component-example\" a"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1M"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("rg-example"),
			RuleName:            pulumi.String("webtest-name-example"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example"),
				pulumi.String("/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example"),
			},
			Severity: pulumi.Int(4),
			Tags: pulumi.StringMap{
				"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example": pulumi.String("Resource"),
				"hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example":      pulumi.String("Resource"),
			},
			WindowSize: pulumi.String("PT15M"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions()
            .criteria(WebtestLocationAvailabilityCriteriaArgs.builder()
                .componentId("/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example")
                .failedLocationCount(2.0)
                .odataType("Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria")
                .webTestId("/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example")
                .build())
            .description("Automatically created alert rule for availability test \"component-example\" a")
            .enabled(true)
            .evaluationFrequency("PT1M")
            .location("global")
            .resourceGroupName("rg-example")
            .ruleName("webtest-name-example")
            .scopes(            
                "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
                "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example")
            .severity(4)
            .tags(Map.ofEntries(
                Map.entry("hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example", "Resource"),
                Map.entry("hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example", "Resource")
            ))
            .windowSize("PT15M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [],
    criteria: {
        componentId: "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example",
        failedLocationCount: 2,
        odataType: "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria",
        webTestId: "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
    },
    description: "Automatically created alert rule for availability test \"component-example\" a",
    enabled: true,
    evaluationFrequency: "PT1M",
    location: "global",
    resourceGroupName: "rg-example",
    ruleName: "webtest-name-example",
    scopes: [
        "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
        "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example",
    ],
    severity: 4,
    tags: {
        "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example": "Resource",
        "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example": "Resource",
    },
    windowSize: "PT15M",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[],
    criteria={
        "component_id": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example",
        "failed_location_count": 2,
        "odata_type": "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria",
        "web_test_id": "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
    },
    description="Automatically created alert rule for availability test \"component-example\" a",
    enabled=True,
    evaluation_frequency="PT1M",
    location="global",
    resource_group_name="rg-example",
    rule_name="webtest-name-example",
    scopes=[
        "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example",
        "/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example",
    ],
    severity=4,
    tags={
        "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example": "Resource",
        "hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example": "Resource",
    },
    window_size="PT15M")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions: []
      criteria:
        componentId: /subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example
        failedLocationCount: 2
        odataType: Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria
        webTestId: /subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example
      description: Automatically created alert rule for availability test "component-example" a
      enabled: true
      evaluationFrequency: PT1M
      location: global
      resourceGroupName: rg-example
      ruleName: webtest-name-example
      scopes:
        - /subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example
        - /subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example
      severity: 4
      tags:
        ? hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/components/webtest-name-example
        : Resource
        ? hidden-link:/subscriptions/12345678-1234-1234-1234-123456789101/resourcegroups/rg-example/providers/microsoft.insights/webtests/component-example
        : Resource
      windowSize: PT15M
Create or update an alert rule for Multiple Resource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[]
        {
            new AzureNative.Monitor.Inputs.MetricAlertActionArgs
            {
                ActionGroupId = "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
                WebHookProperties = 
                {
                    { "key11", "value11" },
                    { "key12", "value12" },
                },
            },
        },
        AutoMitigate = true,
        Criteria = new AzureNative.Monitor.Inputs.MetricAlertMultipleResourceMultipleMetricCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.MetricCriteriaArgs
                {
                    CriterionType = "StaticThresholdCriterion",
                    Dimensions = new() { },
                    MetricName = "Percentage CPU",
                    MetricNamespace = "microsoft.compute/virtualmachines",
                    Name = "High_CPU_80",
                    Operator = AzureNative.Monitor.Operator.GreaterThan,
                    Threshold = 80.5,
                    TimeAggregation = AzureNative.Monitor.AggregationTypeEnum.Average,
                },
            },
            OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        },
        Description = "This is the description of the rule1",
        Enabled = true,
        EvaluationFrequency = "PT1M",
        Location = "global",
        ResourceGroupName = "gigtest",
        RuleName = "MetricAlertOnMultipleResources",
        Scopes = new[]
        {
            "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
            "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2",
        },
        Severity = 3,
        Tags = null,
        TargetResourceRegion = "southcentralus",
        TargetResourceType = "Microsoft.Compute/virtualMachines",
        WindowSize = "PT15M",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{
				&monitor.MetricAlertActionArgs{
					ActionGroupId: pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2"),
					WebHookProperties: pulumi.StringMap{
						"key11": pulumi.String("value11"),
						"key12": pulumi.String("value12"),
					},
				},
			},
			AutoMitigate: pulumi.Bool(true),
			Criteria: &monitor.MetricAlertMultipleResourceMultipleMetricCriteriaArgs{
				AllOf: pulumi.Array{
					monitor.MetricCriteria{
						CriterionType:   "StaticThresholdCriterion",
						Dimensions:      []monitor.MetricDimension{},
						MetricName:      "Percentage CPU",
						MetricNamespace: "microsoft.compute/virtualmachines",
						Name:            "High_CPU_80",
						Operator:        monitor.OperatorGreaterThan,
						Threshold:       80.5,
						TimeAggregation: monitor.AggregationTypeEnumAverage,
					},
				},
				OdataType: pulumi.String("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"),
			},
			Description:         pulumi.String("This is the description of the rule1"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1M"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("gigtest"),
			RuleName:            pulumi.String("MetricAlertOnMultipleResources"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1"),
				pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2"),
			},
			Severity:             pulumi.Int(3),
			Tags:                 pulumi.StringMap{},
			TargetResourceRegion: pulumi.String("southcentralus"),
			TargetResourceType:   pulumi.String("Microsoft.Compute/virtualMachines"),
			WindowSize:           pulumi.String("PT15M"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
import com.pulumi.azurenative.monitor.inputs.MetricAlertActionArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions(MetricAlertActionArgs.builder()
                .actionGroupId("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
                .webHookProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .autoMitigate(true)
            .criteria(MetricAlertMultipleResourceMultipleMetricCriteriaArgs.builder()
                .allOf(MetricCriteriaArgs.builder()
                    .criterionType("StaticThresholdCriterion")
                    .dimensions()
                    .metricName("Percentage CPU")
                    .metricNamespace("microsoft.compute/virtualmachines")
                    .name("High_CPU_80")
                    .operator("GreaterThan")
                    .threshold(80.5)
                    .timeAggregation("Average")
                    .build())
                .odataType("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
                .build())
            .description("This is the description of the rule1")
            .enabled(true)
            .evaluationFrequency("PT1M")
            .location("global")
            .resourceGroupName("gigtest")
            .ruleName("MetricAlertOnMultipleResources")
            .scopes(            
                "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
                "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2")
            .severity(3)
            .tags(Map.ofEntries(
            ))
            .targetResourceRegion("southcentralus")
            .targetResourceType("Microsoft.Compute/virtualMachines")
            .windowSize("PT15M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [{
        actionGroupId: "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        webHookProperties: {
            key11: "value11",
            key12: "value12",
        },
    }],
    autoMitigate: true,
    criteria: {
        allOf: [{
            criterionType: "StaticThresholdCriterion",
            dimensions: [],
            metricName: "Percentage CPU",
            metricNamespace: "microsoft.compute/virtualmachines",
            name: "High_CPU_80",
            operator: azure_native.monitor.Operator.GreaterThan,
            threshold: 80.5,
            timeAggregation: azure_native.monitor.AggregationTypeEnum.Average,
        }],
        odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description: "This is the description of the rule1",
    enabled: true,
    evaluationFrequency: "PT1M",
    location: "global",
    resourceGroupName: "gigtest",
    ruleName: "MetricAlertOnMultipleResources",
    scopes: [
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2",
    ],
    severity: 3,
    tags: {},
    targetResourceRegion: "southcentralus",
    targetResourceType: "Microsoft.Compute/virtualMachines",
    windowSize: "PT15M",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[{
        "action_group_id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        "web_hook_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    }],
    auto_mitigate=True,
    criteria={
        "all_of": [{
            "criterion_type": "StaticThresholdCriterion",
            "dimensions": [],
            "metric_name": "Percentage CPU",
            "metric_namespace": "microsoft.compute/virtualmachines",
            "name": "High_CPU_80",
            "operator": azure_native.monitor.Operator.GREATER_THAN,
            "threshold": 80.5,
            "time_aggregation": azure_native.monitor.AggregationTypeEnum.AVERAGE,
        }],
        "odata_type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description="This is the description of the rule1",
    enabled=True,
    evaluation_frequency="PT1M",
    location="global",
    resource_group_name="gigtest",
    rule_name="MetricAlertOnMultipleResources",
    scopes=[
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1",
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2",
    ],
    severity=3,
    tags={},
    target_resource_region="southcentralus",
    target_resource_type="Microsoft.Compute/virtualMachines",
    window_size="PT15M")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions:
        - actionGroupId: /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2
          webHookProperties:
            key11: value11
            key12: value12
      autoMitigate: true
      criteria:
        allOf:
          - criterionType: StaticThresholdCriterion
            dimensions: []
            metricName: Percentage CPU
            metricNamespace: microsoft.compute/virtualmachines
            name: High_CPU_80
            operator: GreaterThan
            threshold: 80.5
            timeAggregation: Average
        odataType: Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria
      description: This is the description of the rule1
      enabled: true
      evaluationFrequency: PT1M
      location: global
      resourceGroupName: gigtest
      ruleName: MetricAlertOnMultipleResources
      scopes:
        - /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme1
        - /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme2
      severity: 3
      tags: {}
      targetResourceRegion: southcentralus
      targetResourceType: Microsoft.Compute/virtualMachines
      windowSize: PT15M
Create or update an alert rule for Single Resource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[]
        {
            new AzureNative.Monitor.Inputs.MetricAlertActionArgs
            {
                ActionGroupId = "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
                WebHookProperties = 
                {
                    { "key11", "value11" },
                    { "key12", "value12" },
                },
            },
        },
        AutoMitigate = true,
        Criteria = new AzureNative.Monitor.Inputs.MetricAlertSingleResourceMultipleMetricCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.MetricCriteriaArgs
                {
                    CriterionType = "StaticThresholdCriterion",
                    Dimensions = new() { },
                    MetricName = "\\Processor(_Total)\\% Processor Time",
                    Name = "High_CPU_80",
                    Operator = AzureNative.Monitor.Operator.GreaterThan,
                    Threshold = 80.5,
                    TimeAggregation = AzureNative.Monitor.AggregationTypeEnum.Average,
                },
            },
            OdataType = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
        },
        Description = "This is the description of the rule1",
        Enabled = true,
        EvaluationFrequency = "PT1M",
        Location = "global",
        ResourceGroupName = "gigtest",
        RuleName = "chiricutin",
        Scopes = new[]
        {
            "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme",
        },
        Severity = 3,
        Tags = null,
        WindowSize = "PT15M",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{
				&monitor.MetricAlertActionArgs{
					ActionGroupId: pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2"),
					WebHookProperties: pulumi.StringMap{
						"key11": pulumi.String("value11"),
						"key12": pulumi.String("value12"),
					},
				},
			},
			AutoMitigate: pulumi.Bool(true),
			Criteria: &monitor.MetricAlertSingleResourceMultipleMetricCriteriaArgs{
				AllOf: monitor.MetricCriteriaArray{
					&monitor.MetricCriteriaArgs{
						CriterionType:   pulumi.String("StaticThresholdCriterion"),
						Dimensions:      monitor.MetricDimensionArray{},
						MetricName:      pulumi.String("\\Processor(_Total)\\% Processor Time"),
						Name:            pulumi.String("High_CPU_80"),
						Operator:        pulumi.String(monitor.OperatorGreaterThan),
						Threshold:       pulumi.Float64(80.5),
						TimeAggregation: pulumi.String(monitor.AggregationTypeEnumAverage),
					},
				},
				OdataType: pulumi.String("Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"),
			},
			Description:         pulumi.String("This is the description of the rule1"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1M"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("gigtest"),
			RuleName:            pulumi.String("chiricutin"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"),
			},
			Severity:   pulumi.Int(3),
			Tags:       pulumi.StringMap{},
			WindowSize: pulumi.String("PT15M"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
import com.pulumi.azurenative.monitor.inputs.MetricAlertActionArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions(MetricAlertActionArgs.builder()
                .actionGroupId("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
                .webHookProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .autoMitigate(true)
            .criteria(MetricAlertSingleResourceMultipleMetricCriteriaArgs.builder()
                .allOf(Map.ofEntries(
                    Map.entry("criterionType", "StaticThresholdCriterion"),
                    Map.entry("dimensions", ),
                    Map.entry("metricName", "\\Processor(_Total)\\% Processor Time"),
                    Map.entry("name", "High_CPU_80"),
                    Map.entry("operator", "GreaterThan"),
                    Map.entry("threshold", 80.5),
                    Map.entry("timeAggregation", "Average")
                ))
                .odataType("Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria")
                .build())
            .description("This is the description of the rule1")
            .enabled(true)
            .evaluationFrequency("PT1M")
            .location("global")
            .resourceGroupName("gigtest")
            .ruleName("chiricutin")
            .scopes("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme")
            .severity(3)
            .tags(Map.ofEntries(
            ))
            .windowSize("PT15M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [{
        actionGroupId: "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        webHookProperties: {
            key11: "value11",
            key12: "value12",
        },
    }],
    autoMitigate: true,
    criteria: {
        allOf: [{
            criterionType: "StaticThresholdCriterion",
            dimensions: [],
            metricName: "\\Processor(_Total)\\% Processor Time",
            name: "High_CPU_80",
            operator: azure_native.monitor.Operator.GreaterThan,
            threshold: 80.5,
            timeAggregation: azure_native.monitor.AggregationTypeEnum.Average,
        }],
        odataType: "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
    },
    description: "This is the description of the rule1",
    enabled: true,
    evaluationFrequency: "PT1M",
    location: "global",
    resourceGroupName: "gigtest",
    ruleName: "chiricutin",
    scopes: ["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],
    severity: 3,
    tags: {},
    windowSize: "PT15M",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[{
        "action_group_id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        "web_hook_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    }],
    auto_mitigate=True,
    criteria={
        "all_of": [{
            "criterion_type": "StaticThresholdCriterion",
            "dimensions": [],
            "metric_name": "\\Processor(_Total)\\% Processor Time",
            "name": "High_CPU_80",
            "operator": azure_native.monitor.Operator.GREATER_THAN,
            "threshold": 80.5,
            "time_aggregation": azure_native.monitor.AggregationTypeEnum.AVERAGE,
        }],
        "odata_type": "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria",
    },
    description="This is the description of the rule1",
    enabled=True,
    evaluation_frequency="PT1M",
    location="global",
    resource_group_name="gigtest",
    rule_name="chiricutin",
    scopes=["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme"],
    severity=3,
    tags={},
    window_size="PT15M")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions:
        - actionGroupId: /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2
          webHookProperties:
            key11: value11
            key12: value12
      autoMitigate: true
      criteria:
        allOf:
          - criterionType: StaticThresholdCriterion
            dimensions: []
            metricName: \Processor(_Total)\% Processor Time
            name: High_CPU_80
            operator: GreaterThan
            threshold: 80.5
            timeAggregation: Average
        odataType: Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria
      description: This is the description of the rule1
      enabled: true
      evaluationFrequency: PT1M
      location: global
      resourceGroupName: gigtest
      ruleName: chiricutin
      scopes:
        - /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.Compute/virtualMachines/gigwadme
      severity: 3
      tags: {}
      windowSize: PT15M
Create or update an alert rule on Resource group(s)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[]
        {
            new AzureNative.Monitor.Inputs.MetricAlertActionArgs
            {
                ActionGroupId = "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
                WebHookProperties = 
                {
                    { "key11", "value11" },
                    { "key12", "value12" },
                },
            },
        },
        AutoMitigate = true,
        Criteria = new AzureNative.Monitor.Inputs.MetricAlertMultipleResourceMultipleMetricCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.MetricCriteriaArgs
                {
                    CriterionType = "StaticThresholdCriterion",
                    Dimensions = new() { },
                    MetricName = "Percentage CPU",
                    MetricNamespace = "microsoft.compute/virtualmachines",
                    Name = "High_CPU_80",
                    Operator = AzureNative.Monitor.Operator.GreaterThan,
                    Threshold = 80.5,
                    TimeAggregation = AzureNative.Monitor.AggregationTypeEnum.Average,
                },
            },
            OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        },
        Description = "This is the description of the rule1",
        Enabled = true,
        EvaluationFrequency = "PT1M",
        Location = "global",
        ResourceGroupName = "gigtest1",
        RuleName = "MetricAlertAtResourceGroupLevel",
        Scopes = new[]
        {
            "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1",
            "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2",
        },
        Severity = 3,
        Tags = null,
        TargetResourceRegion = "southcentralus",
        TargetResourceType = "Microsoft.Compute/virtualMachines",
        WindowSize = "PT15M",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{
				&monitor.MetricAlertActionArgs{
					ActionGroupId: pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2"),
					WebHookProperties: pulumi.StringMap{
						"key11": pulumi.String("value11"),
						"key12": pulumi.String("value12"),
					},
				},
			},
			AutoMitigate: pulumi.Bool(true),
			Criteria: &monitor.MetricAlertMultipleResourceMultipleMetricCriteriaArgs{
				AllOf: pulumi.Array{
					monitor.MetricCriteria{
						CriterionType:   "StaticThresholdCriterion",
						Dimensions:      []monitor.MetricDimension{},
						MetricName:      "Percentage CPU",
						MetricNamespace: "microsoft.compute/virtualmachines",
						Name:            "High_CPU_80",
						Operator:        monitor.OperatorGreaterThan,
						Threshold:       80.5,
						TimeAggregation: monitor.AggregationTypeEnumAverage,
					},
				},
				OdataType: pulumi.String("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"),
			},
			Description:         pulumi.String("This is the description of the rule1"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1M"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("gigtest1"),
			RuleName:            pulumi.String("MetricAlertAtResourceGroupLevel"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1"),
				pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2"),
			},
			Severity:             pulumi.Int(3),
			Tags:                 pulumi.StringMap{},
			TargetResourceRegion: pulumi.String("southcentralus"),
			TargetResourceType:   pulumi.String("Microsoft.Compute/virtualMachines"),
			WindowSize:           pulumi.String("PT15M"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
import com.pulumi.azurenative.monitor.inputs.MetricAlertActionArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions(MetricAlertActionArgs.builder()
                .actionGroupId("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
                .webHookProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .autoMitigate(true)
            .criteria(MetricAlertMultipleResourceMultipleMetricCriteriaArgs.builder()
                .allOf(MetricCriteriaArgs.builder()
                    .criterionType("StaticThresholdCriterion")
                    .dimensions()
                    .metricName("Percentage CPU")
                    .metricNamespace("microsoft.compute/virtualmachines")
                    .name("High_CPU_80")
                    .operator("GreaterThan")
                    .threshold(80.5)
                    .timeAggregation("Average")
                    .build())
                .odataType("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
                .build())
            .description("This is the description of the rule1")
            .enabled(true)
            .evaluationFrequency("PT1M")
            .location("global")
            .resourceGroupName("gigtest1")
            .ruleName("MetricAlertAtResourceGroupLevel")
            .scopes(            
                "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1",
                "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2")
            .severity(3)
            .tags(Map.ofEntries(
            ))
            .targetResourceRegion("southcentralus")
            .targetResourceType("Microsoft.Compute/virtualMachines")
            .windowSize("PT15M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [{
        actionGroupId: "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        webHookProperties: {
            key11: "value11",
            key12: "value12",
        },
    }],
    autoMitigate: true,
    criteria: {
        allOf: [{
            criterionType: "StaticThresholdCriterion",
            dimensions: [],
            metricName: "Percentage CPU",
            metricNamespace: "microsoft.compute/virtualmachines",
            name: "High_CPU_80",
            operator: azure_native.monitor.Operator.GreaterThan,
            threshold: 80.5,
            timeAggregation: azure_native.monitor.AggregationTypeEnum.Average,
        }],
        odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description: "This is the description of the rule1",
    enabled: true,
    evaluationFrequency: "PT1M",
    location: "global",
    resourceGroupName: "gigtest1",
    ruleName: "MetricAlertAtResourceGroupLevel",
    scopes: [
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1",
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2",
    ],
    severity: 3,
    tags: {},
    targetResourceRegion: "southcentralus",
    targetResourceType: "Microsoft.Compute/virtualMachines",
    windowSize: "PT15M",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[{
        "action_group_id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        "web_hook_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    }],
    auto_mitigate=True,
    criteria={
        "all_of": [{
            "criterion_type": "StaticThresholdCriterion",
            "dimensions": [],
            "metric_name": "Percentage CPU",
            "metric_namespace": "microsoft.compute/virtualmachines",
            "name": "High_CPU_80",
            "operator": azure_native.monitor.Operator.GREATER_THAN,
            "threshold": 80.5,
            "time_aggregation": azure_native.monitor.AggregationTypeEnum.AVERAGE,
        }],
        "odata_type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description="This is the description of the rule1",
    enabled=True,
    evaluation_frequency="PT1M",
    location="global",
    resource_group_name="gigtest1",
    rule_name="MetricAlertAtResourceGroupLevel",
    scopes=[
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1",
        "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2",
    ],
    severity=3,
    tags={},
    target_resource_region="southcentralus",
    target_resource_type="Microsoft.Compute/virtualMachines",
    window_size="PT15M")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions:
        - actionGroupId: /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2
          webHookProperties:
            key11: value11
            key12: value12
      autoMitigate: true
      criteria:
        allOf:
          - criterionType: StaticThresholdCriterion
            dimensions: []
            metricName: Percentage CPU
            metricNamespace: microsoft.compute/virtualmachines
            name: High_CPU_80
            operator: GreaterThan
            threshold: 80.5
            timeAggregation: Average
        odataType: Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria
      description: This is the description of the rule1
      enabled: true
      evaluationFrequency: PT1M
      location: global
      resourceGroupName: gigtest1
      ruleName: MetricAlertAtResourceGroupLevel
      scopes:
        - /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest1
        - /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest2
      severity: 3
      tags: {}
      targetResourceRegion: southcentralus
      targetResourceType: Microsoft.Compute/virtualMachines
      windowSize: PT15M
Create or update an alert rule on Subscription
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[]
        {
            new AzureNative.Monitor.Inputs.MetricAlertActionArgs
            {
                ActionGroupId = "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
                WebHookProperties = 
                {
                    { "key11", "value11" },
                    { "key12", "value12" },
                },
            },
        },
        AutoMitigate = true,
        Criteria = new AzureNative.Monitor.Inputs.MetricAlertMultipleResourceMultipleMetricCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.MetricCriteriaArgs
                {
                    CriterionType = "StaticThresholdCriterion",
                    Dimensions = new() { },
                    MetricName = "Percentage CPU",
                    MetricNamespace = "microsoft.compute/virtualmachines",
                    Name = "High_CPU_80",
                    Operator = AzureNative.Monitor.Operator.GreaterThan,
                    Threshold = 80.5,
                    TimeAggregation = AzureNative.Monitor.AggregationTypeEnum.Average,
                },
            },
            OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        },
        Description = "This is the description of the rule1",
        Enabled = true,
        EvaluationFrequency = "PT1M",
        Location = "global",
        ResourceGroupName = "gigtest",
        RuleName = "MetricAlertAtSubscriptionLevel",
        Scopes = new[]
        {
            "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7",
        },
        Severity = 3,
        Tags = null,
        TargetResourceRegion = "southcentralus",
        TargetResourceType = "Microsoft.Compute/virtualMachines",
        WindowSize = "PT15M",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{
				&monitor.MetricAlertActionArgs{
					ActionGroupId: pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2"),
					WebHookProperties: pulumi.StringMap{
						"key11": pulumi.String("value11"),
						"key12": pulumi.String("value12"),
					},
				},
			},
			AutoMitigate: pulumi.Bool(true),
			Criteria: &monitor.MetricAlertMultipleResourceMultipleMetricCriteriaArgs{
				AllOf: pulumi.Array{
					monitor.MetricCriteria{
						CriterionType:   "StaticThresholdCriterion",
						Dimensions:      []monitor.MetricDimension{},
						MetricName:      "Percentage CPU",
						MetricNamespace: "microsoft.compute/virtualmachines",
						Name:            "High_CPU_80",
						Operator:        monitor.OperatorGreaterThan,
						Threshold:       80.5,
						TimeAggregation: monitor.AggregationTypeEnumAverage,
					},
				},
				OdataType: pulumi.String("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"),
			},
			Description:         pulumi.String("This is the description of the rule1"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1M"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("gigtest"),
			RuleName:            pulumi.String("MetricAlertAtSubscriptionLevel"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"),
			},
			Severity:             pulumi.Int(3),
			Tags:                 pulumi.StringMap{},
			TargetResourceRegion: pulumi.String("southcentralus"),
			TargetResourceType:   pulumi.String("Microsoft.Compute/virtualMachines"),
			WindowSize:           pulumi.String("PT15M"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
import com.pulumi.azurenative.monitor.inputs.MetricAlertActionArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions(MetricAlertActionArgs.builder()
                .actionGroupId("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
                .webHookProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .autoMitigate(true)
            .criteria(MetricAlertMultipleResourceMultipleMetricCriteriaArgs.builder()
                .allOf(MetricCriteriaArgs.builder()
                    .criterionType("StaticThresholdCriterion")
                    .dimensions()
                    .metricName("Percentage CPU")
                    .metricNamespace("microsoft.compute/virtualmachines")
                    .name("High_CPU_80")
                    .operator("GreaterThan")
                    .threshold(80.5)
                    .timeAggregation("Average")
                    .build())
                .odataType("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
                .build())
            .description("This is the description of the rule1")
            .enabled(true)
            .evaluationFrequency("PT1M")
            .location("global")
            .resourceGroupName("gigtest")
            .ruleName("MetricAlertAtSubscriptionLevel")
            .scopes("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7")
            .severity(3)
            .tags(Map.ofEntries(
            ))
            .targetResourceRegion("southcentralus")
            .targetResourceType("Microsoft.Compute/virtualMachines")
            .windowSize("PT15M")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [{
        actionGroupId: "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        webHookProperties: {
            key11: "value11",
            key12: "value12",
        },
    }],
    autoMitigate: true,
    criteria: {
        allOf: [{
            criterionType: "StaticThresholdCriterion",
            dimensions: [],
            metricName: "Percentage CPU",
            metricNamespace: "microsoft.compute/virtualmachines",
            name: "High_CPU_80",
            operator: azure_native.monitor.Operator.GreaterThan,
            threshold: 80.5,
            timeAggregation: azure_native.monitor.AggregationTypeEnum.Average,
        }],
        odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description: "This is the description of the rule1",
    enabled: true,
    evaluationFrequency: "PT1M",
    location: "global",
    resourceGroupName: "gigtest",
    ruleName: "MetricAlertAtSubscriptionLevel",
    scopes: ["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"],
    severity: 3,
    tags: {},
    targetResourceRegion: "southcentralus",
    targetResourceType: "Microsoft.Compute/virtualMachines",
    windowSize: "PT15M",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[{
        "action_group_id": "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        "web_hook_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    }],
    auto_mitigate=True,
    criteria={
        "all_of": [{
            "criterion_type": "StaticThresholdCriterion",
            "dimensions": [],
            "metric_name": "Percentage CPU",
            "metric_namespace": "microsoft.compute/virtualmachines",
            "name": "High_CPU_80",
            "operator": azure_native.monitor.Operator.GREATER_THAN,
            "threshold": 80.5,
            "time_aggregation": azure_native.monitor.AggregationTypeEnum.AVERAGE,
        }],
        "odata_type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description="This is the description of the rule1",
    enabled=True,
    evaluation_frequency="PT1M",
    location="global",
    resource_group_name="gigtest",
    rule_name="MetricAlertAtSubscriptionLevel",
    scopes=["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7"],
    severity=3,
    tags={},
    target_resource_region="southcentralus",
    target_resource_type="Microsoft.Compute/virtualMachines",
    window_size="PT15M")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions:
        - actionGroupId: /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2
          webHookProperties:
            key11: value11
            key12: value12
      autoMitigate: true
      criteria:
        allOf:
          - criterionType: StaticThresholdCriterion
            dimensions: []
            metricName: Percentage CPU
            metricNamespace: microsoft.compute/virtualmachines
            name: High_CPU_80
            operator: GreaterThan
            threshold: 80.5
            timeAggregation: Average
        odataType: Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria
      description: This is the description of the rule1
      enabled: true
      evaluationFrequency: PT1M
      location: global
      resourceGroupName: gigtest
      ruleName: MetricAlertAtSubscriptionLevel
      scopes:
        - /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7
      severity: 3
      tags: {}
      targetResourceRegion: southcentralus
      targetResourceType: Microsoft.Compute/virtualMachines
      windowSize: PT15M
Create or update an alert rules with dimensions
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var metricAlert = new AzureNative.Monitor.MetricAlert("metricAlert", new()
    {
        Actions = new[]
        {
            new AzureNative.Monitor.Inputs.MetricAlertActionArgs
            {
                ActionGroupId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
                WebHookProperties = 
                {
                    { "key11", "value11" },
                    { "key12", "value12" },
                },
            },
        },
        AutoMitigate = true,
        Criteria = new AzureNative.Monitor.Inputs.MetricAlertMultipleResourceMultipleMetricCriteriaArgs
        {
            AllOf = new[]
            {
                new AzureNative.Monitor.Inputs.MetricCriteriaArgs
                {
                    CriterionType = "StaticThresholdCriterion",
                    Dimensions = new[]
                    {
                        new AzureNative.Monitor.Inputs.MetricDimensionArgs
                        {
                            Name = "ActivityName",
                            Operator = "Include",
                            Values = new[]
                            {
                                "*",
                            },
                        },
                        new AzureNative.Monitor.Inputs.MetricDimensionArgs
                        {
                            Name = "StatusCode",
                            Operator = "Include",
                            Values = new[]
                            {
                                "200",
                            },
                        },
                    },
                    MetricName = "Availability",
                    MetricNamespace = "Microsoft.KeyVault/vaults",
                    Name = "Metric1",
                    Operator = AzureNative.Monitor.Operator.GreaterThan,
                    Threshold = 55,
                    TimeAggregation = AzureNative.Monitor.AggregationTypeEnum.Average,
                },
            },
            OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        },
        Description = "This is the description of the rule1",
        Enabled = true,
        EvaluationFrequency = "PT1H",
        Location = "global",
        ResourceGroupName = "gigtest",
        RuleName = "MetricAlertOnMultipleDimensions",
        Scopes = new[]
        {
            "/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource",
        },
        Severity = 3,
        Tags = null,
        WindowSize = "P1D",
    });
});
package main
import (
	monitor "github.com/pulumi/pulumi-azure-native-sdk/monitor/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := monitor.NewMetricAlert(ctx, "metricAlert", &monitor.MetricAlertArgs{
			Actions: monitor.MetricAlertActionArray{
				&monitor.MetricAlertActionArgs{
					ActionGroupId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2"),
					WebHookProperties: pulumi.StringMap{
						"key11": pulumi.String("value11"),
						"key12": pulumi.String("value12"),
					},
				},
			},
			AutoMitigate: pulumi.Bool(true),
			Criteria: &monitor.MetricAlertMultipleResourceMultipleMetricCriteriaArgs{
				AllOf: pulumi.Array{
					monitor.MetricCriteria{
						CriterionType: "StaticThresholdCriterion",
						Dimensions: []monitor.MetricDimension{
							{
								Name:     "ActivityName",
								Operator: "Include",
								Values: []string{
									"*",
								},
							},
							{
								Name:     "StatusCode",
								Operator: "Include",
								Values: []string{
									"200",
								},
							},
						},
						MetricName:      "Availability",
						MetricNamespace: "Microsoft.KeyVault/vaults",
						Name:            "Metric1",
						Operator:        monitor.OperatorGreaterThan,
						Threshold:       55,
						TimeAggregation: monitor.AggregationTypeEnumAverage,
					},
				},
				OdataType: pulumi.String("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"),
			},
			Description:         pulumi.String("This is the description of the rule1"),
			Enabled:             pulumi.Bool(true),
			EvaluationFrequency: pulumi.String("PT1H"),
			Location:            pulumi.String("global"),
			ResourceGroupName:   pulumi.String("gigtest"),
			RuleName:            pulumi.String("MetricAlertOnMultipleDimensions"),
			Scopes: pulumi.StringArray{
				pulumi.String("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource"),
			},
			Severity:   pulumi.Int(3),
			Tags:       pulumi.StringMap{},
			WindowSize: pulumi.String("P1D"),
		})
		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.monitor.MetricAlert;
import com.pulumi.azurenative.monitor.MetricAlertArgs;
import com.pulumi.azurenative.monitor.inputs.MetricAlertActionArgs;
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 metricAlert = new MetricAlert("metricAlert", MetricAlertArgs.builder()
            .actions(MetricAlertActionArgs.builder()
                .actionGroupId("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2")
                .webHookProperties(Map.ofEntries(
                    Map.entry("key11", "value11"),
                    Map.entry("key12", "value12")
                ))
                .build())
            .autoMitigate(true)
            .criteria(MetricAlertMultipleResourceMultipleMetricCriteriaArgs.builder()
                .allOf(MetricCriteriaArgs.builder()
                    .criterionType("StaticThresholdCriterion")
                    .dimensions(                    
                        MetricDimensionArgs.builder()
                            .name("ActivityName")
                            .operator("Include")
                            .values("*")
                            .build(),
                        MetricDimensionArgs.builder()
                            .name("StatusCode")
                            .operator("Include")
                            .values("200")
                            .build())
                    .metricName("Availability")
                    .metricNamespace("Microsoft.KeyVault/vaults")
                    .name("Metric1")
                    .operator("GreaterThan")
                    .threshold(55)
                    .timeAggregation("Average")
                    .build())
                .odataType("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
                .build())
            .description("This is the description of the rule1")
            .enabled(true)
            .evaluationFrequency("PT1H")
            .location("global")
            .resourceGroupName("gigtest")
            .ruleName("MetricAlertOnMultipleDimensions")
            .scopes("/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource")
            .severity(3)
            .tags(Map.ofEntries(
            ))
            .windowSize("P1D")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const metricAlert = new azure_native.monitor.MetricAlert("metricAlert", {
    actions: [{
        actionGroupId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        webHookProperties: {
            key11: "value11",
            key12: "value12",
        },
    }],
    autoMitigate: true,
    criteria: {
        allOf: [{
            criterionType: "StaticThresholdCriterion",
            dimensions: [
                {
                    name: "ActivityName",
                    operator: "Include",
                    values: ["*"],
                },
                {
                    name: "StatusCode",
                    operator: "Include",
                    values: ["200"],
                },
            ],
            metricName: "Availability",
            metricNamespace: "Microsoft.KeyVault/vaults",
            name: "Metric1",
            operator: azure_native.monitor.Operator.GreaterThan,
            threshold: 55,
            timeAggregation: azure_native.monitor.AggregationTypeEnum.Average,
        }],
        odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description: "This is the description of the rule1",
    enabled: true,
    evaluationFrequency: "PT1H",
    location: "global",
    resourceGroupName: "gigtest",
    ruleName: "MetricAlertOnMultipleDimensions",
    scopes: ["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource"],
    severity: 3,
    tags: {},
    windowSize: "P1D",
});
import pulumi
import pulumi_azure_native as azure_native
metric_alert = azure_native.monitor.MetricAlert("metricAlert",
    actions=[{
        "action_group_id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2",
        "web_hook_properties": {
            "key11": "value11",
            "key12": "value12",
        },
    }],
    auto_mitigate=True,
    criteria={
        "all_of": [{
            "criterion_type": "StaticThresholdCriterion",
            "dimensions": [
                {
                    "name": "ActivityName",
                    "operator": "Include",
                    "values": ["*"],
                },
                {
                    "name": "StatusCode",
                    "operator": "Include",
                    "values": ["200"],
                },
            ],
            "metric_name": "Availability",
            "metric_namespace": "Microsoft.KeyVault/vaults",
            "name": "Metric1",
            "operator": azure_native.monitor.Operator.GREATER_THAN,
            "threshold": 55,
            "time_aggregation": azure_native.monitor.AggregationTypeEnum.AVERAGE,
        }],
        "odata_type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
    },
    description="This is the description of the rule1",
    enabled=True,
    evaluation_frequency="PT1H",
    location="global",
    resource_group_name="gigtest",
    rule_name="MetricAlertOnMultipleDimensions",
    scopes=["/subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource"],
    severity=3,
    tags={},
    window_size="P1D")
resources:
  metricAlert:
    type: azure-native:monitor:MetricAlert
    properties:
      actions:
        - actionGroupId: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/gigtest/providers/microsoft.insights/actiongroups/group2
          webHookProperties:
            key11: value11
            key12: value12
      autoMitigate: true
      criteria:
        allOf:
          - criterionType: StaticThresholdCriterion
            dimensions:
              - name: ActivityName
                operator: Include
                values:
                  - '*'
              - name: StatusCode
                operator: Include
                values:
                  - '200'
            metricName: Availability
            metricNamespace: Microsoft.KeyVault/vaults
            name: Metric1
            operator: GreaterThan
            threshold: 55
            timeAggregation: Average
        odataType: Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria
      description: This is the description of the rule1
      enabled: true
      evaluationFrequency: PT1H
      location: global
      resourceGroupName: gigtest
      ruleName: MetricAlertOnMultipleDimensions
      scopes:
        - /subscriptions/14ddf0c5-77c5-4b53-84f6-e1fa43ad68f7/resourceGroups/gigtest/providers/Microsoft.KeyVault/vaults/keyVaultResource
      severity: 3
      tags: {}
      windowSize: P1D
Create MetricAlert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MetricAlert(name: string, args: MetricAlertArgs, opts?: CustomResourceOptions);@overload
def MetricAlert(resource_name: str,
                args: MetricAlertArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def MetricAlert(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_group_name: Optional[str] = None,
                window_size: Optional[str] = None,
                criteria: Optional[Union[MetricAlertMultipleResourceMultipleMetricCriteriaArgs, MetricAlertSingleResourceMultipleMetricCriteriaArgs, WebtestLocationAvailabilityCriteriaArgs]] = None,
                severity: Optional[int] = None,
                enabled: Optional[bool] = None,
                evaluation_frequency: Optional[str] = None,
                scopes: Optional[Sequence[str]] = None,
                description: Optional[str] = None,
                rule_name: Optional[str] = None,
                location: Optional[str] = None,
                actions: Optional[Sequence[MetricAlertActionArgs]] = None,
                tags: Optional[Mapping[str, str]] = None,
                target_resource_region: Optional[str] = None,
                target_resource_type: Optional[str] = None,
                auto_mitigate: Optional[bool] = None)func NewMetricAlert(ctx *Context, name string, args MetricAlertArgs, opts ...ResourceOption) (*MetricAlert, error)public MetricAlert(string name, MetricAlertArgs args, CustomResourceOptions? opts = null)
public MetricAlert(String name, MetricAlertArgs args)
public MetricAlert(String name, MetricAlertArgs args, CustomResourceOptions options)
type: azure-native:monitor:MetricAlert
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 MetricAlertArgs
- 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 MetricAlertArgs
- 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 MetricAlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MetricAlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MetricAlertArgs
- 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 metricAlertResource = new AzureNative.Monitor.MetricAlert("metricAlertResource", new()
{
    ResourceGroupName = "string",
    WindowSize = "string",
    Criteria = new AzureNative.Monitor.Inputs.MetricAlertMultipleResourceMultipleMetricCriteriaArgs
    {
        OdataType = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        AllOf = new[]
        {
            new AzureNative.Monitor.Inputs.DynamicMetricCriteriaArgs
            {
                AlertSensitivity = "string",
                CriterionType = "DynamicThresholdCriterion",
                FailingPeriods = new AzureNative.Monitor.Inputs.DynamicThresholdFailingPeriodsArgs
                {
                    MinFailingPeriodsToAlert = 0,
                    NumberOfEvaluationPeriods = 0,
                },
                MetricName = "string",
                Name = "string",
                Operator = "string",
                TimeAggregation = "string",
                Dimensions = new[]
                {
                    new AzureNative.Monitor.Inputs.MetricDimensionArgs
                    {
                        Name = "string",
                        Operator = "string",
                        Values = new[]
                        {
                            "string",
                        },
                    },
                },
                IgnoreDataBefore = "string",
                MetricNamespace = "string",
                SkipMetricValidation = false,
            },
        },
    },
    Severity = 0,
    Enabled = false,
    EvaluationFrequency = "string",
    Scopes = new[]
    {
        "string",
    },
    Description = "string",
    RuleName = "string",
    Location = "string",
    Actions = new[]
    {
        new AzureNative.Monitor.Inputs.MetricAlertActionArgs
        {
            ActionGroupId = "string",
            WebHookProperties = 
            {
                { "string", "string" },
            },
        },
    },
    Tags = 
    {
        { "string", "string" },
    },
    TargetResourceRegion = "string",
    TargetResourceType = "string",
    AutoMitigate = false,
});
example, err := monitor.NewMetricAlert(ctx, "metricAlertResource", &monitor.MetricAlertArgs{
	ResourceGroupName: pulumi.String("string"),
	WindowSize:        pulumi.String("string"),
	Criteria: &monitor.MetricAlertMultipleResourceMultipleMetricCriteriaArgs{
		OdataType: pulumi.String("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"),
		AllOf: pulumi.Array{
			monitor.DynamicMetricCriteria{
				AlertSensitivity: "string",
				CriterionType:    "DynamicThresholdCriterion",
				FailingPeriods: monitor.DynamicThresholdFailingPeriods{
					MinFailingPeriodsToAlert:  0,
					NumberOfEvaluationPeriods: 0,
				},
				MetricName:      "string",
				Name:            "string",
				Operator:        "string",
				TimeAggregation: "string",
				Dimensions: []monitor.MetricDimension{
					{
						Name:     "string",
						Operator: "string",
						Values: []string{
							"string",
						},
					},
				},
				IgnoreDataBefore:     "string",
				MetricNamespace:      "string",
				SkipMetricValidation: false,
			},
		},
	},
	Severity:            pulumi.Int(0),
	Enabled:             pulumi.Bool(false),
	EvaluationFrequency: pulumi.String("string"),
	Scopes: pulumi.StringArray{
		pulumi.String("string"),
	},
	Description: pulumi.String("string"),
	RuleName:    pulumi.String("string"),
	Location:    pulumi.String("string"),
	Actions: monitor.MetricAlertActionArray{
		&monitor.MetricAlertActionArgs{
			ActionGroupId: pulumi.String("string"),
			WebHookProperties: pulumi.StringMap{
				"string": pulumi.String("string"),
			},
		},
	},
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TargetResourceRegion: pulumi.String("string"),
	TargetResourceType:   pulumi.String("string"),
	AutoMitigate:         pulumi.Bool(false),
})
var metricAlertResource = new MetricAlert("metricAlertResource", MetricAlertArgs.builder()
    .resourceGroupName("string")
    .windowSize("string")
    .criteria(MetricAlertMultipleResourceMultipleMetricCriteriaArgs.builder()
        .odataType("Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria")
        .allOf(DynamicMetricCriteriaArgs.builder()
            .alertSensitivity("string")
            .criterionType("DynamicThresholdCriterion")
            .failingPeriods(DynamicThresholdFailingPeriodsArgs.builder()
                .minFailingPeriodsToAlert(0)
                .numberOfEvaluationPeriods(0)
                .build())
            .metricName("string")
            .name("string")
            .operator("string")
            .timeAggregation("string")
            .dimensions(MetricDimensionArgs.builder()
                .name("string")
                .operator("string")
                .values("string")
                .build())
            .ignoreDataBefore("string")
            .metricNamespace("string")
            .skipMetricValidation(false)
            .build())
        .build())
    .severity(0)
    .enabled(false)
    .evaluationFrequency("string")
    .scopes("string")
    .description("string")
    .ruleName("string")
    .location("string")
    .actions(MetricAlertActionArgs.builder()
        .actionGroupId("string")
        .webHookProperties(Map.of("string", "string"))
        .build())
    .tags(Map.of("string", "string"))
    .targetResourceRegion("string")
    .targetResourceType("string")
    .autoMitigate(false)
    .build());
metric_alert_resource = azure_native.monitor.MetricAlert("metricAlertResource",
    resource_group_name="string",
    window_size="string",
    criteria={
        "odata_type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        "all_of": [{
            "alert_sensitivity": "string",
            "criterion_type": "DynamicThresholdCriterion",
            "failing_periods": {
                "min_failing_periods_to_alert": 0,
                "number_of_evaluation_periods": 0,
            },
            "metric_name": "string",
            "name": "string",
            "operator": "string",
            "time_aggregation": "string",
            "dimensions": [{
                "name": "string",
                "operator": "string",
                "values": ["string"],
            }],
            "ignore_data_before": "string",
            "metric_namespace": "string",
            "skip_metric_validation": False,
        }],
    },
    severity=0,
    enabled=False,
    evaluation_frequency="string",
    scopes=["string"],
    description="string",
    rule_name="string",
    location="string",
    actions=[{
        "action_group_id": "string",
        "web_hook_properties": {
            "string": "string",
        },
    }],
    tags={
        "string": "string",
    },
    target_resource_region="string",
    target_resource_type="string",
    auto_mitigate=False)
const metricAlertResource = new azure_native.monitor.MetricAlert("metricAlertResource", {
    resourceGroupName: "string",
    windowSize: "string",
    criteria: {
        odataType: "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria",
        allOf: [{
            alertSensitivity: "string",
            criterionType: "DynamicThresholdCriterion",
            failingPeriods: {
                minFailingPeriodsToAlert: 0,
                numberOfEvaluationPeriods: 0,
            },
            metricName: "string",
            name: "string",
            operator: "string",
            timeAggregation: "string",
            dimensions: [{
                name: "string",
                operator: "string",
                values: ["string"],
            }],
            ignoreDataBefore: "string",
            metricNamespace: "string",
            skipMetricValidation: false,
        }],
    },
    severity: 0,
    enabled: false,
    evaluationFrequency: "string",
    scopes: ["string"],
    description: "string",
    ruleName: "string",
    location: "string",
    actions: [{
        actionGroupId: "string",
        webHookProperties: {
            string: "string",
        },
    }],
    tags: {
        string: "string",
    },
    targetResourceRegion: "string",
    targetResourceType: "string",
    autoMitigate: false,
});
type: azure-native:monitor:MetricAlert
properties:
    actions:
        - actionGroupId: string
          webHookProperties:
            string: string
    autoMitigate: false
    criteria:
        allOf:
            - alertSensitivity: string
              criterionType: DynamicThresholdCriterion
              dimensions:
                - name: string
                  operator: string
                  values:
                    - string
              failingPeriods:
                minFailingPeriodsToAlert: 0
                numberOfEvaluationPeriods: 0
              ignoreDataBefore: string
              metricName: string
              metricNamespace: string
              name: string
              operator: string
              skipMetricValidation: false
              timeAggregation: string
        odataType: Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria
    description: string
    enabled: false
    evaluationFrequency: string
    location: string
    resourceGroupName: string
    ruleName: string
    scopes:
        - string
    severity: 0
    tags:
        string: string
    targetResourceRegion: string
    targetResourceType: string
    windowSize: string
MetricAlert 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 MetricAlert resource accepts the following input properties:
- Criteria
Pulumi.Azure | Pulumi.Native. Monitor. Inputs. Metric Alert Multiple Resource Multiple Metric Criteria Azure | Pulumi.Native. Monitor. Inputs. Metric Alert Single Resource Multiple Metric Criteria Azure Native. Monitor. Inputs. Webtest Location Availability Criteria 
- defines the specific alert criteria information.
- Enabled bool
- the flag that indicates whether the metric alert is enabled.
- EvaluationFrequency string
- how often the metric alert is evaluated represented in ISO 8601 duration format.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Scopes List<string>
- the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.
- Severity int
- Alert severity {0, 1, 2, 3, 4}
- WindowSize string
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
- Actions
List<Pulumi.Azure Native. Monitor. Inputs. Metric Alert Action> 
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- AutoMitigate bool
- the flag that indicates whether the alert should be auto resolved or not. The default is true.
- Description string
- the description of the metric alert that will be included in the alert email.
- Location string
- Resource location
- RuleName string
- The name of the rule.
- Dictionary<string, string>
- Resource tags
- TargetResource stringRegion 
- the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- TargetResource stringType 
- the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- Criteria
MetricAlert | MetricMultiple Resource Multiple Metric Criteria Args Alert | WebtestSingle Resource Multiple Metric Criteria Args Location Availability Criteria Args 
- defines the specific alert criteria information.
- Enabled bool
- the flag that indicates whether the metric alert is enabled.
- EvaluationFrequency string
- how often the metric alert is evaluated represented in ISO 8601 duration format.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Scopes []string
- the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.
- Severity int
- Alert severity {0, 1, 2, 3, 4}
- WindowSize string
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
- Actions
[]MetricAlert Action Args 
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- AutoMitigate bool
- the flag that indicates whether the alert should be auto resolved or not. The default is true.
- Description string
- the description of the metric alert that will be included in the alert email.
- Location string
- Resource location
- RuleName string
- The name of the rule.
- map[string]string
- Resource tags
- TargetResource stringRegion 
- the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- TargetResource stringType 
- the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- criteria
MetricAlert | MetricMultiple Resource Multiple Metric Criteria Alert | WebtestSingle Resource Multiple Metric Criteria Location Availability Criteria 
- defines the specific alert criteria information.
- enabled Boolean
- the flag that indicates whether the metric alert is enabled.
- evaluationFrequency String
- how often the metric alert is evaluated represented in ISO 8601 duration format.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scopes List<String>
- the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.
- severity Integer
- Alert severity {0, 1, 2, 3, 4}
- windowSize String
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
- actions
List<MetricAlert Action> 
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- autoMitigate Boolean
- the flag that indicates whether the alert should be auto resolved or not. The default is true.
- description String
- the description of the metric alert that will be included in the alert email.
- location String
- Resource location
- ruleName String
- The name of the rule.
- Map<String,String>
- Resource tags
- targetResource StringRegion 
- the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- targetResource StringType 
- the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- criteria
MetricAlert | MetricMultiple Resource Multiple Metric Criteria Alert | WebtestSingle Resource Multiple Metric Criteria Location Availability Criteria 
- defines the specific alert criteria information.
- enabled boolean
- the flag that indicates whether the metric alert is enabled.
- evaluationFrequency string
- how often the metric alert is evaluated represented in ISO 8601 duration format.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- scopes string[]
- the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.
- severity number
- Alert severity {0, 1, 2, 3, 4}
- windowSize string
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
- actions
MetricAlert Action[] 
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- autoMitigate boolean
- the flag that indicates whether the alert should be auto resolved or not. The default is true.
- description string
- the description of the metric alert that will be included in the alert email.
- location string
- Resource location
- ruleName string
- The name of the rule.
- {[key: string]: string}
- Resource tags
- targetResource stringRegion 
- the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- targetResource stringType 
- the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- criteria
MetricAlert | MetricMultiple Resource Multiple Metric Criteria Args Alert | WebtestSingle Resource Multiple Metric Criteria Args Location Availability Criteria Args 
- defines the specific alert criteria information.
- enabled bool
- the flag that indicates whether the metric alert is enabled.
- evaluation_frequency str
- how often the metric alert is evaluated represented in ISO 8601 duration format.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- scopes Sequence[str]
- the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.
- severity int
- Alert severity {0, 1, 2, 3, 4}
- window_size str
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
- actions
Sequence[MetricAlert Action Args] 
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- auto_mitigate bool
- the flag that indicates whether the alert should be auto resolved or not. The default is true.
- description str
- the description of the metric alert that will be included in the alert email.
- location str
- Resource location
- rule_name str
- The name of the rule.
- Mapping[str, str]
- Resource tags
- target_resource_ strregion 
- the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- target_resource_ strtype 
- the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- criteria Property Map | Property Map | Property Map
- defines the specific alert criteria information.
- enabled Boolean
- the flag that indicates whether the metric alert is enabled.
- evaluationFrequency String
- how often the metric alert is evaluated represented in ISO 8601 duration format.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- scopes List<String>
- the list of resource id's that this metric alert is scoped to. You cannot change the scope of a metric rule based on logs.
- severity Number
- Alert severity {0, 1, 2, 3, 4}
- windowSize String
- the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
- actions List<Property Map>
- the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
- autoMitigate Boolean
- the flag that indicates whether the alert should be auto resolved or not. The default is true.
- description String
- the description of the metric alert that will be included in the alert email.
- location String
- Resource location
- ruleName String
- The name of the rule.
- Map<String>
- Resource tags
- targetResource StringRegion 
- the region of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
- targetResource StringType 
- the resource type of the target resource(s) on which the alert is created/updated. Mandatory if the scope contains a subscription, resource group, or more than one resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the MetricAlert resource produces the following output properties:
- AzureApi stringVersion 
- The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsMigrated bool
- the value indicating whether this alert rule is migrated.
- LastUpdated stringTime 
- Last time the rule was updated in ISO8601 format.
- Name string
- Azure resource name
- Type string
- Azure resource type
- AzureApi stringVersion 
- The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsMigrated bool
- the value indicating whether this alert rule is migrated.
- LastUpdated stringTime 
- Last time the rule was updated in ISO8601 format.
- Name string
- Azure resource name
- Type string
- Azure resource type
- azureApi StringVersion 
- The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- isMigrated Boolean
- the value indicating whether this alert rule is migrated.
- lastUpdated StringTime 
- Last time the rule was updated in ISO8601 format.
- name String
- Azure resource name
- type String
- Azure resource type
- azureApi stringVersion 
- The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- isMigrated boolean
- the value indicating whether this alert rule is migrated.
- lastUpdated stringTime 
- Last time the rule was updated in ISO8601 format.
- name string
- Azure resource name
- type string
- Azure resource type
- azure_api_ strversion 
- The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- is_migrated bool
- the value indicating whether this alert rule is migrated.
- last_updated_ strtime 
- Last time the rule was updated in ISO8601 format.
- name str
- Azure resource name
- type str
- Azure resource type
- azureApi StringVersion 
- The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- isMigrated Boolean
- the value indicating whether this alert rule is migrated.
- lastUpdated StringTime 
- Last time the rule was updated in ISO8601 format.
- name String
- Azure resource name
- type String
- Azure resource type
Supporting Types
AggregationTypeEnum, AggregationTypeEnumArgs      
- Average
- Average
- Count
- Count
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- AggregationType Enum Average 
- Average
- AggregationType Enum Count 
- Count
- AggregationType Enum Minimum 
- Minimum
- AggregationType Enum Maximum 
- Maximum
- AggregationType Enum Total 
- Total
- Average
- Average
- Count
- Count
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- Average
- Average
- Count
- Count
- Minimum
- Minimum
- Maximum
- Maximum
- Total
- Total
- AVERAGE
- Average
- COUNT
- Count
- MINIMUM
- Minimum
- MAXIMUM
- Maximum
- TOTAL
- Total
- "Average"
- Average
- "Count"
- Count
- "Minimum"
- Minimum
- "Maximum"
- Maximum
- "Total"
- Total
DynamicMetricCriteria, DynamicMetricCriteriaArgs      
Criterion for dynamic threshold.- AlertSensitivity string | Pulumi.Azure Native. Monitor. Dynamic Threshold Sensitivity 
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- FailingPeriods Pulumi.Azure Native. Monitor. Inputs. Dynamic Threshold Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator
string | Pulumi.Azure Native. Monitor. Dynamic Threshold Operator 
- The operator used to compare the metric value against the threshold.
- TimeAggregation string | Pulumi.Azure Native. Monitor. Aggregation Type Enum 
- the criteria time aggregation types.
- Dimensions
List<Pulumi.Azure Native. Monitor. Inputs. Metric Dimension> 
- List of dimension conditions.
- IgnoreData stringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- AlertSensitivity string | DynamicThreshold Sensitivity 
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- FailingPeriods DynamicThreshold Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator
string | DynamicThreshold Operator 
- The operator used to compare the metric value against the threshold.
- TimeAggregation string | AggregationType Enum 
- the criteria time aggregation types.
- Dimensions
[]MetricDimension 
- List of dimension conditions.
- IgnoreData stringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alertSensitivity String | DynamicThreshold Sensitivity 
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failingPeriods DynamicThreshold Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator
String | DynamicThreshold Operator 
- The operator used to compare the metric value against the threshold.
- timeAggregation String | AggregationType Enum 
- the criteria time aggregation types.
- dimensions
List<MetricDimension> 
- List of dimension conditions.
- ignoreData StringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alertSensitivity string | DynamicThreshold Sensitivity 
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failingPeriods DynamicThreshold Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metricName string
- Name of the metric.
- name string
- Name of the criteria.
- operator
string | DynamicThreshold Operator 
- The operator used to compare the metric value against the threshold.
- timeAggregation string | AggregationType Enum 
- the criteria time aggregation types.
- dimensions
MetricDimension[] 
- List of dimension conditions.
- ignoreData stringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metricNamespace string
- Namespace of the metric.
- skipMetric booleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alert_sensitivity str | DynamicThreshold Sensitivity 
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failing_periods DynamicThreshold Failing Periods 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metric_name str
- Name of the metric.
- name str
- Name of the criteria.
- operator
str | DynamicThreshold Operator 
- The operator used to compare the metric value against the threshold.
- time_aggregation str | AggregationType Enum 
- the criteria time aggregation types.
- dimensions
Sequence[MetricDimension] 
- List of dimension conditions.
- ignore_data_ strbefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metric_namespace str
- Namespace of the metric.
- skip_metric_ boolvalidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alertSensitivity String | "Low" | "Medium" | "High"
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failingPeriods Property Map
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator
String | "GreaterThan" | "Less Than" | "Greater Or Less Than" 
- The operator used to compare the metric value against the threshold.
- timeAggregation String | "Average" | "Count" | "Minimum" | "Maximum" | "Total"
- the criteria time aggregation types.
- dimensions List<Property Map>
- List of dimension conditions.
- ignoreData StringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
DynamicMetricCriteriaResponse, DynamicMetricCriteriaResponseArgs        
Criterion for dynamic threshold.- AlertSensitivity string
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- FailingPeriods Pulumi.Azure Native. Monitor. Inputs. Dynamic Threshold Failing Periods Response 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator string
- The operator used to compare the metric value against the threshold.
- TimeAggregation string
- the criteria time aggregation types.
- Dimensions
List<Pulumi.Azure Native. Monitor. Inputs. Metric Dimension Response> 
- List of dimension conditions.
- IgnoreData stringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- AlertSensitivity string
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- FailingPeriods DynamicThreshold Failing Periods Response 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator string
- The operator used to compare the metric value against the threshold.
- TimeAggregation string
- the criteria time aggregation types.
- Dimensions
[]MetricDimension Response 
- List of dimension conditions.
- IgnoreData stringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alertSensitivity String
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failingPeriods DynamicThreshold Failing Periods Response 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator String
- The operator used to compare the metric value against the threshold.
- timeAggregation String
- the criteria time aggregation types.
- dimensions
List<MetricDimension Response> 
- List of dimension conditions.
- ignoreData StringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alertSensitivity string
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failingPeriods DynamicThreshold Failing Periods Response 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metricName string
- Name of the metric.
- name string
- Name of the criteria.
- operator string
- The operator used to compare the metric value against the threshold.
- timeAggregation string
- the criteria time aggregation types.
- dimensions
MetricDimension Response[] 
- List of dimension conditions.
- ignoreData stringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metricNamespace string
- Namespace of the metric.
- skipMetric booleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alert_sensitivity str
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failing_periods DynamicThreshold Failing Periods Response 
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metric_name str
- Name of the metric.
- name str
- Name of the criteria.
- operator str
- The operator used to compare the metric value against the threshold.
- time_aggregation str
- the criteria time aggregation types.
- dimensions
Sequence[MetricDimension Response] 
- List of dimension conditions.
- ignore_data_ strbefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metric_namespace str
- Namespace of the metric.
- skip_metric_ boolvalidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- alertSensitivity String
- The extent of deviation required to trigger an alert. This will affect how tight the threshold is to the metric series pattern.
- failingPeriods Property Map
- The minimum number of violations required within the selected lookback time window required to raise an alert.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator String
- The operator used to compare the metric value against the threshold.
- timeAggregation String
- the criteria time aggregation types.
- dimensions List<Property Map>
- List of dimension conditions.
- ignoreData StringBefore 
- Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format)
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
DynamicThresholdFailingPeriods, DynamicThresholdFailingPeriodsArgs        
The minimum number of violations required within the selected lookback time window required to raise an alert.- MinFailing doublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- NumberOf doubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- MinFailing float64Periods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- NumberOf float64Evaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- minFailing DoublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- numberOf DoubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- minFailing numberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- numberOf numberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- min_failing_ floatperiods_ to_ alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- number_of_ floatevaluation_ periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- minFailing NumberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- numberOf NumberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
DynamicThresholdFailingPeriodsResponse, DynamicThresholdFailingPeriodsResponseArgs          
The minimum number of violations required within the selected lookback time window required to raise an alert.- MinFailing doublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- NumberOf doubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- MinFailing float64Periods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- NumberOf float64Evaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- minFailing DoublePeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- numberOf DoubleEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- minFailing numberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- numberOf numberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- min_failing_ floatperiods_ to_ alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- number_of_ floatevaluation_ periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
- minFailing NumberPeriods To Alert 
- The number of violations to trigger an alert. Should be smaller or equal to numberOfEvaluationPeriods.
- numberOf NumberEvaluation Periods 
- The number of aggregated lookback points. The lookback time window is calculated based on the aggregation granularity (windowSize) and the selected number of aggregated points.
DynamicThresholdOperator, DynamicThresholdOperatorArgs      
- GreaterThan 
- GreaterThan
- LessThan 
- LessThan
- GreaterOr Less Than 
- GreaterOrLessThan
- DynamicThreshold Operator Greater Than 
- GreaterThan
- DynamicThreshold Operator Less Than 
- LessThan
- DynamicThreshold Operator Greater Or Less Than 
- GreaterOrLessThan
- GreaterThan 
- GreaterThan
- LessThan 
- LessThan
- GreaterOr Less Than 
- GreaterOrLessThan
- GreaterThan 
- GreaterThan
- LessThan 
- LessThan
- GreaterOr Less Than 
- GreaterOrLessThan
- GREATER_THAN
- GreaterThan
- LESS_THAN
- LessThan
- GREATER_OR_LESS_THAN
- GreaterOrLessThan
- "GreaterThan" 
- GreaterThan
- "LessThan" 
- LessThan
- "GreaterOr Less Than" 
- GreaterOrLessThan
DynamicThresholdSensitivity, DynamicThresholdSensitivityArgs      
- Low
- Low
- Medium
- Medium
- High
- High
- DynamicThreshold Sensitivity Low 
- Low
- DynamicThreshold Sensitivity Medium 
- Medium
- DynamicThreshold Sensitivity High 
- High
- Low
- Low
- Medium
- Medium
- High
- High
- Low
- Low
- Medium
- Medium
- High
- High
- LOW
- Low
- MEDIUM
- Medium
- HIGH
- High
- "Low"
- Low
- "Medium"
- Medium
- "High"
- High
MetricAlertAction, MetricAlertActionArgs      
An alert action.- ActionGroup stringId 
- the id of the action group to use.
- WebHook Dictionary<string, string>Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- ActionGroup stringId 
- the id of the action group to use.
- WebHook map[string]stringProperties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- actionGroup StringId 
- the id of the action group to use.
- webHook Map<String,String>Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- actionGroup stringId 
- the id of the action group to use.
- webHook {[key: string]: string}Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- action_group_ strid 
- the id of the action group to use.
- web_hook_ Mapping[str, str]properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- actionGroup StringId 
- the id of the action group to use.
- webHook Map<String>Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
MetricAlertActionResponse, MetricAlertActionResponseArgs        
An alert action.- ActionGroup stringId 
- the id of the action group to use.
- WebHook Dictionary<string, string>Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- ActionGroup stringId 
- the id of the action group to use.
- WebHook map[string]stringProperties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- actionGroup StringId 
- the id of the action group to use.
- webHook Map<String,String>Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- actionGroup stringId 
- the id of the action group to use.
- webHook {[key: string]: string}Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- action_group_ strid 
- the id of the action group to use.
- web_hook_ Mapping[str, str]properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
- actionGroup StringId 
- the id of the action group to use.
- webHook Map<String>Properties 
- This field allows specifying custom properties, which would be appended to the alert payload sent as input to the webhook.
MetricAlertMultipleResourceMultipleMetricCriteria, MetricAlertMultipleResourceMultipleMetricCriteriaArgs              
Specifies the metric alert criteria for multiple resource that has multiple metric criteria.- AllOf List<Union<Pulumi.Azure Native. Monitor. Inputs. Dynamic Metric Criteria, Pulumi. Azure Native. Monitor. Inputs. Metric Criteria>> 
- the list of multiple metric criteria for this 'all of' operation.
- AllOf []interface{}
- the list of multiple metric criteria for this 'all of' operation.
- allOf List<Either<DynamicMetric Criteria,Metric Criteria>> 
- the list of multiple metric criteria for this 'all of' operation.
- allOf (DynamicMetric Criteria | Metric Criteria)[] 
- the list of multiple metric criteria for this 'all of' operation.
- all_of Sequence[Union[DynamicMetric Criteria, Metric Criteria]] 
- the list of multiple metric criteria for this 'all of' operation.
- allOf List<Property Map | Property Map>
- the list of multiple metric criteria for this 'all of' operation.
MetricAlertMultipleResourceMultipleMetricCriteriaResponse, MetricAlertMultipleResourceMultipleMetricCriteriaResponseArgs                
Specifies the metric alert criteria for multiple resource that has multiple metric criteria.- AllOf List<Union<Pulumi.Azure Native. Monitor. Inputs. Dynamic Metric Criteria Response, Pulumi. Azure Native. Monitor. Inputs. Metric Criteria Response>> 
- the list of multiple metric criteria for this 'all of' operation.
- AllOf []interface{}
- the list of multiple metric criteria for this 'all of' operation.
- allOf List<Either<DynamicMetric Criteria Response,Metric Criteria Response>> 
- the list of multiple metric criteria for this 'all of' operation.
- allOf (DynamicMetric Criteria Response | Metric Criteria Response)[] 
- the list of multiple metric criteria for this 'all of' operation.
- all_of Sequence[Union[DynamicMetric Criteria Response, Metric Criteria Response]] 
- the list of multiple metric criteria for this 'all of' operation.
- allOf List<Property Map | Property Map>
- the list of multiple metric criteria for this 'all of' operation.
MetricAlertSingleResourceMultipleMetricCriteria, MetricAlertSingleResourceMultipleMetricCriteriaArgs              
Specifies the metric alert criteria for a single resource that has multiple metric criteria.- AllOf List<Pulumi.Azure Native. Monitor. Inputs. Metric Criteria> 
- The list of metric criteria for this 'all of' operation.
- AllOf []MetricCriteria 
- The list of metric criteria for this 'all of' operation.
- allOf List<MetricCriteria> 
- The list of metric criteria for this 'all of' operation.
- allOf MetricCriteria[] 
- The list of metric criteria for this 'all of' operation.
- all_of Sequence[MetricCriteria] 
- The list of metric criteria for this 'all of' operation.
- allOf List<Property Map>
- The list of metric criteria for this 'all of' operation.
MetricAlertSingleResourceMultipleMetricCriteriaResponse, MetricAlertSingleResourceMultipleMetricCriteriaResponseArgs                
Specifies the metric alert criteria for a single resource that has multiple metric criteria.- AllOf List<Pulumi.Azure Native. Monitor. Inputs. Metric Criteria Response> 
- The list of metric criteria for this 'all of' operation.
- AllOf []MetricCriteria Response 
- The list of metric criteria for this 'all of' operation.
- allOf List<MetricCriteria Response> 
- The list of metric criteria for this 'all of' operation.
- allOf MetricCriteria Response[] 
- The list of metric criteria for this 'all of' operation.
- all_of Sequence[MetricCriteria Response] 
- The list of metric criteria for this 'all of' operation.
- allOf List<Property Map>
- The list of metric criteria for this 'all of' operation.
MetricCriteria, MetricCriteriaArgs    
Criterion to filter metrics.- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator
string | Pulumi.Azure Native. Monitor. Operator 
- the criteria operator.
- Threshold double
- the criteria threshold value that activates the alert.
- TimeAggregation string | Pulumi.Azure Native. Monitor. Aggregation Type Enum 
- the criteria time aggregation types.
- Dimensions
List<Pulumi.Azure Native. Monitor. Inputs. Metric Dimension> 
- List of dimension conditions.
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator string | Operator
- the criteria operator.
- Threshold float64
- the criteria threshold value that activates the alert.
- TimeAggregation string | AggregationType Enum 
- the criteria time aggregation types.
- Dimensions
[]MetricDimension 
- List of dimension conditions.
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator String | Operator
- the criteria operator.
- threshold Double
- the criteria threshold value that activates the alert.
- timeAggregation String | AggregationType Enum 
- the criteria time aggregation types.
- dimensions
List<MetricDimension> 
- List of dimension conditions.
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metricName string
- Name of the metric.
- name string
- Name of the criteria.
- operator string | Operator
- the criteria operator.
- threshold number
- the criteria threshold value that activates the alert.
- timeAggregation string | AggregationType Enum 
- the criteria time aggregation types.
- dimensions
MetricDimension[] 
- List of dimension conditions.
- metricNamespace string
- Namespace of the metric.
- skipMetric booleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metric_name str
- Name of the metric.
- name str
- Name of the criteria.
- operator str | Operator
- the criteria operator.
- threshold float
- the criteria threshold value that activates the alert.
- time_aggregation str | AggregationType Enum 
- the criteria time aggregation types.
- dimensions
Sequence[MetricDimension] 
- List of dimension conditions.
- metric_namespace str
- Namespace of the metric.
- skip_metric_ boolvalidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator
String | "Equals" | "GreaterThan" | "Greater Than Or Equal" | "Less Than" | "Less Than Or Equal" 
- the criteria operator.
- threshold Number
- the criteria threshold value that activates the alert.
- timeAggregation String | "Average" | "Count" | "Minimum" | "Maximum" | "Total"
- the criteria time aggregation types.
- dimensions List<Property Map>
- List of dimension conditions.
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
MetricCriteriaResponse, MetricCriteriaResponseArgs      
Criterion to filter metrics.- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator string
- the criteria operator.
- Threshold double
- the criteria threshold value that activates the alert.
- TimeAggregation string
- the criteria time aggregation types.
- Dimensions
List<Pulumi.Azure Native. Monitor. Inputs. Metric Dimension Response> 
- List of dimension conditions.
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- MetricName string
- Name of the metric.
- Name string
- Name of the criteria.
- Operator string
- the criteria operator.
- Threshold float64
- the criteria threshold value that activates the alert.
- TimeAggregation string
- the criteria time aggregation types.
- Dimensions
[]MetricDimension Response 
- List of dimension conditions.
- MetricNamespace string
- Namespace of the metric.
- SkipMetric boolValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator String
- the criteria operator.
- threshold Double
- the criteria threshold value that activates the alert.
- timeAggregation String
- the criteria time aggregation types.
- dimensions
List<MetricDimension Response> 
- List of dimension conditions.
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metricName string
- Name of the metric.
- name string
- Name of the criteria.
- operator string
- the criteria operator.
- threshold number
- the criteria threshold value that activates the alert.
- timeAggregation string
- the criteria time aggregation types.
- dimensions
MetricDimension Response[] 
- List of dimension conditions.
- metricNamespace string
- Namespace of the metric.
- skipMetric booleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metric_name str
- Name of the metric.
- name str
- Name of the criteria.
- operator str
- the criteria operator.
- threshold float
- the criteria threshold value that activates the alert.
- time_aggregation str
- the criteria time aggregation types.
- dimensions
Sequence[MetricDimension Response] 
- List of dimension conditions.
- metric_namespace str
- Namespace of the metric.
- skip_metric_ boolvalidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
- metricName String
- Name of the metric.
- name String
- Name of the criteria.
- operator String
- the criteria operator.
- threshold Number
- the criteria threshold value that activates the alert.
- timeAggregation String
- the criteria time aggregation types.
- dimensions List<Property Map>
- List of dimension conditions.
- metricNamespace String
- Namespace of the metric.
- skipMetric BooleanValidation 
- Allows creating an alert rule on a custom metric that isn't yet emitted, by causing the metric validation to be skipped.
MetricDimension, MetricDimensionArgs    
Specifies a metric dimension.MetricDimensionResponse, MetricDimensionResponseArgs      
Specifies a metric dimension.Operator, OperatorArgs  
- EqualsValue 
- Equals
- GreaterThan 
- GreaterThan
- GreaterThan Or Equal 
- GreaterThanOrEqual
- LessThan 
- LessThan
- LessThan Or Equal 
- LessThanOrEqual
- OperatorEquals 
- Equals
- OperatorGreater Than 
- GreaterThan
- OperatorGreater Than Or Equal 
- GreaterThanOrEqual
- OperatorLess Than 
- LessThan
- OperatorLess Than Or Equal 
- LessThanOrEqual
- Equals
- Equals
- GreaterThan 
- GreaterThan
- GreaterThan Or Equal 
- GreaterThanOrEqual
- LessThan 
- LessThan
- LessThan Or Equal 
- LessThanOrEqual
- Equals
- Equals
- GreaterThan 
- GreaterThan
- GreaterThan Or Equal 
- GreaterThanOrEqual
- LessThan 
- LessThan
- LessThan Or Equal 
- LessThanOrEqual
- EQUALS
- Equals
- GREATER_THAN
- GreaterThan
- GREATER_THAN_OR_EQUAL
- GreaterThanOrEqual
- LESS_THAN
- LessThan
- LESS_THAN_OR_EQUAL
- LessThanOrEqual
- "Equals"
- Equals
- "GreaterThan" 
- GreaterThan
- "GreaterThan Or Equal" 
- GreaterThanOrEqual
- "LessThan" 
- LessThan
- "LessThan Or Equal" 
- LessThanOrEqual
WebtestLocationAvailabilityCriteria, WebtestLocationAvailabilityCriteriaArgs        
Specifies the metric alert rule criteria for a web test resource.- ComponentId string
- The Application Insights resource Id.
- FailedLocation doubleCount 
- The number of failed locations.
- WebTest stringId 
- The Application Insights web test Id.
- ComponentId string
- The Application Insights resource Id.
- FailedLocation float64Count 
- The number of failed locations.
- WebTest stringId 
- The Application Insights web test Id.
- componentId String
- The Application Insights resource Id.
- failedLocation DoubleCount 
- The number of failed locations.
- webTest StringId 
- The Application Insights web test Id.
- componentId string
- The Application Insights resource Id.
- failedLocation numberCount 
- The number of failed locations.
- webTest stringId 
- The Application Insights web test Id.
- component_id str
- The Application Insights resource Id.
- failed_location_ floatcount 
- The number of failed locations.
- web_test_ strid 
- The Application Insights web test Id.
- componentId String
- The Application Insights resource Id.
- failedLocation NumberCount 
- The number of failed locations.
- webTest StringId 
- The Application Insights web test Id.
WebtestLocationAvailabilityCriteriaResponse, WebtestLocationAvailabilityCriteriaResponseArgs          
Specifies the metric alert rule criteria for a web test resource.- ComponentId string
- The Application Insights resource Id.
- FailedLocation doubleCount 
- The number of failed locations.
- WebTest stringId 
- The Application Insights web test Id.
- ComponentId string
- The Application Insights resource Id.
- FailedLocation float64Count 
- The number of failed locations.
- WebTest stringId 
- The Application Insights web test Id.
- componentId String
- The Application Insights resource Id.
- failedLocation DoubleCount 
- The number of failed locations.
- webTest StringId 
- The Application Insights web test Id.
- componentId string
- The Application Insights resource Id.
- failedLocation numberCount 
- The number of failed locations.
- webTest stringId 
- The Application Insights web test Id.
- component_id str
- The Application Insights resource Id.
- failed_location_ floatcount 
- The number of failed locations.
- web_test_ strid 
- The Application Insights web test Id.
- componentId String
- The Application Insights resource Id.
- failedLocation NumberCount 
- The number of failed locations.
- webTest StringId 
- The Application Insights web test Id.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:monitor:MetricAlert webtest-name-example /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
