1. Packages
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. cms
  6. AlertRuleV2
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi
alicloud logo
Viewing docs for Alibaba Cloud v3.105.0
published on Thursday, Jul 16, 2026 by Pulumi

    Provides a Cms Alert Rule V2 resource.

    CloudMonitor 2.0 alert rules (Unified Action V2 OpenAPI, based on ManageAlertRules and QueryAlertRules).

    For information about Cms Alert Rule V2 and how to use it, see What is Alert Rule V2.

    NOTE: Available since v1.285.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const _default = new alicloud.cms.AlertRuleV2("default", {
        contentTemplate: "umodel example alert on ${metric}",
        scheduleConfig: {
            type: "FIXED",
            intervalSecs: 60,
        },
        datasourceConfig: {
            type: "UMODEL",
        },
        actionIntegrationConfig: {
            enabled: false,
        },
        armsIntegrationConfig: {
            enabled: false,
        },
        queryConfig: {
            entityType: "instance",
            type: "UMODEL_METRICSET_QUERY",
            entityDomain: "ecs",
            metric: "CPUUtilization",
            labelFilters: [
                {
                    operator: "=",
                    value: "web-server",
                    name: "app",
                },
                {
                    operator: "=",
                    value: "production",
                    name: "env",
                },
            ],
            metricSet: "acs_ecs_dashboard",
        },
        displayName: "regression-umodel-10",
        enabled: true,
        notifyConfig: {
            type: "DIRECT_NOTIFY",
            channels: [{
                type: "GROUP",
                identifiers: ["regression-example"],
            }],
        },
        conditionConfig: {
            operator: "GT",
            type: "UMODEL_METRICSET_CONDITION",
            severity: "CRITICAL",
            durationSecs: 60,
            threshold: 90,
        },
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.cms.AlertRuleV2("default",
        content_template="umodel example alert on ${metric}",
        schedule_config={
            "type": "FIXED",
            "interval_secs": 60,
        },
        datasource_config={
            "type": "UMODEL",
        },
        action_integration_config={
            "enabled": False,
        },
        arms_integration_config={
            "enabled": False,
        },
        query_config={
            "entity_type": "instance",
            "type": "UMODEL_METRICSET_QUERY",
            "entity_domain": "ecs",
            "metric": "CPUUtilization",
            "label_filters": [
                {
                    "operator": "=",
                    "value": "web-server",
                    "name": "app",
                },
                {
                    "operator": "=",
                    "value": "production",
                    "name": "env",
                },
            ],
            "metric_set": "acs_ecs_dashboard",
        },
        display_name="regression-umodel-10",
        enabled=True,
        notify_config={
            "type": "DIRECT_NOTIFY",
            "channels": [{
                "type": "GROUP",
                "identifiers": ["regression-example"],
            }],
        },
        condition_config={
            "operator": "GT",
            "type": "UMODEL_METRICSET_CONDITION",
            "severity": "CRITICAL",
            "duration_secs": 60,
            "threshold": float(90),
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cms"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := cms.NewAlertRuleV2(ctx, "default", &cms.AlertRuleV2Args{
    			ContentTemplate: pulumi.String("umodel example alert on ${metric}"),
    			ScheduleConfig: &cms.AlertRuleV2ScheduleConfigArgs{
    				Type:         pulumi.String("FIXED"),
    				IntervalSecs: pulumi.Int(60),
    			},
    			DatasourceConfig: &cms.AlertRuleV2DatasourceConfigArgs{
    				Type: pulumi.String("UMODEL"),
    			},
    			ActionIntegrationConfig: &cms.AlertRuleV2ActionIntegrationConfigArgs{
    				Enabled: pulumi.Bool(false),
    			},
    			ArmsIntegrationConfig: &cms.AlertRuleV2ArmsIntegrationConfigArgs{
    				Enabled: pulumi.Bool(false),
    			},
    			QueryConfig: &cms.AlertRuleV2QueryConfigArgs{
    				EntityType:   pulumi.String("instance"),
    				Type:         pulumi.String("UMODEL_METRICSET_QUERY"),
    				EntityDomain: pulumi.String("ecs"),
    				Metric:       pulumi.String("CPUUtilization"),
    				LabelFilters: cms.AlertRuleV2QueryConfigLabelFilterArray{
    					&cms.AlertRuleV2QueryConfigLabelFilterArgs{
    						Operator: pulumi.String("="),
    						Value:    pulumi.String("web-server"),
    						Name:     pulumi.String("app"),
    					},
    					&cms.AlertRuleV2QueryConfigLabelFilterArgs{
    						Operator: pulumi.String("="),
    						Value:    pulumi.String("production"),
    						Name:     pulumi.String("env"),
    					},
    				},
    				MetricSet: pulumi.String("acs_ecs_dashboard"),
    			},
    			DisplayName: pulumi.String("regression-umodel-10"),
    			Enabled:     pulumi.Bool(true),
    			NotifyConfig: &cms.AlertRuleV2NotifyConfigArgs{
    				Type: pulumi.String("DIRECT_NOTIFY"),
    				Channels: cms.AlertRuleV2NotifyConfigChannelArray{
    					&cms.AlertRuleV2NotifyConfigChannelArgs{
    						Type: pulumi.String("GROUP"),
    						Identifiers: pulumi.StringArray{
    							pulumi.String("regression-example"),
    						},
    					},
    				},
    			},
    			ConditionConfig: &cms.AlertRuleV2ConditionConfigArgs{
    				Operator:     pulumi.String("GT"),
    				Type:         pulumi.String("UMODEL_METRICSET_CONDITION"),
    				Severity:     pulumi.String("CRITICAL"),
    				DurationSecs: pulumi.Int(60),
    				Threshold:    pulumi.Float64(90),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = new AliCloud.Cms.AlertRuleV2("default", new()
        {
            ContentTemplate = "umodel example alert on ${metric}",
            ScheduleConfig = new AliCloud.Cms.Inputs.AlertRuleV2ScheduleConfigArgs
            {
                Type = "FIXED",
                IntervalSecs = 60,
            },
            DatasourceConfig = new AliCloud.Cms.Inputs.AlertRuleV2DatasourceConfigArgs
            {
                Type = "UMODEL",
            },
            ActionIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ActionIntegrationConfigArgs
            {
                Enabled = false,
            },
            ArmsIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ArmsIntegrationConfigArgs
            {
                Enabled = false,
            },
            QueryConfig = new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigArgs
            {
                EntityType = "instance",
                Type = "UMODEL_METRICSET_QUERY",
                EntityDomain = "ecs",
                Metric = "CPUUtilization",
                LabelFilters = new[]
                {
                    new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigLabelFilterArgs
                    {
                        Operator = "=",
                        Value = "web-server",
                        Name = "app",
                    },
                    new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigLabelFilterArgs
                    {
                        Operator = "=",
                        Value = "production",
                        Name = "env",
                    },
                },
                MetricSet = "acs_ecs_dashboard",
            },
            DisplayName = "regression-umodel-10",
            Enabled = true,
            NotifyConfig = new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigArgs
            {
                Type = "DIRECT_NOTIFY",
                Channels = new[]
                {
                    new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigChannelArgs
                    {
                        Type = "GROUP",
                        Identifiers = new[]
                        {
                            "regression-example",
                        },
                    },
                },
            },
            ConditionConfig = new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigArgs
            {
                Operator = "GT",
                Type = "UMODEL_METRICSET_CONDITION",
                Severity = "CRITICAL",
                DurationSecs = 60,
                Threshold = 90,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.cms.AlertRuleV2;
    import com.pulumi.alicloud.cms.AlertRuleV2Args;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2ScheduleConfigArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2DatasourceConfigArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2ActionIntegrationConfigArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2ArmsIntegrationConfigArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2QueryConfigArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2QueryConfigLabelFilterArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2NotifyConfigArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2NotifyConfigChannelArgs;
    import com.pulumi.alicloud.cms.inputs.AlertRuleV2ConditionConfigArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            var default_ = new AlertRuleV2("default", AlertRuleV2Args.builder()
                .contentTemplate("umodel example alert on ${metric}")
                .scheduleConfig(AlertRuleV2ScheduleConfigArgs.builder()
                    .type("FIXED")
                    .intervalSecs(60)
                    .build())
                .datasourceConfig(AlertRuleV2DatasourceConfigArgs.builder()
                    .type("UMODEL")
                    .build())
                .actionIntegrationConfig(AlertRuleV2ActionIntegrationConfigArgs.builder()
                    .enabled(false)
                    .build())
                .armsIntegrationConfig(AlertRuleV2ArmsIntegrationConfigArgs.builder()
                    .enabled(false)
                    .build())
                .queryConfig(AlertRuleV2QueryConfigArgs.builder()
                    .entityType("instance")
                    .type("UMODEL_METRICSET_QUERY")
                    .entityDomain("ecs")
                    .metric("CPUUtilization")
                    .labelFilters(                
                        AlertRuleV2QueryConfigLabelFilterArgs.builder()
                            .operator("=")
                            .value("web-server")
                            .name("app")
                            .build(),
                        AlertRuleV2QueryConfigLabelFilterArgs.builder()
                            .operator("=")
                            .value("production")
                            .name("env")
                            .build())
                    .metricSet("acs_ecs_dashboard")
                    .build())
                .displayName("regression-umodel-10")
                .enabled(true)
                .notifyConfig(AlertRuleV2NotifyConfigArgs.builder()
                    .type("DIRECT_NOTIFY")
                    .channels(AlertRuleV2NotifyConfigChannelArgs.builder()
                        .type("GROUP")
                        .identifiers("regression-example")
                        .build())
                    .build())
                .conditionConfig(AlertRuleV2ConditionConfigArgs.builder()
                    .operator("GT")
                    .type("UMODEL_METRICSET_CONDITION")
                    .severity("CRITICAL")
                    .durationSecs(60)
                    .threshold(90.0)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:cms:AlertRuleV2
        properties:
          contentTemplate: umodel example alert on $${metric}
          scheduleConfig:
            type: FIXED
            intervalSecs: '60'
          datasourceConfig:
            type: UMODEL
          actionIntegrationConfig:
            enabled: false
          armsIntegrationConfig:
            enabled: false
          queryConfig:
            entityType: instance
            type: UMODEL_METRICSET_QUERY
            entityDomain: ecs
            metric: CPUUtilization
            labelFilters:
              - operator: =
                value: web-server
                name: app
              - operator: =
                value: production
                name: env
            metricSet: acs_ecs_dashboard
          displayName: regression-umodel-10
          enabled: true
          notifyConfig:
            type: DIRECT_NOTIFY
            channels:
              - type: GROUP
                identifiers:
                  - regression-example
          conditionConfig:
            operator: GT
            type: UMODEL_METRICSET_CONDITION
            severity: CRITICAL
            durationSecs: '60'
            threshold: 90
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    resource "alicloud_cms_alertrulev2" "default" {
      content_template = "umodel example alert on $${metric}"
      schedule_config = {
        type          = "FIXED"
        interval_secs = "60"
      }
      datasource_config = {
        type = "UMODEL"
      }
      action_integration_config = {
        enabled = false
      }
      arms_integration_config = {
        enabled = false
      }
      query_config = {
        entity_type   = "instance"
        type          = "UMODEL_METRICSET_QUERY"
        entity_domain = "ecs"
        metric        = "CPUUtilization"
        label_filters = [{
          "operator" = "="
          "value"    = "web-server"
          "name"     = "app"
          }, {
          "operator" = "="
          "value"    = "production"
          "name"     = "env"
        }]
        metric_set = "acs_ecs_dashboard"
      }
      display_name = "regression-umodel-10"
      enabled      = true
      notify_config = {
        type = "DIRECT_NOTIFY"
        channels = [{
          "type"        = "GROUP"
          "identifiers" = ["regression-example"]
        }]
      }
      condition_config = {
        operator      = "GT"
        type          = "UMODEL_METRICSET_CONDITION"
        severity      = "CRITICAL"
        duration_secs = "60"
        threshold     = 90
      }
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    

    📚 Need more examples? VIEW MORE EXAMPLES

    Create AlertRuleV2 Resource

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

    Constructor syntax

    new AlertRuleV2(name: string, args?: AlertRuleV2Args, opts?: CustomResourceOptions);
    @overload
    def AlertRuleV2(resource_name: str,
                    args: Optional[AlertRuleV2Args] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertRuleV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    action_integration_config: Optional[AlertRuleV2ActionIntegrationConfigArgs] = None,
                    annotations: Optional[Mapping[str, str]] = None,
                    arms_integration_config: Optional[AlertRuleV2ArmsIntegrationConfigArgs] = None,
                    condition_config: Optional[AlertRuleV2ConditionConfigArgs] = None,
                    content_template: Optional[str] = None,
                    datasource_config: Optional[AlertRuleV2DatasourceConfigArgs] = None,
                    display_name: Optional[str] = None,
                    enabled: Optional[bool] = None,
                    labels: Optional[Mapping[str, str]] = None,
                    notify_config: Optional[AlertRuleV2NotifyConfigArgs] = None,
                    query_config: Optional[AlertRuleV2QueryConfigArgs] = None,
                    schedule_config: Optional[AlertRuleV2ScheduleConfigArgs] = None,
                    workspace: Optional[str] = None)
    func NewAlertRuleV2(ctx *Context, name string, args *AlertRuleV2Args, opts ...ResourceOption) (*AlertRuleV2, error)
    public AlertRuleV2(string name, AlertRuleV2Args? args = null, CustomResourceOptions? opts = null)
    public AlertRuleV2(String name, AlertRuleV2Args args)
    public AlertRuleV2(String name, AlertRuleV2Args args, CustomResourceOptions options)
    
    type: alicloud:cms:AlertRuleV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "alicloud_cms_alert_rule_v2" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AlertRuleV2Args
    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 AlertRuleV2Args
    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 AlertRuleV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertRuleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertRuleV2Args
    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 alertRuleV2Resource = new AliCloud.Cms.AlertRuleV2("alertRuleV2Resource", new()
    {
        ActionIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ActionIntegrationConfigArgs
        {
            Actions = new[]
            {
                "string",
            },
            Enabled = false,
        },
        Annotations = 
        {
            { "string", "string" },
        },
        ArmsIntegrationConfig = new AliCloud.Cms.Inputs.AlertRuleV2ArmsIntegrationConfigArgs
        {
            Enabled = false,
        },
        ConditionConfig = new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigArgs
        {
            Type = "string",
            NoDataPolicy = "string",
            Relation = "string",
            DurationSecs = 0,
            EscalationType = "string",
            ExpressEscalations = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigExpressEscalationArgs
                {
                    RawExpression = "string",
                    Severity = "string",
                    Times = 0,
                },
            },
            LegacyRaw = "string",
            LegacyType = "string",
            Aggregate = "string",
            CompositeEscalations = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompositeEscalationArgs
                {
                    Escalations = new[]
                    {
                        new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs
                        {
                            ComparisonOperator = "string",
                            MetricName = "string",
                            Period = 0,
                            PreCondition = "string",
                            Statistics = "string",
                            Threshold = "string",
                        },
                    },
                    Relation = "string",
                    Severity = "string",
                    Times = 0,
                },
            },
            Operator = "string",
            Prometheuses = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigPrometheusArgs
                {
                    PromQl = "string",
                    Severity = "string",
                    Times = 0,
                },
            },
            Severity = "string",
            SimpleEscalations = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigSimpleEscalationArgs
                {
                    Escalations = new[]
                    {
                        new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs
                        {
                            ComparisonOperator = "string",
                            PreCondition = "string",
                            Severity = "string",
                            Statistics = "string",
                            Threshold = "string",
                            Times = 0,
                        },
                    },
                    MetricName = "string",
                    Period = 0,
                },
            },
            Threshold = 0,
            ThresholdLists = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigThresholdListArgs
                {
                    Severity = "string",
                    Threshold = 0,
                },
            },
            CompareLists = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompareListArgs
                {
                    Aggregate = "string",
                    Operator = "string",
                    Threshold = 0,
                    YoyTimeUnit = "string",
                    YoyTimeValue = 0,
                },
            },
            YoyTimeUnit = "string",
            YoyTimeValue = 0,
        },
        ContentTemplate = "string",
        DatasourceConfig = new AliCloud.Cms.Inputs.AlertRuleV2DatasourceConfigArgs
        {
            Type = "string",
            InstanceId = "string",
            LegacyRaw = "string",
            LegacyType = "string",
            ProductCategory = "string",
            RegionId = "string",
        },
        DisplayName = "string",
        Enabled = false,
        Labels = 
        {
            { "string", "string" },
        },
        NotifyConfig = new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigArgs
        {
            Type = "string",
            ActiveDays = new[]
            {
                0,
            },
            ActiveEndTime = "string",
            ActiveStartTime = "string",
            Channels = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigChannelArgs
                {
                    Identifiers = new[]
                    {
                        "string",
                    },
                    Type = "string",
                },
            },
            NotifyStrategies = new[]
            {
                "string",
            },
            SilenceTimeSecs = 0,
            UtcOffset = "string",
        },
        QueryConfig = new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigArgs
        {
            Type = "string",
            LegacyRaw = "string",
            LegacyType = "string",
            EntityFields = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigEntityFieldArgs
                {
                    Field = "string",
                    Value = "string",
                },
            },
            Dimensions = new[]
            {
                
                {
                    { "string", "string" },
                },
            },
            EntityType = "string",
            Expr = "string",
            FilterLists = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigFilterListArgs
                {
                    Key = "string",
                    Type = "string",
                    Value = "string",
                },
            },
            GroupId = "string",
            EntityDomain = "string",
            LabelFilters = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigLabelFilterArgs
                {
                    Name = "string",
                    Operator = "string",
                    Value = "string",
                },
            },
            EntityFilters = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigEntityFilterArgs
                {
                    Field = "string",
                    Operator = "string",
                    Value = "string",
                },
            },
            MeasureLists = new[]
            {
                new AliCloud.Cms.Inputs.AlertRuleV2QueryConfigMeasureListArgs
                {
                    GroupBies = new[]
                    {
                        "string",
                    },
                    MeasureCode = "string",
                    WindowSecs = 0,
                },
            },
            Metric = "string",
            MetricSet = "string",
            Namespace = "string",
            PromQl = "string",
            RelationType = "string",
            ServiceIdLists = new[]
            {
                "string",
            },
            EnableDataCompleteCheck = false,
        },
        ScheduleConfig = new AliCloud.Cms.Inputs.AlertRuleV2ScheduleConfigArgs
        {
            Type = "string",
            IntervalSecs = 0,
        },
        Workspace = "string",
    });
    
    example, err := cms.NewAlertRuleV2(ctx, "alertRuleV2Resource", &cms.AlertRuleV2Args{
    	ActionIntegrationConfig: &cms.AlertRuleV2ActionIntegrationConfigArgs{
    		Actions: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Enabled: pulumi.Bool(false),
    	},
    	Annotations: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ArmsIntegrationConfig: &cms.AlertRuleV2ArmsIntegrationConfigArgs{
    		Enabled: pulumi.Bool(false),
    	},
    	ConditionConfig: &cms.AlertRuleV2ConditionConfigArgs{
    		Type:           pulumi.String("string"),
    		NoDataPolicy:   pulumi.String("string"),
    		Relation:       pulumi.String("string"),
    		DurationSecs:   pulumi.Int(0),
    		EscalationType: pulumi.String("string"),
    		ExpressEscalations: cms.AlertRuleV2ConditionConfigExpressEscalationArray{
    			&cms.AlertRuleV2ConditionConfigExpressEscalationArgs{
    				RawExpression: pulumi.String("string"),
    				Severity:      pulumi.String("string"),
    				Times:         pulumi.Int(0),
    			},
    		},
    		LegacyRaw:  pulumi.String("string"),
    		LegacyType: pulumi.String("string"),
    		Aggregate:  pulumi.String("string"),
    		CompositeEscalations: cms.AlertRuleV2ConditionConfigCompositeEscalationArray{
    			&cms.AlertRuleV2ConditionConfigCompositeEscalationArgs{
    				Escalations: cms.AlertRuleV2ConditionConfigCompositeEscalationEscalationArray{
    					&cms.AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs{
    						ComparisonOperator: pulumi.String("string"),
    						MetricName:         pulumi.String("string"),
    						Period:             pulumi.Int(0),
    						PreCondition:       pulumi.String("string"),
    						Statistics:         pulumi.String("string"),
    						Threshold:          pulumi.String("string"),
    					},
    				},
    				Relation: pulumi.String("string"),
    				Severity: pulumi.String("string"),
    				Times:    pulumi.Int(0),
    			},
    		},
    		Operator: pulumi.String("string"),
    		Prometheuses: cms.AlertRuleV2ConditionConfigPrometheusArray{
    			&cms.AlertRuleV2ConditionConfigPrometheusArgs{
    				PromQl:   pulumi.String("string"),
    				Severity: pulumi.String("string"),
    				Times:    pulumi.Int(0),
    			},
    		},
    		Severity: pulumi.String("string"),
    		SimpleEscalations: cms.AlertRuleV2ConditionConfigSimpleEscalationArray{
    			&cms.AlertRuleV2ConditionConfigSimpleEscalationArgs{
    				Escalations: cms.AlertRuleV2ConditionConfigSimpleEscalationEscalationArray{
    					&cms.AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs{
    						ComparisonOperator: pulumi.String("string"),
    						PreCondition:       pulumi.String("string"),
    						Severity:           pulumi.String("string"),
    						Statistics:         pulumi.String("string"),
    						Threshold:          pulumi.String("string"),
    						Times:              pulumi.Int(0),
    					},
    				},
    				MetricName: pulumi.String("string"),
    				Period:     pulumi.Int(0),
    			},
    		},
    		Threshold: pulumi.Float64(0),
    		ThresholdLists: cms.AlertRuleV2ConditionConfigThresholdListArray{
    			&cms.AlertRuleV2ConditionConfigThresholdListArgs{
    				Severity:  pulumi.String("string"),
    				Threshold: pulumi.Float64(0),
    			},
    		},
    		CompareLists: cms.AlertRuleV2ConditionConfigCompareListArray{
    			&cms.AlertRuleV2ConditionConfigCompareListArgs{
    				Aggregate:    pulumi.String("string"),
    				Operator:     pulumi.String("string"),
    				Threshold:    pulumi.Float64(0),
    				YoyTimeUnit:  pulumi.String("string"),
    				YoyTimeValue: pulumi.Int(0),
    			},
    		},
    		YoyTimeUnit:  pulumi.String("string"),
    		YoyTimeValue: pulumi.Int(0),
    	},
    	ContentTemplate: pulumi.String("string"),
    	DatasourceConfig: &cms.AlertRuleV2DatasourceConfigArgs{
    		Type:            pulumi.String("string"),
    		InstanceId:      pulumi.String("string"),
    		LegacyRaw:       pulumi.String("string"),
    		LegacyType:      pulumi.String("string"),
    		ProductCategory: pulumi.String("string"),
    		RegionId:        pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	Enabled:     pulumi.Bool(false),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	NotifyConfig: &cms.AlertRuleV2NotifyConfigArgs{
    		Type: pulumi.String("string"),
    		ActiveDays: pulumi.IntArray{
    			pulumi.Int(0),
    		},
    		ActiveEndTime:   pulumi.String("string"),
    		ActiveStartTime: pulumi.String("string"),
    		Channels: cms.AlertRuleV2NotifyConfigChannelArray{
    			&cms.AlertRuleV2NotifyConfigChannelArgs{
    				Identifiers: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Type: pulumi.String("string"),
    			},
    		},
    		NotifyStrategies: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		SilenceTimeSecs: pulumi.Int(0),
    		UtcOffset:       pulumi.String("string"),
    	},
    	QueryConfig: &cms.AlertRuleV2QueryConfigArgs{
    		Type:       pulumi.String("string"),
    		LegacyRaw:  pulumi.String("string"),
    		LegacyType: pulumi.String("string"),
    		EntityFields: cms.AlertRuleV2QueryConfigEntityFieldArray{
    			&cms.AlertRuleV2QueryConfigEntityFieldArgs{
    				Field: pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		Dimensions: pulumi.StringMapArray{
    			pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    		EntityType: pulumi.String("string"),
    		Expr:       pulumi.String("string"),
    		FilterLists: cms.AlertRuleV2QueryConfigFilterListArray{
    			&cms.AlertRuleV2QueryConfigFilterListArgs{
    				Key:   pulumi.String("string"),
    				Type:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		GroupId:      pulumi.String("string"),
    		EntityDomain: pulumi.String("string"),
    		LabelFilters: cms.AlertRuleV2QueryConfigLabelFilterArray{
    			&cms.AlertRuleV2QueryConfigLabelFilterArgs{
    				Name:     pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Value:    pulumi.String("string"),
    			},
    		},
    		EntityFilters: cms.AlertRuleV2QueryConfigEntityFilterArray{
    			&cms.AlertRuleV2QueryConfigEntityFilterArgs{
    				Field:    pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Value:    pulumi.String("string"),
    			},
    		},
    		MeasureLists: cms.AlertRuleV2QueryConfigMeasureListArray{
    			&cms.AlertRuleV2QueryConfigMeasureListArgs{
    				GroupBies: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				MeasureCode: pulumi.String("string"),
    				WindowSecs:  pulumi.Int(0),
    			},
    		},
    		Metric:       pulumi.String("string"),
    		MetricSet:    pulumi.String("string"),
    		Namespace:    pulumi.String("string"),
    		PromQl:       pulumi.String("string"),
    		RelationType: pulumi.String("string"),
    		ServiceIdLists: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		EnableDataCompleteCheck: pulumi.Bool(false),
    	},
    	ScheduleConfig: &cms.AlertRuleV2ScheduleConfigArgs{
    		Type:         pulumi.String("string"),
    		IntervalSecs: pulumi.Int(0),
    	},
    	Workspace: pulumi.String("string"),
    })
    
    resource "alicloud_cms_alert_rule_v2" "alertRuleV2Resource" {
      lifecycle {
        create_before_destroy = true
      }
      action_integration_config = {
        actions = ["string"]
        enabled = false
      }
      annotations = {
        "string" = "string"
      }
      arms_integration_config = {
        enabled = false
      }
      condition_config = {
        type            = "string"
        no_data_policy  = "string"
        relation        = "string"
        duration_secs   = 0
        escalation_type = "string"
        express_escalations = [{
          raw_expression = "string"
          severity       = "string"
          times          = 0
        }]
        legacy_raw  = "string"
        legacy_type = "string"
        aggregate   = "string"
        composite_escalations = [{
          escalations = [{
            comparison_operator = "string"
            metric_name         = "string"
            period              = 0
            pre_condition       = "string"
            statistics          = "string"
            threshold           = "string"
          }]
          relation = "string"
          severity = "string"
          times    = 0
        }]
        operator = "string"
        prometheuses = [{
          prom_ql  = "string"
          severity = "string"
          times    = 0
        }]
        severity = "string"
        simple_escalations = [{
          escalations = [{
            comparison_operator = "string"
            pre_condition       = "string"
            severity            = "string"
            statistics          = "string"
            threshold           = "string"
            times               = 0
          }]
          metric_name = "string"
          period      = 0
        }]
        threshold = 0
        threshold_lists = [{
          severity  = "string"
          threshold = 0
        }]
        compare_lists = [{
          aggregate      = "string"
          operator       = "string"
          threshold      = 0
          yoy_time_unit  = "string"
          yoy_time_value = 0
        }]
        yoy_time_unit  = "string"
        yoy_time_value = 0
      }
      content_template = "string"
      datasource_config = {
        type             = "string"
        instance_id      = "string"
        legacy_raw       = "string"
        legacy_type      = "string"
        product_category = "string"
        region_id        = "string"
      }
      display_name = "string"
      enabled      = false
      labels = {
        "string" = "string"
      }
      notify_config = {
        type              = "string"
        active_days       = [0]
        active_end_time   = "string"
        active_start_time = "string"
        channels = [{
          identifiers = ["string"]
          type        = "string"
        }]
        notify_strategies = ["string"]
        silence_time_secs = 0
        utc_offset        = "string"
      }
      query_config = {
        type        = "string"
        legacy_raw  = "string"
        legacy_type = "string"
        entity_fields = [{
          field = "string"
          value = "string"
        }]
        dimensions = [{
          "string" = "string"
        }]
        entity_type = "string"
        expr        = "string"
        filter_lists = [{
          key   = "string"
          type  = "string"
          value = "string"
        }]
        group_id      = "string"
        entity_domain = "string"
        label_filters = [{
          name     = "string"
          operator = "string"
          value    = "string"
        }]
        entity_filters = [{
          field    = "string"
          operator = "string"
          value    = "string"
        }]
        measure_lists = [{
          group_bies   = ["string"]
          measure_code = "string"
          window_secs  = 0
        }]
        metric                     = "string"
        metric_set                 = "string"
        namespace                  = "string"
        prom_ql                    = "string"
        relation_type              = "string"
        service_id_lists           = ["string"]
        enable_data_complete_check = false
      }
      schedule_config = {
        type          = "string"
        interval_secs = 0
      }
      workspace = "string"
    }
    
    var alertRuleV2Resource = new AlertRuleV2("alertRuleV2Resource", AlertRuleV2Args.builder()
        .actionIntegrationConfig(AlertRuleV2ActionIntegrationConfigArgs.builder()
            .actions("string")
            .enabled(false)
            .build())
        .annotations(Map.of("string", "string"))
        .armsIntegrationConfig(AlertRuleV2ArmsIntegrationConfigArgs.builder()
            .enabled(false)
            .build())
        .conditionConfig(AlertRuleV2ConditionConfigArgs.builder()
            .type("string")
            .noDataPolicy("string")
            .relation("string")
            .durationSecs(0)
            .escalationType("string")
            .expressEscalations(AlertRuleV2ConditionConfigExpressEscalationArgs.builder()
                .rawExpression("string")
                .severity("string")
                .times(0)
                .build())
            .legacyRaw("string")
            .legacyType("string")
            .aggregate("string")
            .compositeEscalations(AlertRuleV2ConditionConfigCompositeEscalationArgs.builder()
                .escalations(AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs.builder()
                    .comparisonOperator("string")
                    .metricName("string")
                    .period(0)
                    .preCondition("string")
                    .statistics("string")
                    .threshold("string")
                    .build())
                .relation("string")
                .severity("string")
                .times(0)
                .build())
            .operator("string")
            .prometheuses(AlertRuleV2ConditionConfigPrometheusArgs.builder()
                .promQl("string")
                .severity("string")
                .times(0)
                .build())
            .severity("string")
            .simpleEscalations(AlertRuleV2ConditionConfigSimpleEscalationArgs.builder()
                .escalations(AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs.builder()
                    .comparisonOperator("string")
                    .preCondition("string")
                    .severity("string")
                    .statistics("string")
                    .threshold("string")
                    .times(0)
                    .build())
                .metricName("string")
                .period(0)
                .build())
            .threshold(0.0)
            .thresholdLists(AlertRuleV2ConditionConfigThresholdListArgs.builder()
                .severity("string")
                .threshold(0.0)
                .build())
            .compareLists(AlertRuleV2ConditionConfigCompareListArgs.builder()
                .aggregate("string")
                .operator("string")
                .threshold(0.0)
                .yoyTimeUnit("string")
                .yoyTimeValue(0)
                .build())
            .yoyTimeUnit("string")
            .yoyTimeValue(0)
            .build())
        .contentTemplate("string")
        .datasourceConfig(AlertRuleV2DatasourceConfigArgs.builder()
            .type("string")
            .instanceId("string")
            .legacyRaw("string")
            .legacyType("string")
            .productCategory("string")
            .regionId("string")
            .build())
        .displayName("string")
        .enabled(false)
        .labels(Map.of("string", "string"))
        .notifyConfig(AlertRuleV2NotifyConfigArgs.builder()
            .type("string")
            .activeDays(0)
            .activeEndTime("string")
            .activeStartTime("string")
            .channels(AlertRuleV2NotifyConfigChannelArgs.builder()
                .identifiers("string")
                .type("string")
                .build())
            .notifyStrategies("string")
            .silenceTimeSecs(0)
            .utcOffset("string")
            .build())
        .queryConfig(AlertRuleV2QueryConfigArgs.builder()
            .type("string")
            .legacyRaw("string")
            .legacyType("string")
            .entityFields(AlertRuleV2QueryConfigEntityFieldArgs.builder()
                .field("string")
                .value("string")
                .build())
            .dimensions(Map.of("string", "string"))
            .entityType("string")
            .expr("string")
            .filterLists(AlertRuleV2QueryConfigFilterListArgs.builder()
                .key("string")
                .type("string")
                .value("string")
                .build())
            .groupId("string")
            .entityDomain("string")
            .labelFilters(AlertRuleV2QueryConfigLabelFilterArgs.builder()
                .name("string")
                .operator("string")
                .value("string")
                .build())
            .entityFilters(AlertRuleV2QueryConfigEntityFilterArgs.builder()
                .field("string")
                .operator("string")
                .value("string")
                .build())
            .measureLists(AlertRuleV2QueryConfigMeasureListArgs.builder()
                .groupBies("string")
                .measureCode("string")
                .windowSecs(0)
                .build())
            .metric("string")
            .metricSet("string")
            .namespace("string")
            .promQl("string")
            .relationType("string")
            .serviceIdLists("string")
            .enableDataCompleteCheck(false)
            .build())
        .scheduleConfig(AlertRuleV2ScheduleConfigArgs.builder()
            .type("string")
            .intervalSecs(0)
            .build())
        .workspace("string")
        .build());
    
    alert_rule_v2_resource = alicloud.cms.AlertRuleV2("alertRuleV2Resource",
        action_integration_config={
            "actions": ["string"],
            "enabled": False,
        },
        annotations={
            "string": "string",
        },
        arms_integration_config={
            "enabled": False,
        },
        condition_config={
            "type": "string",
            "no_data_policy": "string",
            "relation": "string",
            "duration_secs": 0,
            "escalation_type": "string",
            "express_escalations": [{
                "raw_expression": "string",
                "severity": "string",
                "times": 0,
            }],
            "legacy_raw": "string",
            "legacy_type": "string",
            "aggregate": "string",
            "composite_escalations": [{
                "escalations": [{
                    "comparison_operator": "string",
                    "metric_name": "string",
                    "period": 0,
                    "pre_condition": "string",
                    "statistics": "string",
                    "threshold": "string",
                }],
                "relation": "string",
                "severity": "string",
                "times": 0,
            }],
            "operator": "string",
            "prometheuses": [{
                "prom_ql": "string",
                "severity": "string",
                "times": 0,
            }],
            "severity": "string",
            "simple_escalations": [{
                "escalations": [{
                    "comparison_operator": "string",
                    "pre_condition": "string",
                    "severity": "string",
                    "statistics": "string",
                    "threshold": "string",
                    "times": 0,
                }],
                "metric_name": "string",
                "period": 0,
            }],
            "threshold": float(0),
            "threshold_lists": [{
                "severity": "string",
                "threshold": float(0),
            }],
            "compare_lists": [{
                "aggregate": "string",
                "operator": "string",
                "threshold": float(0),
                "yoy_time_unit": "string",
                "yoy_time_value": 0,
            }],
            "yoy_time_unit": "string",
            "yoy_time_value": 0,
        },
        content_template="string",
        datasource_config={
            "type": "string",
            "instance_id": "string",
            "legacy_raw": "string",
            "legacy_type": "string",
            "product_category": "string",
            "region_id": "string",
        },
        display_name="string",
        enabled=False,
        labels={
            "string": "string",
        },
        notify_config={
            "type": "string",
            "active_days": [0],
            "active_end_time": "string",
            "active_start_time": "string",
            "channels": [{
                "identifiers": ["string"],
                "type": "string",
            }],
            "notify_strategies": ["string"],
            "silence_time_secs": 0,
            "utc_offset": "string",
        },
        query_config={
            "type": "string",
            "legacy_raw": "string",
            "legacy_type": "string",
            "entity_fields": [{
                "field": "string",
                "value": "string",
            }],
            "dimensions": [{
                "string": "string",
            }],
            "entity_type": "string",
            "expr": "string",
            "filter_lists": [{
                "key": "string",
                "type": "string",
                "value": "string",
            }],
            "group_id": "string",
            "entity_domain": "string",
            "label_filters": [{
                "name": "string",
                "operator": "string",
                "value": "string",
            }],
            "entity_filters": [{
                "field": "string",
                "operator": "string",
                "value": "string",
            }],
            "measure_lists": [{
                "group_bies": ["string"],
                "measure_code": "string",
                "window_secs": 0,
            }],
            "metric": "string",
            "metric_set": "string",
            "namespace": "string",
            "prom_ql": "string",
            "relation_type": "string",
            "service_id_lists": ["string"],
            "enable_data_complete_check": False,
        },
        schedule_config={
            "type": "string",
            "interval_secs": 0,
        },
        workspace="string")
    
    const alertRuleV2Resource = new alicloud.cms.AlertRuleV2("alertRuleV2Resource", {
        actionIntegrationConfig: {
            actions: ["string"],
            enabled: false,
        },
        annotations: {
            string: "string",
        },
        armsIntegrationConfig: {
            enabled: false,
        },
        conditionConfig: {
            type: "string",
            noDataPolicy: "string",
            relation: "string",
            durationSecs: 0,
            escalationType: "string",
            expressEscalations: [{
                rawExpression: "string",
                severity: "string",
                times: 0,
            }],
            legacyRaw: "string",
            legacyType: "string",
            aggregate: "string",
            compositeEscalations: [{
                escalations: [{
                    comparisonOperator: "string",
                    metricName: "string",
                    period: 0,
                    preCondition: "string",
                    statistics: "string",
                    threshold: "string",
                }],
                relation: "string",
                severity: "string",
                times: 0,
            }],
            operator: "string",
            prometheuses: [{
                promQl: "string",
                severity: "string",
                times: 0,
            }],
            severity: "string",
            simpleEscalations: [{
                escalations: [{
                    comparisonOperator: "string",
                    preCondition: "string",
                    severity: "string",
                    statistics: "string",
                    threshold: "string",
                    times: 0,
                }],
                metricName: "string",
                period: 0,
            }],
            threshold: 0,
            thresholdLists: [{
                severity: "string",
                threshold: 0,
            }],
            compareLists: [{
                aggregate: "string",
                operator: "string",
                threshold: 0,
                yoyTimeUnit: "string",
                yoyTimeValue: 0,
            }],
            yoyTimeUnit: "string",
            yoyTimeValue: 0,
        },
        contentTemplate: "string",
        datasourceConfig: {
            type: "string",
            instanceId: "string",
            legacyRaw: "string",
            legacyType: "string",
            productCategory: "string",
            regionId: "string",
        },
        displayName: "string",
        enabled: false,
        labels: {
            string: "string",
        },
        notifyConfig: {
            type: "string",
            activeDays: [0],
            activeEndTime: "string",
            activeStartTime: "string",
            channels: [{
                identifiers: ["string"],
                type: "string",
            }],
            notifyStrategies: ["string"],
            silenceTimeSecs: 0,
            utcOffset: "string",
        },
        queryConfig: {
            type: "string",
            legacyRaw: "string",
            legacyType: "string",
            entityFields: [{
                field: "string",
                value: "string",
            }],
            dimensions: [{
                string: "string",
            }],
            entityType: "string",
            expr: "string",
            filterLists: [{
                key: "string",
                type: "string",
                value: "string",
            }],
            groupId: "string",
            entityDomain: "string",
            labelFilters: [{
                name: "string",
                operator: "string",
                value: "string",
            }],
            entityFilters: [{
                field: "string",
                operator: "string",
                value: "string",
            }],
            measureLists: [{
                groupBies: ["string"],
                measureCode: "string",
                windowSecs: 0,
            }],
            metric: "string",
            metricSet: "string",
            namespace: "string",
            promQl: "string",
            relationType: "string",
            serviceIdLists: ["string"],
            enableDataCompleteCheck: false,
        },
        scheduleConfig: {
            type: "string",
            intervalSecs: 0,
        },
        workspace: "string",
    });
    
    type: alicloud:cms:AlertRuleV2
    properties:
        actionIntegrationConfig:
            actions:
                - string
            enabled: false
        annotations:
            string: string
        armsIntegrationConfig:
            enabled: false
        conditionConfig:
            aggregate: string
            compareLists:
                - aggregate: string
                  operator: string
                  threshold: 0
                  yoyTimeUnit: string
                  yoyTimeValue: 0
            compositeEscalations:
                - escalations:
                    - comparisonOperator: string
                      metricName: string
                      period: 0
                      preCondition: string
                      statistics: string
                      threshold: string
                  relation: string
                  severity: string
                  times: 0
            durationSecs: 0
            escalationType: string
            expressEscalations:
                - rawExpression: string
                  severity: string
                  times: 0
            legacyRaw: string
            legacyType: string
            noDataPolicy: string
            operator: string
            prometheuses:
                - promQl: string
                  severity: string
                  times: 0
            relation: string
            severity: string
            simpleEscalations:
                - escalations:
                    - comparisonOperator: string
                      preCondition: string
                      severity: string
                      statistics: string
                      threshold: string
                      times: 0
                  metricName: string
                  period: 0
            threshold: 0
            thresholdLists:
                - severity: string
                  threshold: 0
            type: string
            yoyTimeUnit: string
            yoyTimeValue: 0
        contentTemplate: string
        datasourceConfig:
            instanceId: string
            legacyRaw: string
            legacyType: string
            productCategory: string
            regionId: string
            type: string
        displayName: string
        enabled: false
        labels:
            string: string
        notifyConfig:
            activeDays:
                - 0
            activeEndTime: string
            activeStartTime: string
            channels:
                - identifiers:
                    - string
                  type: string
            notifyStrategies:
                - string
            silenceTimeSecs: 0
            type: string
            utcOffset: string
        queryConfig:
            dimensions:
                - string: string
            enableDataCompleteCheck: false
            entityDomain: string
            entityFields:
                - field: string
                  value: string
            entityFilters:
                - field: string
                  operator: string
                  value: string
            entityType: string
            expr: string
            filterLists:
                - key: string
                  type: string
                  value: string
            groupId: string
            labelFilters:
                - name: string
                  operator: string
                  value: string
            legacyRaw: string
            legacyType: string
            measureLists:
                - groupBies:
                    - string
                  measureCode: string
                  windowSecs: 0
            metric: string
            metricSet: string
            namespace: string
            promQl: string
            relationType: string
            serviceIdLists:
                - string
            type: string
        scheduleConfig:
            intervalSecs: 0
            type: string
        workspace: string
    

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

    ActionIntegrationConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ActionIntegrationConfig
    Action integration configuration. See actionIntegrationConfig below.
    Annotations Dictionary<string, string>
    Annotations.
    ArmsIntegrationConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ArmsIntegrationConfig
    ARMS integration configuration. See armsIntegrationConfig below.
    ConditionConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfig
    Unified alert condition configuration. See conditionConfig below.
    ContentTemplate string
    The alert content template.
    DatasourceConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2DatasourceConfig
    Unified data source configuration. See datasourceConfig below.
    DisplayName string
    The display name of the alert rule.
    Enabled bool
    Specifies whether the alert rule is enabled.
    Labels Dictionary<string, string>
    Labels.
    NotifyConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2NotifyConfig
    Unified notification configuration. See notifyConfig below.
    QueryConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2QueryConfig
    Unified query configuration. See queryConfig below.
    ScheduleConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ScheduleConfig
    Unified scheduling configuration. See scheduleConfig below.
    Workspace string
    Workspace.
    ActionIntegrationConfig AlertRuleV2ActionIntegrationConfigArgs
    Action integration configuration. See actionIntegrationConfig below.
    Annotations map[string]string
    Annotations.
    ArmsIntegrationConfig AlertRuleV2ArmsIntegrationConfigArgs
    ARMS integration configuration. See armsIntegrationConfig below.
    ConditionConfig AlertRuleV2ConditionConfigArgs
    Unified alert condition configuration. See conditionConfig below.
    ContentTemplate string
    The alert content template.
    DatasourceConfig AlertRuleV2DatasourceConfigArgs
    Unified data source configuration. See datasourceConfig below.
    DisplayName string
    The display name of the alert rule.
    Enabled bool
    Specifies whether the alert rule is enabled.
    Labels map[string]string
    Labels.
    NotifyConfig AlertRuleV2NotifyConfigArgs
    Unified notification configuration. See notifyConfig below.
    QueryConfig AlertRuleV2QueryConfigArgs
    Unified query configuration. See queryConfig below.
    ScheduleConfig AlertRuleV2ScheduleConfigArgs
    Unified scheduling configuration. See scheduleConfig below.
    Workspace string
    Workspace.
    action_integration_config object
    Action integration configuration. See actionIntegrationConfig below.
    annotations map(string)
    Annotations.
    arms_integration_config object
    ARMS integration configuration. See armsIntegrationConfig below.
    condition_config object
    Unified alert condition configuration. See conditionConfig below.
    content_template string
    The alert content template.
    datasource_config object
    Unified data source configuration. See datasourceConfig below.
    display_name string
    The display name of the alert rule.
    enabled bool
    Specifies whether the alert rule is enabled.
    labels map(string)
    Labels.
    notify_config object
    Unified notification configuration. See notifyConfig below.
    query_config object
    Unified query configuration. See queryConfig below.
    schedule_config object
    Unified scheduling configuration. See scheduleConfig below.
    workspace string
    Workspace.
    actionIntegrationConfig AlertRuleV2ActionIntegrationConfig
    Action integration configuration. See actionIntegrationConfig below.
    annotations Map<String,String>
    Annotations.
    armsIntegrationConfig AlertRuleV2ArmsIntegrationConfig
    ARMS integration configuration. See armsIntegrationConfig below.
    conditionConfig AlertRuleV2ConditionConfig
    Unified alert condition configuration. See conditionConfig below.
    contentTemplate String
    The alert content template.
    datasourceConfig AlertRuleV2DatasourceConfig
    Unified data source configuration. See datasourceConfig below.
    displayName String
    The display name of the alert rule.
    enabled Boolean
    Specifies whether the alert rule is enabled.
    labels Map<String,String>
    Labels.
    notifyConfig AlertRuleV2NotifyConfig
    Unified notification configuration. See notifyConfig below.
    queryConfig AlertRuleV2QueryConfig
    Unified query configuration. See queryConfig below.
    scheduleConfig AlertRuleV2ScheduleConfig
    Unified scheduling configuration. See scheduleConfig below.
    workspace String
    Workspace.
    actionIntegrationConfig AlertRuleV2ActionIntegrationConfig
    Action integration configuration. See actionIntegrationConfig below.
    annotations {[key: string]: string}
    Annotations.
    armsIntegrationConfig AlertRuleV2ArmsIntegrationConfig
    ARMS integration configuration. See armsIntegrationConfig below.
    conditionConfig AlertRuleV2ConditionConfig
    Unified alert condition configuration. See conditionConfig below.
    contentTemplate string
    The alert content template.
    datasourceConfig AlertRuleV2DatasourceConfig
    Unified data source configuration. See datasourceConfig below.
    displayName string
    The display name of the alert rule.
    enabled boolean
    Specifies whether the alert rule is enabled.
    labels {[key: string]: string}
    Labels.
    notifyConfig AlertRuleV2NotifyConfig
    Unified notification configuration. See notifyConfig below.
    queryConfig AlertRuleV2QueryConfig
    Unified query configuration. See queryConfig below.
    scheduleConfig AlertRuleV2ScheduleConfig
    Unified scheduling configuration. See scheduleConfig below.
    workspace string
    Workspace.
    action_integration_config AlertRuleV2ActionIntegrationConfigArgs
    Action integration configuration. See actionIntegrationConfig below.
    annotations Mapping[str, str]
    Annotations.
    arms_integration_config AlertRuleV2ArmsIntegrationConfigArgs
    ARMS integration configuration. See armsIntegrationConfig below.
    condition_config AlertRuleV2ConditionConfigArgs
    Unified alert condition configuration. See conditionConfig below.
    content_template str
    The alert content template.
    datasource_config AlertRuleV2DatasourceConfigArgs
    Unified data source configuration. See datasourceConfig below.
    display_name str
    The display name of the alert rule.
    enabled bool
    Specifies whether the alert rule is enabled.
    labels Mapping[str, str]
    Labels.
    notify_config AlertRuleV2NotifyConfigArgs
    Unified notification configuration. See notifyConfig below.
    query_config AlertRuleV2QueryConfigArgs
    Unified query configuration. See queryConfig below.
    schedule_config AlertRuleV2ScheduleConfigArgs
    Unified scheduling configuration. See scheduleConfig below.
    workspace str
    Workspace.
    actionIntegrationConfig Property Map
    Action integration configuration. See actionIntegrationConfig below.
    annotations Map<String>
    Annotations.
    armsIntegrationConfig Property Map
    ARMS integration configuration. See armsIntegrationConfig below.
    conditionConfig Property Map
    Unified alert condition configuration. See conditionConfig below.
    contentTemplate String
    The alert content template.
    datasourceConfig Property Map
    Unified data source configuration. See datasourceConfig below.
    displayName String
    The display name of the alert rule.
    enabled Boolean
    Specifies whether the alert rule is enabled.
    labels Map<String>
    Labels.
    notifyConfig Property Map
    Unified notification configuration. See notifyConfig below.
    queryConfig Property Map
    Unified query configuration. See queryConfig below.
    scheduleConfig Property Map
    Unified scheduling configuration. See scheduleConfig below.
    workspace String
    Workspace.

    Outputs

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

    AlertRuleV2Id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    CreatedAt string
    Creation time (read-only), in ISO 8601 format.
    DatasourceType string
    Data source type (read-only, derived).
    Id string
    The provider-assigned unique ID for this managed resource.
    NotifyStrategyId string
    Notification policy ID (read-only, derived).
    ObserveResourceGlobalScope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    ObserveResourceType string
    Observable resource type (read-only, derived).
    PartitionKey string
    The partition key.
    SeverityLevels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    Status string
    Alert status (read-only).
    UpdatedAt string
    The update time (read-only), in ISO 8601 format.
    AlertRuleV2Id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    CreatedAt string
    Creation time (read-only), in ISO 8601 format.
    DatasourceType string
    Data source type (read-only, derived).
    Id string
    The provider-assigned unique ID for this managed resource.
    NotifyStrategyId string
    Notification policy ID (read-only, derived).
    ObserveResourceGlobalScope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    ObserveResourceType string
    Observable resource type (read-only, derived).
    PartitionKey string
    The partition key.
    SeverityLevels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    Status string
    Alert status (read-only).
    UpdatedAt string
    The update time (read-only), in ISO 8601 format.
    alert_rule_v2_id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    created_at string
    Creation time (read-only), in ISO 8601 format.
    datasource_type string
    Data source type (read-only, derived).
    id string
    The provider-assigned unique ID for this managed resource.
    notify_strategy_id string
    Notification policy ID (read-only, derived).
    observe_resource_global_scope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observe_resource_type string
    Observable resource type (read-only, derived).
    partition_key string
    The partition key.
    severity_levels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    status string
    Alert status (read-only).
    updated_at string
    The update time (read-only), in ISO 8601 format.
    alertRuleV2Id String
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    createdAt String
    Creation time (read-only), in ISO 8601 format.
    datasourceType String
    Data source type (read-only, derived).
    id String
    The provider-assigned unique ID for this managed resource.
    notifyStrategyId String
    Notification policy ID (read-only, derived).
    observeResourceGlobalScope Boolean
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observeResourceType String
    Observable resource type (read-only, derived).
    partitionKey String
    The partition key.
    severityLevels String
    The severity levels covered by this rule, separated by commas (read-only derived).
    status String
    Alert status (read-only).
    updatedAt String
    The update time (read-only), in ISO 8601 format.
    alertRuleV2Id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    createdAt string
    Creation time (read-only), in ISO 8601 format.
    datasourceType string
    Data source type (read-only, derived).
    id string
    The provider-assigned unique ID for this managed resource.
    notifyStrategyId string
    Notification policy ID (read-only, derived).
    observeResourceGlobalScope boolean
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observeResourceType string
    Observable resource type (read-only, derived).
    partitionKey string
    The partition key.
    severityLevels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    status string
    Alert status (read-only).
    updatedAt string
    The update time (read-only), in ISO 8601 format.
    alert_rule_v2_id str
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    created_at str
    Creation time (read-only), in ISO 8601 format.
    datasource_type str
    Data source type (read-only, derived).
    id str
    The provider-assigned unique ID for this managed resource.
    notify_strategy_id str
    Notification policy ID (read-only, derived).
    observe_resource_global_scope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observe_resource_type str
    Observable resource type (read-only, derived).
    partition_key str
    The partition key.
    severity_levels str
    The severity levels covered by this rule, separated by commas (read-only derived).
    status str
    Alert status (read-only).
    updated_at str
    The update time (read-only), in ISO 8601 format.
    alertRuleV2Id String
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    createdAt String
    Creation time (read-only), in ISO 8601 format.
    datasourceType String
    Data source type (read-only, derived).
    id String
    The provider-assigned unique ID for this managed resource.
    notifyStrategyId String
    Notification policy ID (read-only, derived).
    observeResourceGlobalScope Boolean
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observeResourceType String
    Observable resource type (read-only, derived).
    partitionKey String
    The partition key.
    severityLevels String
    The severity levels covered by this rule, separated by commas (read-only derived).
    status String
    Alert status (read-only).
    updatedAt String
    The update time (read-only), in ISO 8601 format.

    Look up Existing AlertRuleV2 Resource

    Get an existing AlertRuleV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AlertRuleV2State, opts?: CustomResourceOptions): AlertRuleV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action_integration_config: Optional[AlertRuleV2ActionIntegrationConfigArgs] = None,
            alert_rule_v2_id: Optional[str] = None,
            annotations: Optional[Mapping[str, str]] = None,
            arms_integration_config: Optional[AlertRuleV2ArmsIntegrationConfigArgs] = None,
            condition_config: Optional[AlertRuleV2ConditionConfigArgs] = None,
            content_template: Optional[str] = None,
            created_at: Optional[str] = None,
            datasource_config: Optional[AlertRuleV2DatasourceConfigArgs] = None,
            datasource_type: Optional[str] = None,
            display_name: Optional[str] = None,
            enabled: Optional[bool] = None,
            labels: Optional[Mapping[str, str]] = None,
            notify_config: Optional[AlertRuleV2NotifyConfigArgs] = None,
            notify_strategy_id: Optional[str] = None,
            observe_resource_global_scope: Optional[bool] = None,
            observe_resource_type: Optional[str] = None,
            partition_key: Optional[str] = None,
            query_config: Optional[AlertRuleV2QueryConfigArgs] = None,
            schedule_config: Optional[AlertRuleV2ScheduleConfigArgs] = None,
            severity_levels: Optional[str] = None,
            status: Optional[str] = None,
            updated_at: Optional[str] = None,
            workspace: Optional[str] = None) -> AlertRuleV2
    func GetAlertRuleV2(ctx *Context, name string, id IDInput, state *AlertRuleV2State, opts ...ResourceOption) (*AlertRuleV2, error)
    public static AlertRuleV2 Get(string name, Input<string> id, AlertRuleV2State? state, CustomResourceOptions? opts = null)
    public static AlertRuleV2 get(String name, Output<String> id, AlertRuleV2State state, CustomResourceOptions options)
    resources:  _:    type: alicloud:cms:AlertRuleV2    get:      id: ${id}
    import {
      to = alicloud_cms_alert_rule_v2.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ActionIntegrationConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ActionIntegrationConfig
    Action integration configuration. See actionIntegrationConfig below.
    AlertRuleV2Id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    Annotations Dictionary<string, string>
    Annotations.
    ArmsIntegrationConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ArmsIntegrationConfig
    ARMS integration configuration. See armsIntegrationConfig below.
    ConditionConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfig
    Unified alert condition configuration. See conditionConfig below.
    ContentTemplate string
    The alert content template.
    CreatedAt string
    Creation time (read-only), in ISO 8601 format.
    DatasourceConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2DatasourceConfig
    Unified data source configuration. See datasourceConfig below.
    DatasourceType string
    Data source type (read-only, derived).
    DisplayName string
    The display name of the alert rule.
    Enabled bool
    Specifies whether the alert rule is enabled.
    Labels Dictionary<string, string>
    Labels.
    NotifyConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2NotifyConfig
    Unified notification configuration. See notifyConfig below.
    NotifyStrategyId string
    Notification policy ID (read-only, derived).
    ObserveResourceGlobalScope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    ObserveResourceType string
    Observable resource type (read-only, derived).
    PartitionKey string
    The partition key.
    QueryConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2QueryConfig
    Unified query configuration. See queryConfig below.
    ScheduleConfig Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ScheduleConfig
    Unified scheduling configuration. See scheduleConfig below.
    SeverityLevels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    Status string
    Alert status (read-only).
    UpdatedAt string
    The update time (read-only), in ISO 8601 format.
    Workspace string
    Workspace.
    ActionIntegrationConfig AlertRuleV2ActionIntegrationConfigArgs
    Action integration configuration. See actionIntegrationConfig below.
    AlertRuleV2Id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    Annotations map[string]string
    Annotations.
    ArmsIntegrationConfig AlertRuleV2ArmsIntegrationConfigArgs
    ARMS integration configuration. See armsIntegrationConfig below.
    ConditionConfig AlertRuleV2ConditionConfigArgs
    Unified alert condition configuration. See conditionConfig below.
    ContentTemplate string
    The alert content template.
    CreatedAt string
    Creation time (read-only), in ISO 8601 format.
    DatasourceConfig AlertRuleV2DatasourceConfigArgs
    Unified data source configuration. See datasourceConfig below.
    DatasourceType string
    Data source type (read-only, derived).
    DisplayName string
    The display name of the alert rule.
    Enabled bool
    Specifies whether the alert rule is enabled.
    Labels map[string]string
    Labels.
    NotifyConfig AlertRuleV2NotifyConfigArgs
    Unified notification configuration. See notifyConfig below.
    NotifyStrategyId string
    Notification policy ID (read-only, derived).
    ObserveResourceGlobalScope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    ObserveResourceType string
    Observable resource type (read-only, derived).
    PartitionKey string
    The partition key.
    QueryConfig AlertRuleV2QueryConfigArgs
    Unified query configuration. See queryConfig below.
    ScheduleConfig AlertRuleV2ScheduleConfigArgs
    Unified scheduling configuration. See scheduleConfig below.
    SeverityLevels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    Status string
    Alert status (read-only).
    UpdatedAt string
    The update time (read-only), in ISO 8601 format.
    Workspace string
    Workspace.
    action_integration_config object
    Action integration configuration. See actionIntegrationConfig below.
    alert_rule_v2_id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    annotations map(string)
    Annotations.
    arms_integration_config object
    ARMS integration configuration. See armsIntegrationConfig below.
    condition_config object
    Unified alert condition configuration. See conditionConfig below.
    content_template string
    The alert content template.
    created_at string
    Creation time (read-only), in ISO 8601 format.
    datasource_config object
    Unified data source configuration. See datasourceConfig below.
    datasource_type string
    Data source type (read-only, derived).
    display_name string
    The display name of the alert rule.
    enabled bool
    Specifies whether the alert rule is enabled.
    labels map(string)
    Labels.
    notify_config object
    Unified notification configuration. See notifyConfig below.
    notify_strategy_id string
    Notification policy ID (read-only, derived).
    observe_resource_global_scope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observe_resource_type string
    Observable resource type (read-only, derived).
    partition_key string
    The partition key.
    query_config object
    Unified query configuration. See queryConfig below.
    schedule_config object
    Unified scheduling configuration. See scheduleConfig below.
    severity_levels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    status string
    Alert status (read-only).
    updated_at string
    The update time (read-only), in ISO 8601 format.
    workspace string
    Workspace.
    actionIntegrationConfig AlertRuleV2ActionIntegrationConfig
    Action integration configuration. See actionIntegrationConfig below.
    alertRuleV2Id String
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    annotations Map<String,String>
    Annotations.
    armsIntegrationConfig AlertRuleV2ArmsIntegrationConfig
    ARMS integration configuration. See armsIntegrationConfig below.
    conditionConfig AlertRuleV2ConditionConfig
    Unified alert condition configuration. See conditionConfig below.
    contentTemplate String
    The alert content template.
    createdAt String
    Creation time (read-only), in ISO 8601 format.
    datasourceConfig AlertRuleV2DatasourceConfig
    Unified data source configuration. See datasourceConfig below.
    datasourceType String
    Data source type (read-only, derived).
    displayName String
    The display name of the alert rule.
    enabled Boolean
    Specifies whether the alert rule is enabled.
    labels Map<String,String>
    Labels.
    notifyConfig AlertRuleV2NotifyConfig
    Unified notification configuration. See notifyConfig below.
    notifyStrategyId String
    Notification policy ID (read-only, derived).
    observeResourceGlobalScope Boolean
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observeResourceType String
    Observable resource type (read-only, derived).
    partitionKey String
    The partition key.
    queryConfig AlertRuleV2QueryConfig
    Unified query configuration. See queryConfig below.
    scheduleConfig AlertRuleV2ScheduleConfig
    Unified scheduling configuration. See scheduleConfig below.
    severityLevels String
    The severity levels covered by this rule, separated by commas (read-only derived).
    status String
    Alert status (read-only).
    updatedAt String
    The update time (read-only), in ISO 8601 format.
    workspace String
    Workspace.
    actionIntegrationConfig AlertRuleV2ActionIntegrationConfig
    Action integration configuration. See actionIntegrationConfig below.
    alertRuleV2Id string
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    annotations {[key: string]: string}
    Annotations.
    armsIntegrationConfig AlertRuleV2ArmsIntegrationConfig
    ARMS integration configuration. See armsIntegrationConfig below.
    conditionConfig AlertRuleV2ConditionConfig
    Unified alert condition configuration. See conditionConfig below.
    contentTemplate string
    The alert content template.
    createdAt string
    Creation time (read-only), in ISO 8601 format.
    datasourceConfig AlertRuleV2DatasourceConfig
    Unified data source configuration. See datasourceConfig below.
    datasourceType string
    Data source type (read-only, derived).
    displayName string
    The display name of the alert rule.
    enabled boolean
    Specifies whether the alert rule is enabled.
    labels {[key: string]: string}
    Labels.
    notifyConfig AlertRuleV2NotifyConfig
    Unified notification configuration. See notifyConfig below.
    notifyStrategyId string
    Notification policy ID (read-only, derived).
    observeResourceGlobalScope boolean
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observeResourceType string
    Observable resource type (read-only, derived).
    partitionKey string
    The partition key.
    queryConfig AlertRuleV2QueryConfig
    Unified query configuration. See queryConfig below.
    scheduleConfig AlertRuleV2ScheduleConfig
    Unified scheduling configuration. See scheduleConfig below.
    severityLevels string
    The severity levels covered by this rule, separated by commas (read-only derived).
    status string
    Alert status (read-only).
    updatedAt string
    The update time (read-only), in ISO 8601 format.
    workspace string
    Workspace.
    action_integration_config AlertRuleV2ActionIntegrationConfigArgs
    Action integration configuration. See actionIntegrationConfig below.
    alert_rule_v2_id str
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    annotations Mapping[str, str]
    Annotations.
    arms_integration_config AlertRuleV2ArmsIntegrationConfigArgs
    ARMS integration configuration. See armsIntegrationConfig below.
    condition_config AlertRuleV2ConditionConfigArgs
    Unified alert condition configuration. See conditionConfig below.
    content_template str
    The alert content template.
    created_at str
    Creation time (read-only), in ISO 8601 format.
    datasource_config AlertRuleV2DatasourceConfigArgs
    Unified data source configuration. See datasourceConfig below.
    datasource_type str
    Data source type (read-only, derived).
    display_name str
    The display name of the alert rule.
    enabled bool
    Specifies whether the alert rule is enabled.
    labels Mapping[str, str]
    Labels.
    notify_config AlertRuleV2NotifyConfigArgs
    Unified notification configuration. See notifyConfig below.
    notify_strategy_id str
    Notification policy ID (read-only, derived).
    observe_resource_global_scope bool
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observe_resource_type str
    Observable resource type (read-only, derived).
    partition_key str
    The partition key.
    query_config AlertRuleV2QueryConfigArgs
    Unified query configuration. See queryConfig below.
    schedule_config AlertRuleV2ScheduleConfigArgs
    Unified scheduling configuration. See scheduleConfig below.
    severity_levels str
    The severity levels covered by this rule, separated by commas (read-only derived).
    status str
    Alert status (read-only).
    updated_at str
    The update time (read-only), in ISO 8601 format.
    workspace str
    Workspace.
    actionIntegrationConfig Property Map
    Action integration configuration. See actionIntegrationConfig below.
    alertRuleV2Id String
    The unique identifier of the alert rule, mapped to a UUID (system-generated).
    annotations Map<String>
    Annotations.
    armsIntegrationConfig Property Map
    ARMS integration configuration. See armsIntegrationConfig below.
    conditionConfig Property Map
    Unified alert condition configuration. See conditionConfig below.
    contentTemplate String
    The alert content template.
    createdAt String
    Creation time (read-only), in ISO 8601 format.
    datasourceConfig Property Map
    Unified data source configuration. See datasourceConfig below.
    datasourceType String
    Data source type (read-only, derived).
    displayName String
    The display name of the alert rule.
    enabled Boolean
    Specifies whether the alert rule is enabled.
    labels Map<String>
    Labels.
    notifyConfig Property Map
    Unified notification configuration. See notifyConfig below.
    notifyStrategyId String
    Notification policy ID (read-only, derived).
    observeResourceGlobalScope Boolean
    Indicates whether the rule applies to all resources of this resource type (read-only, derived).
    observeResourceType String
    Observable resource type (read-only, derived).
    partitionKey String
    The partition key.
    queryConfig Property Map
    Unified query configuration. See queryConfig below.
    scheduleConfig Property Map
    Unified scheduling configuration. See scheduleConfig below.
    severityLevels String
    The severity levels covered by this rule, separated by commas (read-only derived).
    status String
    Alert status (read-only).
    updatedAt String
    The update time (read-only), in ISO 8601 format.
    workspace String
    Workspace.

    Supporting Types

    AlertRuleV2ActionIntegrationConfig, AlertRuleV2ActionIntegrationConfigArgs

    Actions List<string>
    List of actions
    Enabled bool
    Indicates whether action integration is enabled
    Actions []string
    List of actions
    Enabled bool
    Indicates whether action integration is enabled
    actions list(string)
    List of actions
    enabled bool
    Indicates whether action integration is enabled
    actions List<String>
    List of actions
    enabled Boolean
    Indicates whether action integration is enabled
    actions string[]
    List of actions
    enabled boolean
    Indicates whether action integration is enabled
    actions Sequence[str]
    List of actions
    enabled bool
    Indicates whether action integration is enabled
    actions List<String>
    List of actions
    enabled Boolean
    Indicates whether action integration is enabled

    AlertRuleV2ArmsIntegrationConfig, AlertRuleV2ArmsIntegrationConfigArgs

    Enabled bool
    Specifies whether to enable ARMS integration.
    Enabled bool
    Specifies whether to enable ARMS integration.
    enabled bool
    Specifies whether to enable ARMS integration.
    enabled Boolean
    Specifies whether to enable ARMS integration.
    enabled boolean
    Specifies whether to enable ARMS integration.
    enabled bool
    Specifies whether to enable ARMS integration.
    enabled Boolean
    Specifies whether to enable ARMS integration.

    AlertRuleV2ConditionConfig, AlertRuleV2ConditionConfigArgs

    Type string
    The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
    Aggregate string
    Aggregation Function
    CompareLists List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompareList>
    Multiple comparison list (used when type=APM_COMPOSITE) See compareList below.
    CompositeEscalations List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompositeEscalation>
    The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See compositeEscalation below.
    DurationSecs int
    Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
    EscalationType string
    The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
    ExpressEscalations List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigExpressEscalation>
    Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See expressEscalation below.
    LegacyRaw string
    The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
    LegacyType string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    NoDataPolicy string
    No-data processing policy (type=CLOUD_MONITORING)
    Operator string
    Comparison Operator
    Prometheuses List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigPrometheus>
    The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See prometheus below.
    Relation string
    The logical relationship between multiple metrics
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    SimpleEscalations List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigSimpleEscalation>
    Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See simpleEscalation below.
    Threshold double
    Threshold
    ThresholdLists List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigThresholdList>
    Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See thresholdList below.
    YoyTimeUnit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    YoyTimeValue int
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    Type string
    The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
    Aggregate string
    Aggregation Function
    CompareLists []AlertRuleV2ConditionConfigCompareList
    Multiple comparison list (used when type=APM_COMPOSITE) See compareList below.
    CompositeEscalations []AlertRuleV2ConditionConfigCompositeEscalation
    The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See compositeEscalation below.
    DurationSecs int
    Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
    EscalationType string
    The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
    ExpressEscalations []AlertRuleV2ConditionConfigExpressEscalation
    Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See expressEscalation below.
    LegacyRaw string
    The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
    LegacyType string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    NoDataPolicy string
    No-data processing policy (type=CLOUD_MONITORING)
    Operator string
    Comparison Operator
    Prometheuses []AlertRuleV2ConditionConfigPrometheus
    The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See prometheus below.
    Relation string
    The logical relationship between multiple metrics
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    SimpleEscalations []AlertRuleV2ConditionConfigSimpleEscalation
    Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See simpleEscalation below.
    Threshold float64
    Threshold
    ThresholdLists []AlertRuleV2ConditionConfigThresholdList
    Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See thresholdList below.
    YoyTimeUnit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    YoyTimeValue int
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    type string
    The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
    aggregate string
    Aggregation Function
    compare_lists list(object)
    Multiple comparison list (used when type=APM_COMPOSITE) See compareList below.
    composite_escalations list(object)
    The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See compositeEscalation below.
    duration_secs number
    Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
    escalation_type string
    The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
    express_escalations list(object)
    Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See expressEscalation below.
    legacy_raw string
    The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
    legacy_type string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    no_data_policy string
    No-data processing policy (type=CLOUD_MONITORING)
    operator string
    Comparison Operator
    prometheuses list(object)
    The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See prometheus below.
    relation string
    The logical relationship between multiple metrics
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    simple_escalations list(object)
    Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See simpleEscalation below.
    threshold number
    Threshold
    threshold_lists list(object)
    Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See thresholdList below.
    yoy_time_unit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoy_time_value number
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    type String
    The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
    aggregate String
    Aggregation Function
    compareLists List<AlertRuleV2ConditionConfigCompareList>
    Multiple comparison list (used when type=APM_COMPOSITE) See compareList below.
    compositeEscalations List<AlertRuleV2ConditionConfigCompositeEscalation>
    The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See compositeEscalation below.
    durationSecs Integer
    Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
    escalationType String
    The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
    expressEscalations List<AlertRuleV2ConditionConfigExpressEscalation>
    Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See expressEscalation below.
    legacyRaw String
    The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
    legacyType String
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    noDataPolicy String
    No-data processing policy (type=CLOUD_MONITORING)
    operator String
    Comparison Operator
    prometheuses List<AlertRuleV2ConditionConfigPrometheus>
    The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See prometheus below.
    relation String
    The logical relationship between multiple metrics
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    simpleEscalations List<AlertRuleV2ConditionConfigSimpleEscalation>
    Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See simpleEscalation below.
    threshold Double
    Threshold
    thresholdLists List<AlertRuleV2ConditionConfigThresholdList>
    Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See thresholdList below.
    yoyTimeUnit String
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoyTimeValue Integer
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    type string
    The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
    aggregate string
    Aggregation Function
    compareLists AlertRuleV2ConditionConfigCompareList[]
    Multiple comparison list (used when type=APM_COMPOSITE) See compareList below.
    compositeEscalations AlertRuleV2ConditionConfigCompositeEscalation[]
    The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See compositeEscalation below.
    durationSecs number
    Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
    escalationType string
    The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
    expressEscalations AlertRuleV2ConditionConfigExpressEscalation[]
    Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See expressEscalation below.
    legacyRaw string
    The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
    legacyType string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    noDataPolicy string
    No-data processing policy (type=CLOUD_MONITORING)
    operator string
    Comparison Operator
    prometheuses AlertRuleV2ConditionConfigPrometheus[]
    The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See prometheus below.
    relation string
    The logical relationship between multiple metrics
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    simpleEscalations AlertRuleV2ConditionConfigSimpleEscalation[]
    Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See simpleEscalation below.
    threshold number
    Threshold
    thresholdLists AlertRuleV2ConditionConfigThresholdList[]
    Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See thresholdList below.
    yoyTimeUnit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoyTimeValue number
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    type str
    The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
    aggregate str
    Aggregation Function
    compare_lists Sequence[AlertRuleV2ConditionConfigCompareList]
    Multiple comparison list (used when type=APM_COMPOSITE) See compareList below.
    composite_escalations Sequence[AlertRuleV2ConditionConfigCompositeEscalation]
    The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See compositeEscalation below.
    duration_secs int
    Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
    escalation_type str
    The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
    express_escalations Sequence[AlertRuleV2ConditionConfigExpressEscalation]
    Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See expressEscalation below.
    legacy_raw str
    The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
    legacy_type str
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    no_data_policy str
    No-data processing policy (type=CLOUD_MONITORING)
    operator str
    Comparison Operator
    prometheuses Sequence[AlertRuleV2ConditionConfigPrometheus]
    The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See prometheus below.
    relation str
    The logical relationship between multiple metrics
    severity str
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    simple_escalations Sequence[AlertRuleV2ConditionConfigSimpleEscalation]
    Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See simpleEscalation below.
    threshold float
    Threshold
    threshold_lists Sequence[AlertRuleV2ConditionConfigThresholdList]
    Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See thresholdList below.
    yoy_time_unit str
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoy_time_value int
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    type String
    The detection condition type. Valid values: PROMETHEUS_SIMPLE, UMODEL_METRICSET, APM_SIMPLE, APM_COMPOSITE, CLOUD_MONITORING, and UNKNOWN.
    aggregate String
    Aggregation Function
    compareLists List<Property Map>
    Multiple comparison list (used when type=APM_COMPOSITE) See compareList below.
    compositeEscalations List<Property Map>
    The multi-metric composite trigger configuration. This parameter is required when type is set to CLOUD_MONITORING and escalationType is set to composite. See compositeEscalation below.
    durationSecs Number
    Duration (seconds). Used when type=PROMETHEUS_SIMPLE or UMODEL_METRICSET.
    escalationType String
    The escalation policy type (type=CLOUD_MONITORING). Valid values: SIMPLE, COMPOSITE, EXPRESS, and PROMETHEUS.
    expressEscalations List<Property Map>
    Expression trigger configuration. This parameter is required when type=CLOUD_MONITORING and escalationType=express. See expressEscalation below.
    legacyRaw String
    The original V1 condition JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this field as read-only.
    legacyType String
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    noDataPolicy String
    No-data processing policy (type=CLOUD_MONITORING)
    operator String
    Comparison Operator
    prometheuses List<Property Map>
    The PromQL trigger configuration. This field is not empty when type=CLOUD_MONITORING and escalationType=prometheus. See prometheus below.
    relation String
    The logical relationship between multiple metrics
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    simpleEscalations List<Property Map>
    Single-metric trigger configuration (Required when type=CLOUD_MONITORING and escalationType=simple) See simpleEscalation below.
    threshold Number
    Threshold
    thresholdLists List<Property Map>
    Multi-Threshold List (Used for APM_SIMPLE or UMODEL_METRICSET_MULTI_SEVERITY) See thresholdList below.
    yoyTimeUnit String
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoyTimeValue Number
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.

    AlertRuleV2ConditionConfigCompareList, AlertRuleV2ConditionConfigCompareListArgs

    Aggregate string
    Aggregation Function
    Operator string
    Threshold double
    Threshold
    YoyTimeUnit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    YoyTimeValue int
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    Aggregate string
    Aggregation Function
    Operator string
    Threshold float64
    Threshold
    YoyTimeUnit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    YoyTimeValue int
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    aggregate string
    Aggregation Function
    operator string
    threshold number
    Threshold
    yoy_time_unit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoy_time_value number
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    aggregate String
    Aggregation Function
    operator String
    threshold Double
    Threshold
    yoyTimeUnit String
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoyTimeValue Integer
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    aggregate string
    Aggregation Function
    operator string
    threshold number
    Threshold
    yoyTimeUnit string
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoyTimeValue number
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    aggregate str
    Aggregation Function
    operator str
    threshold float
    Threshold
    yoy_time_unit str
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoy_time_value int
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    aggregate String
    Aggregation Function
    operator String
    threshold Number
    Threshold
    yoyTimeUnit String
    Year-over-year time unit. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.
    yoyTimeValue Number
    Year-over-year time value. This parameter takes effect only when operator=YOY_UP or YOY_DOWN.

    AlertRuleV2ConditionConfigCompositeEscalation, AlertRuleV2ConditionConfigCompositeEscalationArgs

    Escalations List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigCompositeEscalationEscalation>
    Trigger Condition List See escalations below.
    Relation string
    The logical relationship between multiple metrics
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Times int
    Consecutive Trigger Count
    Escalations []AlertRuleV2ConditionConfigCompositeEscalationEscalation
    Trigger Condition List See escalations below.
    Relation string
    The logical relationship between multiple metrics
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Times int
    Consecutive Trigger Count
    escalations list(object)
    Trigger Condition List See escalations below.
    relation string
    The logical relationship between multiple metrics
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times number
    Consecutive Trigger Count
    escalations List<AlertRuleV2ConditionConfigCompositeEscalationEscalation>
    Trigger Condition List See escalations below.
    relation String
    The logical relationship between multiple metrics
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times Integer
    Consecutive Trigger Count
    escalations AlertRuleV2ConditionConfigCompositeEscalationEscalation[]
    Trigger Condition List See escalations below.
    relation string
    The logical relationship between multiple metrics
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times number
    Consecutive Trigger Count
    escalations Sequence[AlertRuleV2ConditionConfigCompositeEscalationEscalation]
    Trigger Condition List See escalations below.
    relation str
    The logical relationship between multiple metrics
    severity str
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times int
    Consecutive Trigger Count
    escalations List<Property Map>
    Trigger Condition List See escalations below.
    relation String
    The logical relationship between multiple metrics
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times Number
    Consecutive Trigger Count

    AlertRuleV2ConditionConfigCompositeEscalationEscalation, AlertRuleV2ConditionConfigCompositeEscalationEscalationArgs

    ComparisonOperator string
    Comparison operator
    MetricName string
    Metric name
    Period int
    Collection period (s)
    PreCondition string
    Precondition
    Statistics string
    Statistical Method
    Threshold string
    Threshold
    ComparisonOperator string
    Comparison operator
    MetricName string
    Metric name
    Period int
    Collection period (s)
    PreCondition string
    Precondition
    Statistics string
    Statistical Method
    Threshold string
    Threshold
    comparison_operator string
    Comparison operator
    metric_name string
    Metric name
    period number
    Collection period (s)
    pre_condition string
    Precondition
    statistics string
    Statistical Method
    threshold string
    Threshold
    comparisonOperator String
    Comparison operator
    metricName String
    Metric name
    period Integer
    Collection period (s)
    preCondition String
    Precondition
    statistics String
    Statistical Method
    threshold String
    Threshold
    comparisonOperator string
    Comparison operator
    metricName string
    Metric name
    period number
    Collection period (s)
    preCondition string
    Precondition
    statistics string
    Statistical Method
    threshold string
    Threshold
    comparison_operator str
    Comparison operator
    metric_name str
    Metric name
    period int
    Collection period (s)
    pre_condition str
    Precondition
    statistics str
    Statistical Method
    threshold str
    Threshold
    comparisonOperator String
    Comparison operator
    metricName String
    Metric name
    period Number
    Collection period (s)
    preCondition String
    Precondition
    statistics String
    Statistical Method
    threshold String
    Threshold

    AlertRuleV2ConditionConfigExpressEscalation, AlertRuleV2ConditionConfigExpressEscalationArgs

    RawExpression string
    Raw Expression
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Times int
    Consecutive Trigger Count
    RawExpression string
    Raw Expression
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Times int
    Consecutive Trigger Count
    raw_expression string
    Raw Expression
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times number
    Consecutive Trigger Count
    rawExpression String
    Raw Expression
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times Integer
    Consecutive Trigger Count
    rawExpression string
    Raw Expression
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times number
    Consecutive Trigger Count
    raw_expression str
    Raw Expression
    severity str
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times int
    Consecutive Trigger Count
    rawExpression String
    Raw Expression
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times Number
    Consecutive Trigger Count

    AlertRuleV2ConditionConfigPrometheus, AlertRuleV2ConditionConfigPrometheusArgs

    PromQl string
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Times int
    Consecutive Trigger Count
    PromQl string
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Times int
    Consecutive Trigger Count
    prom_ql string
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times number
    Consecutive Trigger Count
    promQl String
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times Integer
    Consecutive Trigger Count
    promQl string
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times number
    Consecutive Trigger Count
    prom_ql str
    severity str
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times int
    Consecutive Trigger Count
    promQl String
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    times Number
    Consecutive Trigger Count

    AlertRuleV2ConditionConfigSimpleEscalation, AlertRuleV2ConditionConfigSimpleEscalationArgs

    Escalations List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2ConditionConfigSimpleEscalationEscalation>
    Trigger Condition List See escalations below.
    MetricName string
    Metric name
    Period int
    Collection period (s)
    Escalations []AlertRuleV2ConditionConfigSimpleEscalationEscalation
    Trigger Condition List See escalations below.
    MetricName string
    Metric name
    Period int
    Collection period (s)
    escalations list(object)
    Trigger Condition List See escalations below.
    metric_name string
    Metric name
    period number
    Collection period (s)
    escalations List<AlertRuleV2ConditionConfigSimpleEscalationEscalation>
    Trigger Condition List See escalations below.
    metricName String
    Metric name
    period Integer
    Collection period (s)
    escalations AlertRuleV2ConditionConfigSimpleEscalationEscalation[]
    Trigger Condition List See escalations below.
    metricName string
    Metric name
    period number
    Collection period (s)
    escalations Sequence[AlertRuleV2ConditionConfigSimpleEscalationEscalation]
    Trigger Condition List See escalations below.
    metric_name str
    Metric name
    period int
    Collection period (s)
    escalations List<Property Map>
    Trigger Condition List See escalations below.
    metricName String
    Metric name
    period Number
    Collection period (s)

    AlertRuleV2ConditionConfigSimpleEscalationEscalation, AlertRuleV2ConditionConfigSimpleEscalationEscalationArgs

    ComparisonOperator string
    Comparison operator
    PreCondition string
    Precondition
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Statistics string
    Statistical Method
    Threshold string
    Threshold
    Times int
    Consecutive Trigger Count
    ComparisonOperator string
    Comparison operator
    PreCondition string
    Precondition
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Statistics string
    Statistical Method
    Threshold string
    Threshold
    Times int
    Consecutive Trigger Count
    comparison_operator string
    Comparison operator
    pre_condition string
    Precondition
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    statistics string
    Statistical Method
    threshold string
    Threshold
    times number
    Consecutive Trigger Count
    comparisonOperator String
    Comparison operator
    preCondition String
    Precondition
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    statistics String
    Statistical Method
    threshold String
    Threshold
    times Integer
    Consecutive Trigger Count
    comparisonOperator string
    Comparison operator
    preCondition string
    Precondition
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    statistics string
    Statistical Method
    threshold string
    Threshold
    times number
    Consecutive Trigger Count
    comparison_operator str
    Comparison operator
    pre_condition str
    Precondition
    severity str
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    statistics str
    Statistical Method
    threshold str
    Threshold
    times int
    Consecutive Trigger Count
    comparisonOperator String
    Comparison operator
    preCondition String
    Precondition
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    statistics String
    Statistical Method
    threshold String
    Threshold
    times Number
    Consecutive Trigger Count

    AlertRuleV2ConditionConfigThresholdList, AlertRuleV2ConditionConfigThresholdListArgs

    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Threshold double
    Threshold
    Severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    Threshold float64
    Threshold
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    threshold number
    Threshold
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    threshold Double
    Threshold
    severity string
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    threshold number
    Threshold
    severity str
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    threshold float
    Threshold
    severity String
    Severity level. Valid values: CRITICAL, ERROR, WARNING, and INFO
    threshold Number
    Threshold

    AlertRuleV2DatasourceConfig, AlertRuleV2DatasourceConfigArgs

    Type string
    The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
    InstanceId string
    The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
    LegacyRaw string
    The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
    LegacyType string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    ProductCategory string
    The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
    RegionId string
    The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
    Type string
    The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
    InstanceId string
    The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
    LegacyRaw string
    The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
    LegacyType string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    ProductCategory string
    The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
    RegionId string
    The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
    type string
    The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
    instance_id string
    The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
    legacy_raw string
    The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
    legacy_type string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    product_category string
    The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
    region_id string
    The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
    type String
    The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
    instanceId String
    The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
    legacyRaw String
    The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
    legacyType String
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    productCategory String
    The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
    regionId String
    The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
    type string
    The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
    instanceId string
    The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
    legacyRaw string
    The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
    legacyType string
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    productCategory string
    The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
    regionId string
    The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
    type str
    The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
    instance_id str
    The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
    legacy_raw str
    The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
    legacy_type str
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    product_category str
    The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
    region_id str
    The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.
    type String
    The data source type. Valid values: PROMETHEUS, UMODEL, APM, CLOUD_MONITORING, and UNKNOWN.
    instanceId String
    The Prometheus instance ID. This parameter is used when type=PROMETHEUS.
    legacyRaw String
    The original V1 datasource JSON string returned when type=UNKNOWN and parsing fails. The frontend displays this string in read-only mode.
    legacyType String
    Returned when type=UNKNOWN, indicating that this rule cannot be edited by using the new API.
    productCategory String
    The cloud service category. This parameter is used when type=CLOUD_MONITORING. If this parameter is not specified, unknown is returned.
    regionId String
    The region ID. This parameter is available for all types. By default, the value is the same as the region where the rule resides.

    AlertRuleV2NotifyConfig, AlertRuleV2NotifyConfigArgs

    Type string
    Notification Channel Type
    ActiveDays List<int>
    The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
    ActiveEndTime string
    The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
    ActiveStartTime string
    The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
    Channels List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2NotifyConfigChannel>
    The list of notification channels (type=DIRECT_NOTIFY) See channels below.
    NotifyStrategies List<string>
    List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
    SilenceTimeSecs int
    The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
    UtcOffset string
    UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
    Type string
    Notification Channel Type
    ActiveDays []int
    The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
    ActiveEndTime string
    The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
    ActiveStartTime string
    The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
    Channels []AlertRuleV2NotifyConfigChannel
    The list of notification channels (type=DIRECT_NOTIFY) See channels below.
    NotifyStrategies []string
    List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
    SilenceTimeSecs int
    The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
    UtcOffset string
    UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
    type string
    Notification Channel Type
    active_days list(number)
    The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
    active_end_time string
    The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
    active_start_time string
    The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
    channels list(object)
    The list of notification channels (type=DIRECT_NOTIFY) See channels below.
    notify_strategies list(string)
    List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
    silence_time_secs number
    The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
    utc_offset string
    UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
    type String
    Notification Channel Type
    activeDays List<Integer>
    The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
    activeEndTime String
    The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
    activeStartTime String
    The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
    channels List<AlertRuleV2NotifyConfigChannel>
    The list of notification channels (type=DIRECT_NOTIFY) See channels below.
    notifyStrategies List<String>
    List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
    silenceTimeSecs Integer
    The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
    utcOffset String
    UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
    type string
    Notification Channel Type
    activeDays number[]
    The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
    activeEndTime string
    The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
    activeStartTime string
    The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
    channels AlertRuleV2NotifyConfigChannel[]
    The list of notification channels (type=DIRECT_NOTIFY) See channels below.
    notifyStrategies string[]
    List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
    silenceTimeSecs number
    The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
    utcOffset string
    UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
    type str
    Notification Channel Type
    active_days Sequence[int]
    The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
    active_end_time str
    The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
    active_start_time str
    The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
    channels Sequence[AlertRuleV2NotifyConfigChannel]
    The list of notification channels (type=DIRECT_NOTIFY) See channels below.
    notify_strategies Sequence[str]
    List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
    silence_time_secs int
    The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
    utc_offset str
    UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00
    type String
    Notification Channel Type
    activeDays List<Number>
    The days of the week on which notifications are sent, 1-7 (type=DIRECT_NOTIFY). Default: [1,2,3,4,5,6,7]
    activeEndTime String
    The daily end time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 23:59
    activeStartTime String
    The daily start time of the effective notification period (HH:mm, type=DIRECT_NOTIFY). Default: 00:00
    channels List<Property Map>
    The list of notification channels (type=DIRECT_NOTIFY) See channels below.
    notifyStrategies List<String>
    List of notification policy IDs (type=NOTIFY_POLICY, up to 1 for the current business)
    silenceTimeSecs Number
    The channel silence period in seconds (type=DIRECT_NOTIFY). Default: 86400
    utcOffset String
    UTC time zone offset (type=DIRECT_NOTIFY). Default: +08:00

    AlertRuleV2NotifyConfigChannel, AlertRuleV2NotifyConfigChannelArgs

    Identifiers List<string>
    List of channel identifiers
    Type string
    Identifiers []string
    List of channel identifiers
    Type string
    identifiers list(string)
    List of channel identifiers
    type string
    identifiers List<String>
    List of channel identifiers
    type String
    identifiers string[]
    List of channel identifiers
    type string
    identifiers Sequence[str]
    List of channel identifiers
    type str
    identifiers List<String>
    List of channel identifiers
    type String

    AlertRuleV2QueryConfig, AlertRuleV2QueryConfigArgs

    Type string
    The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
    Dimensions List<ImmutableDictionary<string, string>>
    The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See dimensions below.
    EnableDataCompleteCheck bool
    Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
    EntityDomain string
    Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
    EntityFields List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2QueryConfigEntityField>
    List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See entityFields below.
    EntityFilters List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2QueryConfigEntityFilter>
    The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See entityFilters below.
    EntityType string
    Entity type (type=UMODEL_METRICSET_QUERY)
    Expr string
    Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
    FilterLists List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2QueryConfigFilterList>
    The APM filter condition list (type=APM_MULTI_QUERY). See filterList below.
    GroupId string
    Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
    LabelFilters List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2QueryConfigLabelFilter>
    List of label filter conditions (type=UMODEL_METRICSET_QUERY) See labelFilters below.
    LegacyRaw string
    The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
    LegacyType string
    Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
    MeasureLists List<Pulumi.AliCloud.Cms.Inputs.AlertRuleV2QueryConfigMeasureList>
    APM measure configuration list (type=APM_MULTI_QUERY) See measureList below.
    Metric string
    Metric name (type=UMODEL_METRICSET_QUERY)
    MetricSet string
    Metric set name (type=UMODEL_METRICSET_QUERY)
    Namespace string
    CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
    PromQl string
    [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
    RelationType string
    Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
    ServiceIdLists List<string>
    Application Service ID List (type=APM_MULTI_QUERY)
    Type string
    The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
    Dimensions []map[string]string
    The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See dimensions below.
    EnableDataCompleteCheck bool
    Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
    EntityDomain string
    Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
    EntityFields []AlertRuleV2QueryConfigEntityField
    List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See entityFields below.
    EntityFilters []AlertRuleV2QueryConfigEntityFilter
    The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See entityFilters below.
    EntityType string
    Entity type (type=UMODEL_METRICSET_QUERY)
    Expr string
    Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
    FilterLists []AlertRuleV2QueryConfigFilterList
    The APM filter condition list (type=APM_MULTI_QUERY). See filterList below.
    GroupId string
    Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
    LabelFilters []AlertRuleV2QueryConfigLabelFilter
    List of label filter conditions (type=UMODEL_METRICSET_QUERY) See labelFilters below.
    LegacyRaw string
    The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
    LegacyType string
    Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
    MeasureLists []AlertRuleV2QueryConfigMeasureList
    APM measure configuration list (type=APM_MULTI_QUERY) See measureList below.
    Metric string
    Metric name (type=UMODEL_METRICSET_QUERY)
    MetricSet string
    Metric set name (type=UMODEL_METRICSET_QUERY)
    Namespace string
    CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
    PromQl string
    [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
    RelationType string
    Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
    ServiceIdLists []string
    Application Service ID List (type=APM_MULTI_QUERY)
    type string
    The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
    dimensions list(map(string))
    The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See dimensions below.
    enable_data_complete_check bool
    Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
    entity_domain string
    Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
    entity_fields list(object)
    List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See entityFields below.
    entity_filters list(object)
    The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See entityFilters below.
    entity_type string
    Entity type (type=UMODEL_METRICSET_QUERY)
    expr string
    Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
    filter_lists list(object)
    The APM filter condition list (type=APM_MULTI_QUERY). See filterList below.
    group_id string
    Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
    label_filters list(object)
    List of label filter conditions (type=UMODEL_METRICSET_QUERY) See labelFilters below.
    legacy_raw string
    The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
    legacy_type string
    Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
    measure_lists list(object)
    APM measure configuration list (type=APM_MULTI_QUERY) See measureList below.
    metric string
    Metric name (type=UMODEL_METRICSET_QUERY)
    metric_set string
    Metric set name (type=UMODEL_METRICSET_QUERY)
    namespace string
    CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
    prom_ql string
    [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
    relation_type string
    Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
    service_id_lists list(string)
    Application Service ID List (type=APM_MULTI_QUERY)
    type String
    The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
    dimensions List<Map<String,String>>
    The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See dimensions below.
    enableDataCompleteCheck Boolean
    Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
    entityDomain String
    Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
    entityFields List<AlertRuleV2QueryConfigEntityField>
    List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See entityFields below.
    entityFilters List<AlertRuleV2QueryConfigEntityFilter>
    The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See entityFilters below.
    entityType String
    Entity type (type=UMODEL_METRICSET_QUERY)
    expr String
    Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
    filterLists List<AlertRuleV2QueryConfigFilterList>
    The APM filter condition list (type=APM_MULTI_QUERY). See filterList below.
    groupId String
    Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
    labelFilters List<AlertRuleV2QueryConfigLabelFilter>
    List of label filter conditions (type=UMODEL_METRICSET_QUERY) See labelFilters below.
    legacyRaw String
    The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
    legacyType String
    Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
    measureLists List<AlertRuleV2QueryConfigMeasureList>
    APM measure configuration list (type=APM_MULTI_QUERY) See measureList below.
    metric String
    Metric name (type=UMODEL_METRICSET_QUERY)
    metricSet String
    Metric set name (type=UMODEL_METRICSET_QUERY)
    namespace String
    CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
    promQl String
    [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
    relationType String
    Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
    serviceIdLists List<String>
    Application Service ID List (type=APM_MULTI_QUERY)
    type string
    The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
    dimensions {[key: string]: string}[]
    The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See dimensions below.
    enableDataCompleteCheck boolean
    Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
    entityDomain string
    Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
    entityFields AlertRuleV2QueryConfigEntityField[]
    List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See entityFields below.
    entityFilters AlertRuleV2QueryConfigEntityFilter[]
    The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See entityFilters below.
    entityType string
    Entity type (type=UMODEL_METRICSET_QUERY)
    expr string
    Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
    filterLists AlertRuleV2QueryConfigFilterList[]
    The APM filter condition list (type=APM_MULTI_QUERY). See filterList below.
    groupId string
    Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
    labelFilters AlertRuleV2QueryConfigLabelFilter[]
    List of label filter conditions (type=UMODEL_METRICSET_QUERY) See labelFilters below.
    legacyRaw string
    The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
    legacyType string
    Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
    measureLists AlertRuleV2QueryConfigMeasureList[]
    APM measure configuration list (type=APM_MULTI_QUERY) See measureList below.
    metric string
    Metric name (type=UMODEL_METRICSET_QUERY)
    metricSet string
    Metric set name (type=UMODEL_METRICSET_QUERY)
    namespace string
    CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
    promQl string
    [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
    relationType string
    Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
    serviceIdLists string[]
    Application Service ID List (type=APM_MULTI_QUERY)
    type str
    The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
    dimensions Sequence[Mapping[str, str]]
    The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See dimensions below.
    enable_data_complete_check bool
    Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
    entity_domain str
    Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
    entity_fields Sequence[AlertRuleV2QueryConfigEntityField]
    List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See entityFields below.
    entity_filters Sequence[AlertRuleV2QueryConfigEntityFilter]
    The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See entityFilters below.
    entity_type str
    Entity type (type=UMODEL_METRICSET_QUERY)
    expr str
    Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
    filter_lists Sequence[AlertRuleV2QueryConfigFilterList]
    The APM filter condition list (type=APM_MULTI_QUERY). See filterList below.
    group_id str
    Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
    label_filters Sequence[AlertRuleV2QueryConfigLabelFilter]
    List of label filter conditions (type=UMODEL_METRICSET_QUERY) See labelFilters below.
    legacy_raw str
    The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
    legacy_type str
    Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
    measure_lists Sequence[AlertRuleV2QueryConfigMeasureList]
    APM measure configuration list (type=APM_MULTI_QUERY) See measureList below.
    metric str
    Metric name (type=UMODEL_METRICSET_QUERY)
    metric_set str
    Metric set name (type=UMODEL_METRICSET_QUERY)
    namespace str
    CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
    prom_ql str
    [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
    relation_type str
    Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
    service_id_lists Sequence[str]
    Application Service ID List (type=APM_MULTI_QUERY)
    type String
    The APM filter type. Valid values: ALL, EQ, NE, and DISABLED.
    dimensions List<Map<String>>
    The dimension list (type=CLOUD_MONITORING_QUERY). Each dimension is a key-value string mapping. See dimensions below.
    enableDataCompleteCheck Boolean
    Whether to Enable Data Completeness Check (type=PROMETHEUS_SINGLE_QUERY)
    entityDomain String
    Domain to which the entity belongs (type=UMODEL_METRICSET_QUERY)
    entityFields List<Property Map>
    List of Entity Fields to Return (type=UMODEL_METRICSET_QUERY) See entityFields below.
    entityFilters List<Property Map>
    The list of entity filter conditions (type=UMODEL_METRICSET_QUERY). See entityFilters below.
    entityType String
    Entity type (type=UMODEL_METRICSET_QUERY)
    expr String
    Prometheus query statement (type=PROMETHEUS_SINGLE_QUERY, recommended field)
    filterLists List<Property Map>
    The APM filter condition list (type=APM_MULTI_QUERY). See filterList below.
    groupId String
    Resource group ID (used when type=CLOUD_MONITORING_QUERY and relationType=GROUP)
    labelFilters List<Property Map>
    List of label filter conditions (type=UMODEL_METRICSET_QUERY) See labelFilters below.
    legacyRaw String
    The raw V1 query JSON string returned when type=UNKNOWN_QUERY and parsing fails. The frontend displays this field as read-only only.
    legacyType String
    Returned when type=UNKNOWN_QUERY, indicating that this rule cannot be edited through the new API.
    measureLists List<Property Map>
    APM measure configuration list (type=APM_MULTI_QUERY) See measureList below.
    metric String
    Metric name (type=UMODEL_METRICSET_QUERY)
    metricSet String
    Metric set name (type=UMODEL_METRICSET_QUERY)
    namespace String
    CloudMonitor namespace (cloud service name, type=CLOUD_MONITORING_QUERY)
    promQl String
    [Deprecated] Legacy PromQL field. Use Expr instead. The backend automatically normalizes this field to Expr.
    relationType String
    Resource association type (type=CLOUD_MONITORING_QUERY). Valid values: INSTANCE, GROUP, and USER.
    serviceIdLists List<String>
    Application Service ID List (type=APM_MULTI_QUERY)

    AlertRuleV2QueryConfigEntityField, AlertRuleV2QueryConfigEntityFieldArgs

    Field string
    The entity filter field name.
    Value string
    Label value
    Field string
    The entity filter field name.
    Value string
    Label value
    field string
    The entity filter field name.
    value string
    Label value
    field String
    The entity filter field name.
    value String
    Label value
    field string
    The entity filter field name.
    value string
    Label value
    field str
    The entity filter field name.
    value str
    Label value
    field String
    The entity filter field name.
    value String
    Label value

    AlertRuleV2QueryConfigEntityFilter, AlertRuleV2QueryConfigEntityFilterArgs

    Field string
    The entity filter field name.
    Operator string
    Value string
    Label value
    Field string
    The entity filter field name.
    Operator string
    Value string
    Label value
    field string
    The entity filter field name.
    operator string
    value string
    Label value
    field String
    The entity filter field name.
    operator String
    value String
    Label value
    field string
    The entity filter field name.
    operator string
    value string
    Label value
    field str
    The entity filter field name.
    operator str
    value str
    Label value
    field String
    The entity filter field name.
    operator String
    value String
    Label value

    AlertRuleV2QueryConfigFilterList, AlertRuleV2QueryConfigFilterListArgs

    Key string
    APM filter dimension key
    Type string
    Value string
    Label value
    Key string
    APM filter dimension key
    Type string
    Value string
    Label value
    key string
    APM filter dimension key
    type string
    value string
    Label value
    key String
    APM filter dimension key
    type String
    value String
    Label value
    key string
    APM filter dimension key
    type string
    value string
    Label value
    key str
    APM filter dimension key
    type str
    value str
    Label value
    key String
    APM filter dimension key
    type String
    value String
    Label value

    AlertRuleV2QueryConfigLabelFilter, AlertRuleV2QueryConfigLabelFilterArgs

    Name string
    Label name
    Operator string
    Value string
    Label value
    Name string
    Label name
    Operator string
    Value string
    Label value
    name string
    Label name
    operator string
    value string
    Label value
    name String
    Label name
    operator String
    value String
    Label value
    name string
    Label name
    operator string
    value string
    Label value
    name str
    Label name
    operator str
    value str
    Label value
    name String
    Label name
    operator String
    value String
    Label value

    AlertRuleV2QueryConfigMeasureList, AlertRuleV2QueryConfigMeasureListArgs

    GroupBies List<string>
    Grouping dimension list
    MeasureCode string
    APM metric code
    WindowSecs int
    Query Time Window (Seconds)
    GroupBies []string
    Grouping dimension list
    MeasureCode string
    APM metric code
    WindowSecs int
    Query Time Window (Seconds)
    group_bies list(string)
    Grouping dimension list
    measure_code string
    APM metric code
    window_secs number
    Query Time Window (Seconds)
    groupBies List<String>
    Grouping dimension list
    measureCode String
    APM metric code
    windowSecs Integer
    Query Time Window (Seconds)
    groupBies string[]
    Grouping dimension list
    measureCode string
    APM metric code
    windowSecs number
    Query Time Window (Seconds)
    group_bies Sequence[str]
    Grouping dimension list
    measure_code str
    APM metric code
    window_secs int
    Query Time Window (Seconds)
    groupBies List<String>
    Grouping dimension list
    measureCode String
    APM metric code
    windowSecs Number
    Query Time Window (Seconds)

    AlertRuleV2ScheduleConfig, AlertRuleV2ScheduleConfigArgs

    Type string
    The scheduling type. Valid values: FIXED and CRON.
    IntervalSecs int
    The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
    Type string
    The scheduling type. Valid values: FIXED and CRON.
    IntervalSecs int
    The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
    type string
    The scheduling type. Valid values: FIXED and CRON.
    interval_secs number
    The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
    type String
    The scheduling type. Valid values: FIXED and CRON.
    intervalSecs Integer
    The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
    type string
    The scheduling type. Valid values: FIXED and CRON.
    intervalSecs number
    The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
    type str
    The scheduling type. Valid values: FIXED and CRON.
    interval_secs int
    The scheduling interval in seconds. This parameter is used when the type is set to FIXED.
    type String
    The scheduling type. Valid values: FIXED and CRON.
    intervalSecs Number
    The scheduling interval in seconds. This parameter is used when the type is set to FIXED.

    Import

    Cms Alert Rule V2 can be imported using the id, e.g.

    $ pulumi import alicloud:cms/alertRuleV2:AlertRuleV2 example <alert_rule_v2_id>
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Viewing docs for Alibaba Cloud v3.105.0
    published on Thursday, Jul 16, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial