1. Packages
  2. Packages
  3. Bytepluscc Provider
  4. API Docs
  5. cloudmonitor
  6. Rule
Viewing docs for bytepluscc v0.0.43
published on Monday, Jul 27, 2026 by Byteplus
bytepluscc logo
Viewing docs for bytepluscc v0.0.43
published on Monday, Jul 27, 2026 by Byteplus

    If you need to monitor the data status of a cloud product resource, you can create a cloud monitoring alert policy. When the monitored resource data meets the alert trigger conditions, the system will send alert notifications using your specified method, helping you quickly identify resources with abnormal data.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
    
    const cloudMonitorRuleDemo = new bytepluscc.cloudmonitor.Rule("CloudMonitorRuleDemo", {
        ruleName: "CloudMonitorRuleDemo",
        description: "this is a description",
        ruleType: "static",
        namespace: "VCM_AgentKitMcp",
        subNamespace: "MCP_Service",
        originalDimensions: {
            key: "ResourceID",
            values: ["*"],
        },
        level: "warning",
        evaluationCount: 1,
        enableState: "enable",
        regions: ["cn-beijing"],
        multipleConditions: false,
        noData: {
            enable: false,
            evaluation_count: 4,
        },
        levelConditions: [{
            level: "warning",
            conditions: [{
                metricName: "istio_requests_total",
                statistics: "sum",
                comparisonOperator: ">",
                threshold: "100000",
                metricUnit: "Count",
            }],
        }],
        conditions: [{
            metric_name: "istio_requests_total",
            statistics: "sum",
            comparison_operator: ">",
            threshold: "100000",
            metric_unit: "Count",
        }],
        conditionOperator: "&&",
        silenceTime: 5,
        recoveryNotify: {
            enable: true,
        },
        projectName: "default",
        tags: [{
            key: "env",
            value: "test",
        }],
        alertMethods: [
            "Email",
            "Webhook",
        ],
        webhookIds: ["2005838xxxxx67xxxxx"],
        contactGroupIds: ["20041xxxxxx06xxxxx"],
        effectStartAt: "00:00",
        effectEndAt: "23:59",
    });
    
    import pulumi
    import pulumi_bytepluscc as bytepluscc
    
    cloud_monitor_rule_demo = bytepluscc.cloudmonitor.Rule("CloudMonitorRuleDemo",
        rule_name="CloudMonitorRuleDemo",
        description="this is a description",
        rule_type="static",
        namespace="VCM_AgentKitMcp",
        sub_namespace="MCP_Service",
        original_dimensions={
            "key": "ResourceID",
            "values": ["*"],
        },
        level="warning",
        evaluation_count=1,
        enable_state="enable",
        regions=["cn-beijing"],
        multiple_conditions=False,
        no_data={
            "enable": False,
            "evaluation_count": 4,
        },
        level_conditions=[{
            "level": "warning",
            "conditions": [{
                "metric_name": "istio_requests_total",
                "statistics": "sum",
                "comparison_operator": ">",
                "threshold": "100000",
                "metric_unit": "Count",
            }],
        }],
        conditions=[{
            "metric_name": "istio_requests_total",
            "statistics": "sum",
            "comparison_operator": ">",
            "threshold": "100000",
            "metric_unit": "Count",
        }],
        condition_operator="&&",
        silence_time=5,
        recovery_notify={
            "enable": True,
        },
        project_name="default",
        tags=[{
            "key": "env",
            "value": "test",
        }],
        alert_methods=[
            "Email",
            "Webhook",
        ],
        webhook_ids=["2005838xxxxx67xxxxx"],
        contact_group_ids=["20041xxxxxx06xxxxx"],
        effect_start_at="00:00",
        effect_end_at="23:59")
    
    package main
    
    import (
    	"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/cloudmonitor"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudmonitor.NewRule(ctx, "CloudMonitorRuleDemo", &cloudmonitor.RuleArgs{
    			RuleName:     pulumi.String("CloudMonitorRuleDemo"),
    			Description:  pulumi.String("this is a description"),
    			RuleType:     pulumi.String("static"),
    			Namespace:    pulumi.String("VCM_AgentKitMcp"),
    			SubNamespace: pulumi.String("MCP_Service"),
    			OriginalDimensions: &cloudmonitor.RuleOriginalDimensionsArgs{
    				Key: pulumi.String("ResourceID"),
    				Values: pulumi.StringArray{
    					pulumi.String("*"),
    				},
    			},
    			Level:           pulumi.String("warning"),
    			EvaluationCount: pulumi.Int(1),
    			EnableState:     pulumi.String("enable"),
    			Regions: pulumi.StringArray{
    				pulumi.String("cn-beijing"),
    			},
    			MultipleConditions: pulumi.Bool(false),
    			NoData: &cloudmonitor.RuleNoDataArgs{
    				Enable:           pulumi.Bool(false),
    				Evaluation_count: 4,
    			},
    			LevelConditions: cloudmonitor.RuleLevelConditionArray{
    				&cloudmonitor.RuleLevelConditionArgs{
    					Level: pulumi.String("warning"),
    					Conditions: cloudmonitor.RuleLevelConditionConditionArray{
    						&cloudmonitor.RuleLevelConditionConditionArgs{
    							MetricName:         pulumi.String("istio_requests_total"),
    							Statistics:         pulumi.String("sum"),
    							ComparisonOperator: pulumi.String(">"),
    							Threshold:          pulumi.String("100000"),
    							MetricUnit:         pulumi.String("Count"),
    						},
    					},
    				},
    			},
    			Conditions: cloudmonitor.RuleConditionArray{
    				&cloudmonitor.RuleConditionArgs{
    					Metric_name:         "istio_requests_total",
    					Statistics:          pulumi.String("sum"),
    					Comparison_operator: ">",
    					Threshold:           pulumi.String("100000"),
    					Metric_unit:         "Count",
    				},
    			},
    			ConditionOperator: pulumi.String("&&"),
    			SilenceTime:       pulumi.Int(5),
    			RecoveryNotify: &cloudmonitor.RuleRecoveryNotifyArgs{
    				Enable: pulumi.Bool(true),
    			},
    			ProjectName: pulumi.String("default"),
    			Tags: cloudmonitor.RuleTagArray{
    				&cloudmonitor.RuleTagArgs{
    					Key:   pulumi.String("env"),
    					Value: pulumi.String("test"),
    				},
    			},
    			AlertMethods: pulumi.StringArray{
    				pulumi.String("Email"),
    				pulumi.String("Webhook"),
    			},
    			WebhookIds: pulumi.StringArray{
    				pulumi.String("2005838xxxxx67xxxxx"),
    			},
    			ContactGroupIds: pulumi.StringArray{
    				pulumi.String("20041xxxxxx06xxxxx"),
    			},
    			EffectStartAt: pulumi.String("00:00"),
    			EffectEndAt:   pulumi.String("23:59"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
    
    return await Deployment.RunAsync(() => 
    {
        var cloudMonitorRuleDemo = new Bytepluscc.Cloudmonitor.Rule("CloudMonitorRuleDemo", new()
        {
            RuleName = "CloudMonitorRuleDemo",
            Description = "this is a description",
            RuleType = "static",
            Namespace = "VCM_AgentKitMcp",
            SubNamespace = "MCP_Service",
            OriginalDimensions = new Bytepluscc.Cloudmonitor.Inputs.RuleOriginalDimensionsArgs
            {
                Key = "ResourceID",
                Values = new[]
                {
                    "*",
                },
            },
            Level = "warning",
            EvaluationCount = 1,
            EnableState = "enable",
            Regions = new[]
            {
                "cn-beijing",
            },
            MultipleConditions = false,
            NoData = new Bytepluscc.Cloudmonitor.Inputs.RuleNoDataArgs
            {
                Enable = false,
                Evaluation_count = 4,
            },
            LevelConditions = new[]
            {
                new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionArgs
                {
                    Level = "warning",
                    Conditions = new[]
                    {
                        new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionConditionArgs
                        {
                            MetricName = "istio_requests_total",
                            Statistics = "sum",
                            ComparisonOperator = ">",
                            Threshold = "100000",
                            MetricUnit = "Count",
                        },
                    },
                },
            },
            Conditions = new[]
            {
                new Bytepluscc.Cloudmonitor.Inputs.RuleConditionArgs
                {
                    Metric_name = "istio_requests_total",
                    Statistics = "sum",
                    Comparison_operator = ">",
                    Threshold = "100000",
                    Metric_unit = "Count",
                },
            },
            ConditionOperator = "&&",
            SilenceTime = 5,
            RecoveryNotify = new Bytepluscc.Cloudmonitor.Inputs.RuleRecoveryNotifyArgs
            {
                Enable = true,
            },
            ProjectName = "default",
            Tags = new[]
            {
                new Bytepluscc.Cloudmonitor.Inputs.RuleTagArgs
                {
                    Key = "env",
                    Value = "test",
                },
            },
            AlertMethods = new[]
            {
                "Email",
                "Webhook",
            },
            WebhookIds = new[]
            {
                "2005838xxxxx67xxxxx",
            },
            ContactGroupIds = new[]
            {
                "20041xxxxxx06xxxxx",
            },
            EffectStartAt = "00:00",
            EffectEndAt = "23:59",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.byteplus.bytepluscc.cloudmonitor.Rule;
    import com.byteplus.bytepluscc.cloudmonitor.RuleArgs;
    import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleOriginalDimensionsArgs;
    import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleNoDataArgs;
    import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleLevelConditionArgs;
    import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleLevelConditionConditionArgs;
    import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleConditionArgs;
    import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleRecoveryNotifyArgs;
    import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleTagArgs;
    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) {
            var cloudMonitorRuleDemo = new Rule("cloudMonitorRuleDemo", RuleArgs.builder()
                .ruleName("CloudMonitorRuleDemo")
                .description("this is a description")
                .ruleType("static")
                .namespace("VCM_AgentKitMcp")
                .subNamespace("MCP_Service")
                .originalDimensions(RuleOriginalDimensionsArgs.builder()
                    .key("ResourceID")
                    .values("*")
                    .build())
                .level("warning")
                .evaluationCount(1)
                .enableState("enable")
                .regions("cn-beijing")
                .multipleConditions(false)
                .noData(RuleNoDataArgs.builder()
                    .enable(false)
                    .evaluation_count(4)
                    .build())
                .levelConditions(RuleLevelConditionArgs.builder()
                    .level("warning")
                    .conditions(RuleLevelConditionConditionArgs.builder()
                        .metricName("istio_requests_total")
                        .statistics("sum")
                        .comparisonOperator(">")
                        .threshold("100000")
                        .metricUnit("Count")
                        .build())
                    .build())
                .conditions(RuleConditionArgs.builder()
                    .metric_name("istio_requests_total")
                    .statistics("sum")
                    .comparison_operator(">")
                    .threshold("100000")
                    .metric_unit("Count")
                    .build())
                .conditionOperator("&&")
                .silenceTime(5)
                .recoveryNotify(RuleRecoveryNotifyArgs.builder()
                    .enable(true)
                    .build())
                .projectName("default")
                .tags(RuleTagArgs.builder()
                    .key("env")
                    .value("test")
                    .build())
                .alertMethods(            
                    "Email",
                    "Webhook")
                .webhookIds("2005838xxxxx67xxxxx")
                .contactGroupIds("20041xxxxxx06xxxxx")
                .effectStartAt("00:00")
                .effectEndAt("23:59")
                .build());
    
        }
    }
    
    resources:
      cloudMonitorRuleDemo:
        type: bytepluscc:cloudmonitor:Rule
        name: CloudMonitorRuleDemo
        properties:
          ruleName: CloudMonitorRuleDemo
          description: this is a description
          ruleType: static
          namespace: VCM_AgentKitMcp
          subNamespace: MCP_Service
          originalDimensions:
            key: ResourceID
            values:
              - '*'
          level: warning
          evaluationCount: 1
          enableState: enable
          regions:
            - cn-beijing
          multipleConditions: false
          noData:
            enable: false
            evaluation_count: 4
          levelConditions:
            - level: warning
              conditions:
                - metricName: istio_requests_total
                  statistics: sum
                  comparisonOperator: '>'
                  threshold: '100000'
                  metricUnit: Count
          conditions:
            - metric_name: istio_requests_total
              statistics: sum
              comparison_operator: '>'
              threshold: '100000'
              metric_unit: Count
          conditionOperator: '&&'
          silenceTime: 5
          recoveryNotify:
            enable: true
          projectName: default
          tags:
            - key: env
              value: test
          alertMethods:
            - Email
            - Webhook
          webhookIds:
            - 2005838xxxxx67xxxxx
          contactGroupIds:
            - 20041xxxxxx06xxxxx
          effectStartAt: 00:00
          effectEndAt: 23:59
    
    pulumi {
      required_providers {
        bytepluscc = {
          source = "pulumi/bytepluscc"
        }
      }
    }
    
    resource "bytepluscc_cloudmonitor_rule" "CloudMonitorRuleDemo" {
      rule_name     = "CloudMonitorRuleDemo"
      description   = "this is a description"
      rule_type     = "static"
      namespace     = "VCM_AgentKitMcp"
      sub_namespace = "MCP_Service"
      original_dimensions = {
        key    = "ResourceID"
        values = ["*"]
      }
      level               = "warning"
      evaluation_count    = 1
      enable_state        = "enable"
      regions             = ["cn-beijing"]
      multiple_conditions = false
      no_data = {
        enable           = false
        evaluation_count = 4
      }
      level_conditions {
        level = "warning"
        conditions {
          metric_name         = "istio_requests_total"
          statistics          = "sum"
          comparison_operator = ">"
          threshold           = "100000"
          metric_unit         = "Count"
        }
      }
      conditions {
        metric_name         = "istio_requests_total"
        statistics          = "sum"
        comparison_operator = ">"
        threshold           = "100000"
        metric_unit         = "Count"
      }
      condition_operator = "&&"
      silence_time       = 5
      recovery_notify = {
        enable = true
      }
      project_name = "default"
      tags {
        key   = "env"
        value = "test"
      }
      alert_methods     = ["Email", "Webhook"]
      webhook_ids       = ["2005838xxxxx67xxxxx"]
      contact_group_ids = ["20041xxxxxx06xxxxx"]
      effect_start_at   = "00:00"
      effect_end_at     = "23:59"
    }
    

    Create Rule Resource

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

    Constructor syntax

    new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);
    @overload
    def Rule(resource_name: str,
             args: RuleArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def Rule(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             rule_name: Optional[str] = None,
             silence_time: Optional[int] = None,
             sub_namespace: Optional[str] = None,
             namespace: Optional[str] = None,
             rule_type: Optional[str] = None,
             level: Optional[str] = None,
             effect_end_at: Optional[str] = None,
             effect_start_at: Optional[str] = None,
             enable_state: Optional[str] = None,
             evaluation_count: Optional[int] = None,
             recovery_notify: Optional[RuleRecoveryNotifyArgs] = None,
             regions: Optional[Sequence[str]] = None,
             project_name: Optional[str] = None,
             multiple_conditions: Optional[bool] = None,
             description: Optional[str] = None,
             notification_id: Optional[str] = None,
             notify_templates: Optional[Sequence[RuleNotifyTemplateArgs]] = None,
             dimension_conditions: Optional[RuleDimensionConditionsArgs] = None,
             level_conditions: Optional[Sequence[RuleLevelConditionArgs]] = None,
             original_dimensions: Optional[RuleOriginalDimensionsArgs] = None,
             condition_operator: Optional[str] = None,
             alert_methods: Optional[Sequence[str]] = None,
             no_data: Optional[RuleNoDataArgs] = None,
             contact_group_ids: Optional[Sequence[str]] = None,
             conditions: Optional[Sequence[RuleConditionArgs]] = None,
             tags: Optional[Sequence[RuleTagArgs]] = None,
             webhook: Optional[str] = None,
             webhook_ids: Optional[Sequence[str]] = None)
    func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)
    public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)
    public Rule(String name, RuleArgs args)
    public Rule(String name, RuleArgs args, CustomResourceOptions options)
    
    type: bytepluscc:cloudmonitor:Rule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "bytepluscc_cloudmonitor_rule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args RuleArgs
    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 RuleArgs
    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 RuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RuleArgs
    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 exampleruleResourceResourceFromCloudmonitorrule = new Bytepluscc.Cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule", new()
    {
        RuleName = "string",
        SilenceTime = 0,
        SubNamespace = "string",
        Namespace = "string",
        RuleType = "string",
        Level = "string",
        EffectEndAt = "string",
        EffectStartAt = "string",
        EnableState = "string",
        EvaluationCount = 0,
        RecoveryNotify = new Bytepluscc.Cloudmonitor.Inputs.RuleRecoveryNotifyArgs
        {
            Enable = false,
        },
        Regions = new[]
        {
            "string",
        },
        ProjectName = "string",
        MultipleConditions = false,
        Description = "string",
        NotificationId = "string",
        NotifyTemplates = new[]
        {
            new Bytepluscc.Cloudmonitor.Inputs.RuleNotifyTemplateArgs
            {
                Channel = "string",
                NotifyTemplateId = "string",
            },
        },
        DimensionConditions = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsArgs
        {
            MetaCondition = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsMetaConditionArgs
            {
                AllDimensions = false,
                Condition = "string",
                Metas = new[]
                {
                    new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsMetaConditionMetaArgs
                    {
                        Comparator = "string",
                        Key = "string",
                        Values = new[]
                        {
                            "string",
                        },
                    },
                },
            },
            ProjectCondition = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsProjectConditionArgs
            {
                Projects = new[]
                {
                    "string",
                },
            },
            TagCondition = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsTagConditionArgs
            {
                Condition = "string",
                Tags = new[]
                {
                    new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsTagConditionTagArgs
                    {
                        Comparator = "string",
                        Key = "string",
                        Values = new[]
                        {
                            "string",
                        },
                    },
                },
            },
            Type = "string",
        },
        LevelConditions = new[]
        {
            new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionArgs
            {
                Conditions = new[]
                {
                    new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionConditionArgs
                    {
                        ComparisonOperator = "string",
                        DisplayName = "string",
                        MetricName = "string",
                        MetricUnit = "string",
                        Period = "string",
                        Statistics = "string",
                        Threshold = "string",
                    },
                },
                Level = "string",
            },
        },
        OriginalDimensions = new Bytepluscc.Cloudmonitor.Inputs.RuleOriginalDimensionsArgs
        {
            Key = "string",
            Values = new[]
            {
                "string",
            },
        },
        ConditionOperator = "string",
        AlertMethods = new[]
        {
            "string",
        },
        NoData = new Bytepluscc.Cloudmonitor.Inputs.RuleNoDataArgs
        {
            Enable = false,
            EvaluationCount = 0,
        },
        ContactGroupIds = new[]
        {
            "string",
        },
        Conditions = new[]
        {
            new Bytepluscc.Cloudmonitor.Inputs.RuleConditionArgs
            {
                ComparisonOperator = "string",
                MetricName = "string",
                MetricUnit = "string",
                Period = "string",
                Statistics = "string",
                Threshold = "string",
            },
        },
        Tags = new[]
        {
            new Bytepluscc.Cloudmonitor.Inputs.RuleTagArgs
            {
                Key = "string",
                Value = "string",
            },
        },
        Webhook = "string",
        WebhookIds = new[]
        {
            "string",
        },
    });
    
    example, err := cloudmonitor.NewRule(ctx, "exampleruleResourceResourceFromCloudmonitorrule", &cloudmonitor.RuleArgs{
    	RuleName:        pulumi.String("string"),
    	SilenceTime:     pulumi.Int(0),
    	SubNamespace:    pulumi.String("string"),
    	Namespace:       pulumi.String("string"),
    	RuleType:        pulumi.String("string"),
    	Level:           pulumi.String("string"),
    	EffectEndAt:     pulumi.String("string"),
    	EffectStartAt:   pulumi.String("string"),
    	EnableState:     pulumi.String("string"),
    	EvaluationCount: pulumi.Int(0),
    	RecoveryNotify: &cloudmonitor.RuleRecoveryNotifyArgs{
    		Enable: pulumi.Bool(false),
    	},
    	Regions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ProjectName:        pulumi.String("string"),
    	MultipleConditions: pulumi.Bool(false),
    	Description:        pulumi.String("string"),
    	NotificationId:     pulumi.String("string"),
    	NotifyTemplates: cloudmonitor.RuleNotifyTemplateArray{
    		&cloudmonitor.RuleNotifyTemplateArgs{
    			Channel:          pulumi.String("string"),
    			NotifyTemplateId: pulumi.String("string"),
    		},
    	},
    	DimensionConditions: &cloudmonitor.RuleDimensionConditionsArgs{
    		MetaCondition: &cloudmonitor.RuleDimensionConditionsMetaConditionArgs{
    			AllDimensions: pulumi.Bool(false),
    			Condition:     pulumi.String("string"),
    			Metas: cloudmonitor.RuleDimensionConditionsMetaConditionMetaArray{
    				&cloudmonitor.RuleDimensionConditionsMetaConditionMetaArgs{
    					Comparator: pulumi.String("string"),
    					Key:        pulumi.String("string"),
    					Values: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    		},
    		ProjectCondition: &cloudmonitor.RuleDimensionConditionsProjectConditionArgs{
    			Projects: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		TagCondition: &cloudmonitor.RuleDimensionConditionsTagConditionArgs{
    			Condition: pulumi.String("string"),
    			Tags: cloudmonitor.RuleDimensionConditionsTagConditionTagArray{
    				&cloudmonitor.RuleDimensionConditionsTagConditionTagArgs{
    					Comparator: pulumi.String("string"),
    					Key:        pulumi.String("string"),
    					Values: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    				},
    			},
    		},
    		Type: pulumi.String("string"),
    	},
    	LevelConditions: cloudmonitor.RuleLevelConditionArray{
    		&cloudmonitor.RuleLevelConditionArgs{
    			Conditions: cloudmonitor.RuleLevelConditionConditionArray{
    				&cloudmonitor.RuleLevelConditionConditionArgs{
    					ComparisonOperator: pulumi.String("string"),
    					DisplayName:        pulumi.String("string"),
    					MetricName:         pulumi.String("string"),
    					MetricUnit:         pulumi.String("string"),
    					Period:             pulumi.String("string"),
    					Statistics:         pulumi.String("string"),
    					Threshold:          pulumi.String("string"),
    				},
    			},
    			Level: pulumi.String("string"),
    		},
    	},
    	OriginalDimensions: &cloudmonitor.RuleOriginalDimensionsArgs{
    		Key: pulumi.String("string"),
    		Values: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ConditionOperator: pulumi.String("string"),
    	AlertMethods: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	NoData: &cloudmonitor.RuleNoDataArgs{
    		Enable:          pulumi.Bool(false),
    		EvaluationCount: pulumi.Int(0),
    	},
    	ContactGroupIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Conditions: cloudmonitor.RuleConditionArray{
    		&cloudmonitor.RuleConditionArgs{
    			ComparisonOperator: pulumi.String("string"),
    			MetricName:         pulumi.String("string"),
    			MetricUnit:         pulumi.String("string"),
    			Period:             pulumi.String("string"),
    			Statistics:         pulumi.String("string"),
    			Threshold:          pulumi.String("string"),
    		},
    	},
    	Tags: cloudmonitor.RuleTagArray{
    		&cloudmonitor.RuleTagArgs{
    			Key:   pulumi.String("string"),
    			Value: pulumi.String("string"),
    		},
    	},
    	Webhook: pulumi.String("string"),
    	WebhookIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "bytepluscc_cloudmonitor_rule" "exampleruleResourceResourceFromCloudmonitorrule" {
      lifecycle {
        create_before_destroy = true
      }
      rule_name        = "string"
      silence_time     = 0
      sub_namespace    = "string"
      namespace        = "string"
      rule_type        = "string"
      level            = "string"
      effect_end_at    = "string"
      effect_start_at  = "string"
      enable_state     = "string"
      evaluation_count = 0
      recovery_notify = {
        enable = false
      }
      regions             = ["string"]
      project_name        = "string"
      multiple_conditions = false
      description         = "string"
      notification_id     = "string"
      notify_templates {
        channel            = "string"
        notify_template_id = "string"
      }
      dimension_conditions = {
        meta_condition = {
          all_dimensions = false
          condition      = "string"
          metas = [{
            comparator = "string"
            key        = "string"
            values     = ["string"]
          }]
        }
        project_condition = {
          projects = ["string"]
        }
        tag_condition = {
          condition = "string"
          tags = [{
            comparator = "string"
            key        = "string"
            values     = ["string"]
          }]
        }
        type = "string"
      }
      level_conditions {
        conditions {
          comparison_operator = "string"
          display_name        = "string"
          metric_name         = "string"
          metric_unit         = "string"
          period              = "string"
          statistics          = "string"
          threshold           = "string"
        }
        level = "string"
      }
      original_dimensions = {
        key    = "string"
        values = ["string"]
      }
      condition_operator = "string"
      alert_methods      = ["string"]
      no_data = {
        enable           = false
        evaluation_count = 0
      }
      contact_group_ids = ["string"]
      conditions {
        comparison_operator = "string"
        metric_name         = "string"
        metric_unit         = "string"
        period              = "string"
        statistics          = "string"
        threshold           = "string"
      }
      tags {
        key   = "string"
        value = "string"
      }
      webhook     = "string"
      webhook_ids = ["string"]
    }
    
    var exampleruleResourceResourceFromCloudmonitorrule = new com.byteplus.bytepluscc.cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule", com.byteplus.bytepluscc.cloudmonitor.RuleArgs.builder()
        .ruleName("string")
        .silenceTime(0)
        .subNamespace("string")
        .namespace("string")
        .ruleType("string")
        .level("string")
        .effectEndAt("string")
        .effectStartAt("string")
        .enableState("string")
        .evaluationCount(0)
        .recoveryNotify(RuleRecoveryNotifyArgs.builder()
            .enable(false)
            .build())
        .regions("string")
        .projectName("string")
        .multipleConditions(false)
        .description("string")
        .notificationId("string")
        .notifyTemplates(RuleNotifyTemplateArgs.builder()
            .channel("string")
            .notifyTemplateId("string")
            .build())
        .dimensionConditions(RuleDimensionConditionsArgs.builder()
            .metaCondition(RuleDimensionConditionsMetaConditionArgs.builder()
                .allDimensions(false)
                .condition("string")
                .metas(RuleDimensionConditionsMetaConditionMetaArgs.builder()
                    .comparator("string")
                    .key("string")
                    .values("string")
                    .build())
                .build())
            .projectCondition(RuleDimensionConditionsProjectConditionArgs.builder()
                .projects("string")
                .build())
            .tagCondition(RuleDimensionConditionsTagConditionArgs.builder()
                .condition("string")
                .tags(RuleDimensionConditionsTagConditionTagArgs.builder()
                    .comparator("string")
                    .key("string")
                    .values("string")
                    .build())
                .build())
            .type("string")
            .build())
        .levelConditions(RuleLevelConditionArgs.builder()
            .conditions(RuleLevelConditionConditionArgs.builder()
                .comparisonOperator("string")
                .displayName("string")
                .metricName("string")
                .metricUnit("string")
                .period("string")
                .statistics("string")
                .threshold("string")
                .build())
            .level("string")
            .build())
        .originalDimensions(RuleOriginalDimensionsArgs.builder()
            .key("string")
            .values("string")
            .build())
        .conditionOperator("string")
        .alertMethods("string")
        .noData(RuleNoDataArgs.builder()
            .enable(false)
            .evaluationCount(0)
            .build())
        .contactGroupIds("string")
        .conditions(RuleConditionArgs.builder()
            .comparisonOperator("string")
            .metricName("string")
            .metricUnit("string")
            .period("string")
            .statistics("string")
            .threshold("string")
            .build())
        .tags(com.pulumi.bytepluscc.cloudmonitor.inputs.RuleTagArgs.builder()
            .key("string")
            .value("string")
            .build())
        .webhook("string")
        .webhookIds("string")
        .build());
    
    examplerule_resource_resource_from_cloudmonitorrule = bytepluscc.cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule",
        rule_name="string",
        silence_time=0,
        sub_namespace="string",
        namespace="string",
        rule_type="string",
        level="string",
        effect_end_at="string",
        effect_start_at="string",
        enable_state="string",
        evaluation_count=0,
        recovery_notify={
            "enable": False,
        },
        regions=["string"],
        project_name="string",
        multiple_conditions=False,
        description="string",
        notification_id="string",
        notify_templates=[{
            "channel": "string",
            "notify_template_id": "string",
        }],
        dimension_conditions={
            "meta_condition": {
                "all_dimensions": False,
                "condition": "string",
                "metas": [{
                    "comparator": "string",
                    "key": "string",
                    "values": ["string"],
                }],
            },
            "project_condition": {
                "projects": ["string"],
            },
            "tag_condition": {
                "condition": "string",
                "tags": [{
                    "comparator": "string",
                    "key": "string",
                    "values": ["string"],
                }],
            },
            "type": "string",
        },
        level_conditions=[{
            "conditions": [{
                "comparison_operator": "string",
                "display_name": "string",
                "metric_name": "string",
                "metric_unit": "string",
                "period": "string",
                "statistics": "string",
                "threshold": "string",
            }],
            "level": "string",
        }],
        original_dimensions={
            "key": "string",
            "values": ["string"],
        },
        condition_operator="string",
        alert_methods=["string"],
        no_data={
            "enable": False,
            "evaluation_count": 0,
        },
        contact_group_ids=["string"],
        conditions=[{
            "comparison_operator": "string",
            "metric_name": "string",
            "metric_unit": "string",
            "period": "string",
            "statistics": "string",
            "threshold": "string",
        }],
        tags=[{
            "key": "string",
            "value": "string",
        }],
        webhook="string",
        webhook_ids=["string"])
    
    const exampleruleResourceResourceFromCloudmonitorrule = new bytepluscc.cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule", {
        ruleName: "string",
        silenceTime: 0,
        subNamespace: "string",
        namespace: "string",
        ruleType: "string",
        level: "string",
        effectEndAt: "string",
        effectStartAt: "string",
        enableState: "string",
        evaluationCount: 0,
        recoveryNotify: {
            enable: false,
        },
        regions: ["string"],
        projectName: "string",
        multipleConditions: false,
        description: "string",
        notificationId: "string",
        notifyTemplates: [{
            channel: "string",
            notifyTemplateId: "string",
        }],
        dimensionConditions: {
            metaCondition: {
                allDimensions: false,
                condition: "string",
                metas: [{
                    comparator: "string",
                    key: "string",
                    values: ["string"],
                }],
            },
            projectCondition: {
                projects: ["string"],
            },
            tagCondition: {
                condition: "string",
                tags: [{
                    comparator: "string",
                    key: "string",
                    values: ["string"],
                }],
            },
            type: "string",
        },
        levelConditions: [{
            conditions: [{
                comparisonOperator: "string",
                displayName: "string",
                metricName: "string",
                metricUnit: "string",
                period: "string",
                statistics: "string",
                threshold: "string",
            }],
            level: "string",
        }],
        originalDimensions: {
            key: "string",
            values: ["string"],
        },
        conditionOperator: "string",
        alertMethods: ["string"],
        noData: {
            enable: false,
            evaluationCount: 0,
        },
        contactGroupIds: ["string"],
        conditions: [{
            comparisonOperator: "string",
            metricName: "string",
            metricUnit: "string",
            period: "string",
            statistics: "string",
            threshold: "string",
        }],
        tags: [{
            key: "string",
            value: "string",
        }],
        webhook: "string",
        webhookIds: ["string"],
    });
    
    type: bytepluscc:cloudmonitor:Rule
    properties:
        alertMethods:
            - string
        conditionOperator: string
        conditions:
            - comparisonOperator: string
              metricName: string
              metricUnit: string
              period: string
              statistics: string
              threshold: string
        contactGroupIds:
            - string
        description: string
        dimensionConditions:
            metaCondition:
                allDimensions: false
                condition: string
                metas:
                    - comparator: string
                      key: string
                      values:
                        - string
            projectCondition:
                projects:
                    - string
            tagCondition:
                condition: string
                tags:
                    - comparator: string
                      key: string
                      values:
                        - string
            type: string
        effectEndAt: string
        effectStartAt: string
        enableState: string
        evaluationCount: 0
        level: string
        levelConditions:
            - conditions:
                - comparisonOperator: string
                  displayName: string
                  metricName: string
                  metricUnit: string
                  period: string
                  statistics: string
                  threshold: string
              level: string
        multipleConditions: false
        namespace: string
        noData:
            enable: false
            evaluationCount: 0
        notificationId: string
        notifyTemplates:
            - channel: string
              notifyTemplateId: string
        originalDimensions:
            key: string
            values:
                - string
        projectName: string
        recoveryNotify:
            enable: false
        regions:
            - string
        ruleName: string
        ruleType: string
        silenceTime: 0
        subNamespace: string
        tags:
            - key: string
              value: string
        webhook: string
        webhookIds:
            - string
    

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

    EffectEndAt string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    EffectStartAt string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    EnableState string
    Alert policy status. enable: enabled, disable: disabled
    EvaluationCount int
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    Level string
    Alert level. critical: critical, warning: warning, notice: notification
    Namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    RuleName string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    RuleType string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    SilenceTime int
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    SubNamespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    AlertMethods List<string>
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    ConditionOperator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    Conditions List<Byteplus.RuleCondition>
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    ContactGroupIds List<string>
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    Description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    DimensionConditions Byteplus.RuleDimensionConditions
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    LevelConditions List<Byteplus.RuleLevelCondition>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    MultipleConditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    NoData Byteplus.RuleNoData
    No data alert.
    NotificationId string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    NotifyTemplates List<Byteplus.RuleNotifyTemplate>
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    OriginalDimensions Byteplus.RuleOriginalDimensions
    Resource ID detected by the alert policy.
    ProjectName string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    RecoveryNotify Byteplus.RuleRecoveryNotify
    Alert recovery notification.
    Regions List<string>
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    Tags List<Byteplus.RuleTag>
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    Webhook string
    Alarm callback URL bound to the alarm policy.
    WebhookIds List<string>
    Alarm callback ID list when an alarm occurs.
    EffectEndAt string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    EffectStartAt string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    EnableState string
    Alert policy status. enable: enabled, disable: disabled
    EvaluationCount int
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    Level string
    Alert level. critical: critical, warning: warning, notice: notification
    Namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    RuleName string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    RuleType string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    SilenceTime int
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    SubNamespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    AlertMethods []string
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    ConditionOperator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    Conditions []RuleConditionArgs
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    ContactGroupIds []string
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    Description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    DimensionConditions RuleDimensionConditionsArgs
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    LevelConditions []RuleLevelConditionArgs
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    MultipleConditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    NoData RuleNoDataArgs
    No data alert.
    NotificationId string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    NotifyTemplates []RuleNotifyTemplateArgs
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    OriginalDimensions RuleOriginalDimensionsArgs
    Resource ID detected by the alert policy.
    ProjectName string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    RecoveryNotify RuleRecoveryNotifyArgs
    Alert recovery notification.
    Regions []string
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    Tags []RuleTagArgs
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    Webhook string
    Alarm callback URL bound to the alarm policy.
    WebhookIds []string
    Alarm callback ID list when an alarm occurs.
    effect_end_at string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effect_start_at string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enable_state string
    Alert policy status. enable: enabled, disable: disabled
    evaluation_count number
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level string
    Alert level. critical: critical, warning: warning, notice: notification
    namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    rule_name string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    rule_type string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silence_time number
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    sub_namespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    alert_methods list(string)
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    condition_operator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions list(object)
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contact_group_ids list(string)
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimension_conditions object
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    level_conditions list(object)
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multiple_conditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    no_data object
    No data alert.
    notification_id string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notify_templates list(object)
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    original_dimensions object
    Resource ID detected by the alert policy.
    project_name string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recovery_notify object
    Alert recovery notification.
    regions list(string)
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    tags list(object)
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    webhook string
    Alarm callback URL bound to the alarm policy.
    webhook_ids list(string)
    Alarm callback ID list when an alarm occurs.
    effectEndAt String
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effectStartAt String
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enableState String
    Alert policy status. enable: enabled, disable: disabled
    evaluationCount Integer
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level String
    Alert level. critical: critical, warning: warning, notice: notification
    namespace String
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    ruleName String
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    ruleType String
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silenceTime Integer
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    subNamespace String
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    alertMethods List<String>
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    conditionOperator String
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions List<RuleCondition>
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contactGroupIds List<String>
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    description String
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimensionConditions RuleDimensionConditions
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    levelConditions List<RuleLevelCondition>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multipleConditions Boolean
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    noData RuleNoData
    No data alert.
    notificationId String
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notifyTemplates List<RuleNotifyTemplate>
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    originalDimensions RuleOriginalDimensions
    Resource ID detected by the alert policy.
    projectName String
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recoveryNotify RuleRecoveryNotify
    Alert recovery notification.
    regions List<String>
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    tags List<RuleTag>
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    webhook String
    Alarm callback URL bound to the alarm policy.
    webhookIds List<String>
    Alarm callback ID list when an alarm occurs.
    effectEndAt string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effectStartAt string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enableState string
    Alert policy status. enable: enabled, disable: disabled
    evaluationCount number
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level string
    Alert level. critical: critical, warning: warning, notice: notification
    namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    ruleName string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    ruleType string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silenceTime number
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    subNamespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    alertMethods string[]
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    conditionOperator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions RuleCondition[]
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contactGroupIds string[]
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimensionConditions RuleDimensionConditions
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    levelConditions RuleLevelCondition[]
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multipleConditions boolean
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    noData RuleNoData
    No data alert.
    notificationId string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notifyTemplates RuleNotifyTemplate[]
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    originalDimensions RuleOriginalDimensions
    Resource ID detected by the alert policy.
    projectName string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recoveryNotify RuleRecoveryNotify
    Alert recovery notification.
    regions string[]
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    tags RuleTag[]
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    webhook string
    Alarm callback URL bound to the alarm policy.
    webhookIds string[]
    Alarm callback ID list when an alarm occurs.
    effect_end_at str
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effect_start_at str
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enable_state str
    Alert policy status. enable: enabled, disable: disabled
    evaluation_count int
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level str
    Alert level. critical: critical, warning: warning, notice: notification
    namespace str
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    rule_name str
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    rule_type str
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silence_time int
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    sub_namespace str
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    alert_methods Sequence[str]
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    condition_operator str
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions Sequence[RuleConditionArgs]
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contact_group_ids Sequence[str]
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    description str
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimension_conditions RuleDimensionConditionsArgs
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    level_conditions Sequence[RuleLevelConditionArgs]
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multiple_conditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    no_data RuleNoDataArgs
    No data alert.
    notification_id str
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notify_templates Sequence[RuleNotifyTemplateArgs]
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    original_dimensions RuleOriginalDimensionsArgs
    Resource ID detected by the alert policy.
    project_name str
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recovery_notify RuleRecoveryNotifyArgs
    Alert recovery notification.
    regions Sequence[str]
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    tags Sequence[RuleTagArgs]
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    webhook str
    Alarm callback URL bound to the alarm policy.
    webhook_ids Sequence[str]
    Alarm callback ID list when an alarm occurs.
    effectEndAt String
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effectStartAt String
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enableState String
    Alert policy status. enable: enabled, disable: disabled
    evaluationCount Number
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level String
    Alert level. critical: critical, warning: warning, notice: notification
    namespace String
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    ruleName String
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    ruleType String
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silenceTime Number
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    subNamespace String
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    alertMethods List<String>
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    conditionOperator String
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions List<Property Map>
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contactGroupIds List<String>
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    description String
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimensionConditions Property Map
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    levelConditions List<Property Map>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multipleConditions Boolean
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    noData Property Map
    No data alert.
    notificationId String
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notifyTemplates List<Property Map>
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    originalDimensions Property Map
    Resource ID detected by the alert policy.
    projectName String
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recoveryNotify Property Map
    Alert recovery notification.
    regions List<String>
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    tags List<Property Map>
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    webhook String
    Alarm callback URL bound to the alarm policy.
    webhookIds List<String>
    Alarm callback ID list when an alarm occurs.

    Outputs

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

    AlertState string
    Alert status. alerting: In alert; normal: Normal.
    CreatedAt string
    Alert policy creation time, in timestamp format.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceType string
    Resource type detected by the alert policy.
    RuleId string
    Alarm policy ID.
    UpdatedAt string
    Alarm policy update time, in timestamp format.
    AlertState string
    Alert status. alerting: In alert; normal: Normal.
    CreatedAt string
    Alert policy creation time, in timestamp format.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceType string
    Resource type detected by the alert policy.
    RuleId string
    Alarm policy ID.
    UpdatedAt string
    Alarm policy update time, in timestamp format.
    alert_state string
    Alert status. alerting: In alert; normal: Normal.
    created_at string
    Alert policy creation time, in timestamp format.
    id string
    The provider-assigned unique ID for this managed resource.
    resource_type string
    Resource type detected by the alert policy.
    rule_id string
    Alarm policy ID.
    updated_at string
    Alarm policy update time, in timestamp format.
    alertState String
    Alert status. alerting: In alert; normal: Normal.
    createdAt String
    Alert policy creation time, in timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceType String
    Resource type detected by the alert policy.
    ruleId String
    Alarm policy ID.
    updatedAt String
    Alarm policy update time, in timestamp format.
    alertState string
    Alert status. alerting: In alert; normal: Normal.
    createdAt string
    Alert policy creation time, in timestamp format.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceType string
    Resource type detected by the alert policy.
    ruleId string
    Alarm policy ID.
    updatedAt string
    Alarm policy update time, in timestamp format.
    alert_state str
    Alert status. alerting: In alert; normal: Normal.
    created_at str
    Alert policy creation time, in timestamp format.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_type str
    Resource type detected by the alert policy.
    rule_id str
    Alarm policy ID.
    updated_at str
    Alarm policy update time, in timestamp format.
    alertState String
    Alert status. alerting: In alert; normal: Normal.
    createdAt String
    Alert policy creation time, in timestamp format.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceType String
    Resource type detected by the alert policy.
    ruleId String
    Alarm policy ID.
    updatedAt String
    Alarm policy update time, in timestamp format.

    Look up Existing Rule Resource

    Get an existing Rule 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?: RuleState, opts?: CustomResourceOptions): Rule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_methods: Optional[Sequence[str]] = None,
            alert_state: Optional[str] = None,
            condition_operator: Optional[str] = None,
            conditions: Optional[Sequence[RuleConditionArgs]] = None,
            contact_group_ids: Optional[Sequence[str]] = None,
            created_at: Optional[str] = None,
            description: Optional[str] = None,
            dimension_conditions: Optional[RuleDimensionConditionsArgs] = None,
            effect_end_at: Optional[str] = None,
            effect_start_at: Optional[str] = None,
            enable_state: Optional[str] = None,
            evaluation_count: Optional[int] = None,
            level: Optional[str] = None,
            level_conditions: Optional[Sequence[RuleLevelConditionArgs]] = None,
            multiple_conditions: Optional[bool] = None,
            namespace: Optional[str] = None,
            no_data: Optional[RuleNoDataArgs] = None,
            notification_id: Optional[str] = None,
            notify_templates: Optional[Sequence[RuleNotifyTemplateArgs]] = None,
            original_dimensions: Optional[RuleOriginalDimensionsArgs] = None,
            project_name: Optional[str] = None,
            recovery_notify: Optional[RuleRecoveryNotifyArgs] = None,
            regions: Optional[Sequence[str]] = None,
            resource_type: Optional[str] = None,
            rule_id: Optional[str] = None,
            rule_name: Optional[str] = None,
            rule_type: Optional[str] = None,
            silence_time: Optional[int] = None,
            sub_namespace: Optional[str] = None,
            tags: Optional[Sequence[RuleTagArgs]] = None,
            updated_at: Optional[str] = None,
            webhook: Optional[str] = None,
            webhook_ids: Optional[Sequence[str]] = None) -> Rule
    func GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)
    public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)
    public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)
    resources:  _:    type: bytepluscc:cloudmonitor:Rule    get:      id: ${id}
    import {
      to = bytepluscc_cloudmonitor_rule.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:
    AlertMethods List<string>
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    AlertState string
    Alert status. alerting: In alert; normal: Normal.
    ConditionOperator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    Conditions List<Byteplus.RuleCondition>
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    ContactGroupIds List<string>
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    CreatedAt string
    Alert policy creation time, in timestamp format.
    Description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    DimensionConditions Byteplus.RuleDimensionConditions
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    EffectEndAt string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    EffectStartAt string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    EnableState string
    Alert policy status. enable: enabled, disable: disabled
    EvaluationCount int
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    Level string
    Alert level. critical: critical, warning: warning, notice: notification
    LevelConditions List<Byteplus.RuleLevelCondition>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    MultipleConditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    Namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    NoData Byteplus.RuleNoData
    No data alert.
    NotificationId string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    NotifyTemplates List<Byteplus.RuleNotifyTemplate>
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    OriginalDimensions Byteplus.RuleOriginalDimensions
    Resource ID detected by the alert policy.
    ProjectName string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    RecoveryNotify Byteplus.RuleRecoveryNotify
    Alert recovery notification.
    Regions List<string>
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    ResourceType string
    Resource type detected by the alert policy.
    RuleId string
    Alarm policy ID.
    RuleName string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    RuleType string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    SilenceTime int
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    SubNamespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    Tags List<Byteplus.RuleTag>
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    UpdatedAt string
    Alarm policy update time, in timestamp format.
    Webhook string
    Alarm callback URL bound to the alarm policy.
    WebhookIds List<string>
    Alarm callback ID list when an alarm occurs.
    AlertMethods []string
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    AlertState string
    Alert status. alerting: In alert; normal: Normal.
    ConditionOperator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    Conditions []RuleConditionArgs
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    ContactGroupIds []string
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    CreatedAt string
    Alert policy creation time, in timestamp format.
    Description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    DimensionConditions RuleDimensionConditionsArgs
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    EffectEndAt string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    EffectStartAt string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    EnableState string
    Alert policy status. enable: enabled, disable: disabled
    EvaluationCount int
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    Level string
    Alert level. critical: critical, warning: warning, notice: notification
    LevelConditions []RuleLevelConditionArgs
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    MultipleConditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    Namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    NoData RuleNoDataArgs
    No data alert.
    NotificationId string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    NotifyTemplates []RuleNotifyTemplateArgs
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    OriginalDimensions RuleOriginalDimensionsArgs
    Resource ID detected by the alert policy.
    ProjectName string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    RecoveryNotify RuleRecoveryNotifyArgs
    Alert recovery notification.
    Regions []string
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    ResourceType string
    Resource type detected by the alert policy.
    RuleId string
    Alarm policy ID.
    RuleName string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    RuleType string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    SilenceTime int
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    SubNamespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    Tags []RuleTagArgs
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    UpdatedAt string
    Alarm policy update time, in timestamp format.
    Webhook string
    Alarm callback URL bound to the alarm policy.
    WebhookIds []string
    Alarm callback ID list when an alarm occurs.
    alert_methods list(string)
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    alert_state string
    Alert status. alerting: In alert; normal: Normal.
    condition_operator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions list(object)
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contact_group_ids list(string)
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    created_at string
    Alert policy creation time, in timestamp format.
    description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimension_conditions object
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    effect_end_at string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effect_start_at string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enable_state string
    Alert policy status. enable: enabled, disable: disabled
    evaluation_count number
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level string
    Alert level. critical: critical, warning: warning, notice: notification
    level_conditions list(object)
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multiple_conditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    no_data object
    No data alert.
    notification_id string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notify_templates list(object)
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    original_dimensions object
    Resource ID detected by the alert policy.
    project_name string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recovery_notify object
    Alert recovery notification.
    regions list(string)
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    resource_type string
    Resource type detected by the alert policy.
    rule_id string
    Alarm policy ID.
    rule_name string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    rule_type string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silence_time number
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    sub_namespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    tags list(object)
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    updated_at string
    Alarm policy update time, in timestamp format.
    webhook string
    Alarm callback URL bound to the alarm policy.
    webhook_ids list(string)
    Alarm callback ID list when an alarm occurs.
    alertMethods List<String>
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    alertState String
    Alert status. alerting: In alert; normal: Normal.
    conditionOperator String
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions List<RuleCondition>
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contactGroupIds List<String>
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    createdAt String
    Alert policy creation time, in timestamp format.
    description String
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimensionConditions RuleDimensionConditions
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    effectEndAt String
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effectStartAt String
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enableState String
    Alert policy status. enable: enabled, disable: disabled
    evaluationCount Integer
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level String
    Alert level. critical: critical, warning: warning, notice: notification
    levelConditions List<RuleLevelCondition>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multipleConditions Boolean
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    namespace String
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    noData RuleNoData
    No data alert.
    notificationId String
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notifyTemplates List<RuleNotifyTemplate>
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    originalDimensions RuleOriginalDimensions
    Resource ID detected by the alert policy.
    projectName String
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recoveryNotify RuleRecoveryNotify
    Alert recovery notification.
    regions List<String>
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    resourceType String
    Resource type detected by the alert policy.
    ruleId String
    Alarm policy ID.
    ruleName String
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    ruleType String
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silenceTime Integer
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    subNamespace String
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    tags List<RuleTag>
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    updatedAt String
    Alarm policy update time, in timestamp format.
    webhook String
    Alarm callback URL bound to the alarm policy.
    webhookIds List<String>
    Alarm callback ID list when an alarm occurs.
    alertMethods string[]
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    alertState string
    Alert status. alerting: In alert; normal: Normal.
    conditionOperator string
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions RuleCondition[]
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contactGroupIds string[]
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    createdAt string
    Alert policy creation time, in timestamp format.
    description string
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimensionConditions RuleDimensionConditions
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    effectEndAt string
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effectStartAt string
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enableState string
    Alert policy status. enable: enabled, disable: disabled
    evaluationCount number
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level string
    Alert level. critical: critical, warning: warning, notice: notification
    levelConditions RuleLevelCondition[]
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multipleConditions boolean
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    namespace string
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    noData RuleNoData
    No data alert.
    notificationId string
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notifyTemplates RuleNotifyTemplate[]
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    originalDimensions RuleOriginalDimensions
    Resource ID detected by the alert policy.
    projectName string
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recoveryNotify RuleRecoveryNotify
    Alert recovery notification.
    regions string[]
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    resourceType string
    Resource type detected by the alert policy.
    ruleId string
    Alarm policy ID.
    ruleName string
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    ruleType string
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silenceTime number
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    subNamespace string
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    tags RuleTag[]
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    updatedAt string
    Alarm policy update time, in timestamp format.
    webhook string
    Alarm callback URL bound to the alarm policy.
    webhookIds string[]
    Alarm callback ID list when an alarm occurs.
    alert_methods Sequence[str]
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    alert_state str
    Alert status. alerting: In alert; normal: Normal.
    condition_operator str
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions Sequence[RuleConditionArgs]
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contact_group_ids Sequence[str]
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    created_at str
    Alert policy creation time, in timestamp format.
    description str
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimension_conditions RuleDimensionConditionsArgs
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    effect_end_at str
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effect_start_at str
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enable_state str
    Alert policy status. enable: enabled, disable: disabled
    evaluation_count int
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level str
    Alert level. critical: critical, warning: warning, notice: notification
    level_conditions Sequence[RuleLevelConditionArgs]
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multiple_conditions bool
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    namespace str
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    no_data RuleNoDataArgs
    No data alert.
    notification_id str
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notify_templates Sequence[RuleNotifyTemplateArgs]
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    original_dimensions RuleOriginalDimensionsArgs
    Resource ID detected by the alert policy.
    project_name str
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recovery_notify RuleRecoveryNotifyArgs
    Alert recovery notification.
    regions Sequence[str]
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    resource_type str
    Resource type detected by the alert policy.
    rule_id str
    Alarm policy ID.
    rule_name str
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    rule_type str
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silence_time int
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    sub_namespace str
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    tags Sequence[RuleTagArgs]
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    updated_at str
    Alarm policy update time, in timestamp format.
    webhook str
    Alarm callback URL bound to the alarm policy.
    webhook_ids Sequence[str]
    Alarm callback ID list when an alarm occurs.
    alertMethods List<String>
    Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
    alertState String
    Alert status. alerting: In alert; normal: Normal.
    conditionOperator String
    Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
    conditions List<Property Map>
    Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    contactGroupIds List<String>
    When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
    createdAt String
    Alert policy creation time, in timestamp format.
    description String
    Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
    dimensionConditions Property Map
    Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
    effectEndAt String
    End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
    effectStartAt String
    Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
    enableState String
    Alert policy status. enable: enabled, disable: disabled
    evaluationCount Number
    Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
    level String
    Alert level. critical: critical, warning: warning, notice: notification
    levelConditions List<Property Map>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    multipleConditions Boolean
    Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
    namespace String
    The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
    noData Property Map
    No data alert.
    notificationId String
    Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
    notifyTemplates List<Property Map>
    Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    originalDimensions Property Map
    Resource ID detected by the alert policy.
    projectName String
    Project name to which the alert policy belongs. If not specified, it defaults to the default project.
    recoveryNotify Property Map
    Alert recovery notification.
    regions List<String>
    Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
    resourceType String
    Resource type detected by the alert policy.
    ruleId String
    Alarm policy ID.
    ruleName String
    Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
    ruleType String
    Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
    silenceTime Number
    Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
    subNamespace String
    Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
    tags List<Property Map>
    Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    updatedAt String
    Alarm policy update time, in timestamp format.
    webhook String
    Alarm callback URL bound to the alarm policy.
    webhookIds List<String>
    Alarm callback ID list when an alarm occurs.

    Supporting Types

    RuleCondition, RuleConditionArgs

    ComparisonOperator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    MetricName string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    MetricUnit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    Period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    Statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    Threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    ComparisonOperator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    MetricName string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    MetricUnit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    Period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    Statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    Threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparison_operator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    metric_name string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metric_unit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparisonOperator String
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    metricName String
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metricUnit String
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period String
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics String
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold String
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparisonOperator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    metricName string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metricUnit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparison_operator str
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    metric_name str
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metric_unit str
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period str
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics str
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold str
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparisonOperator String
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    metricName String
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metricUnit String
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period String
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics String
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold String
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.

    RuleDimensionConditions, RuleDimensionConditionsArgs

    MetaCondition Byteplus.RuleDimensionConditionsMetaCondition
    Condition for selecting alert objects based on resource name. Required when Type is meta.
    ProjectCondition Byteplus.RuleDimensionConditionsProjectCondition
    Condition for selecting alert targets by project. Required when Type is project.
    TagCondition Byteplus.RuleDimensionConditionsTagCondition
    Condition for selecting alert objects by tag. Required when Type is tag.
    Type string
    Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
    MetaCondition RuleDimensionConditionsMetaCondition
    Condition for selecting alert objects based on resource name. Required when Type is meta.
    ProjectCondition RuleDimensionConditionsProjectCondition
    Condition for selecting alert targets by project. Required when Type is project.
    TagCondition RuleDimensionConditionsTagCondition
    Condition for selecting alert objects by tag. Required when Type is tag.
    Type string
    Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
    meta_condition object
    Condition for selecting alert objects based on resource name. Required when Type is meta.
    project_condition object
    Condition for selecting alert targets by project. Required when Type is project.
    tag_condition object
    Condition for selecting alert objects by tag. Required when Type is tag.
    type string
    Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
    metaCondition RuleDimensionConditionsMetaCondition
    Condition for selecting alert objects based on resource name. Required when Type is meta.
    projectCondition RuleDimensionConditionsProjectCondition
    Condition for selecting alert targets by project. Required when Type is project.
    tagCondition RuleDimensionConditionsTagCondition
    Condition for selecting alert objects by tag. Required when Type is tag.
    type String
    Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
    metaCondition RuleDimensionConditionsMetaCondition
    Condition for selecting alert objects based on resource name. Required when Type is meta.
    projectCondition RuleDimensionConditionsProjectCondition
    Condition for selecting alert targets by project. Required when Type is project.
    tagCondition RuleDimensionConditionsTagCondition
    Condition for selecting alert objects by tag. Required when Type is tag.
    type string
    Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
    meta_condition RuleDimensionConditionsMetaCondition
    Condition for selecting alert objects based on resource name. Required when Type is meta.
    project_condition RuleDimensionConditionsProjectCondition
    Condition for selecting alert targets by project. Required when Type is project.
    tag_condition RuleDimensionConditionsTagCondition
    Condition for selecting alert objects by tag. Required when Type is tag.
    type str
    Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
    metaCondition Property Map
    Condition for selecting alert objects based on resource name. Required when Type is meta.
    projectCondition Property Map
    Condition for selecting alert targets by project. Required when Type is project.
    tagCondition Property Map
    Condition for selecting alert objects by tag. Required when Type is tag.
    type String
    Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.

    RuleDimensionConditionsMetaCondition, RuleDimensionConditionsMetaConditionArgs

    AllDimensions bool
    Whether all resources are included. true: All resources. false: Partial resources.
    Condition string
    Condition. and: All conditions met. or: Any condition met.
    Metas List<Byteplus.RuleDimensionConditionsMetaConditionMeta>
    Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    AllDimensions bool
    Whether all resources are included. true: All resources. false: Partial resources.
    Condition string
    Condition. and: All conditions met. or: Any condition met.
    Metas []RuleDimensionConditionsMetaConditionMeta
    Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    all_dimensions bool
    Whether all resources are included. true: All resources. false: Partial resources.
    condition string
    Condition. and: All conditions met. or: Any condition met.
    metas list(object)
    Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    allDimensions Boolean
    Whether all resources are included. true: All resources. false: Partial resources.
    condition String
    Condition. and: All conditions met. or: Any condition met.
    metas List<RuleDimensionConditionsMetaConditionMeta>
    Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    allDimensions boolean
    Whether all resources are included. true: All resources. false: Partial resources.
    condition string
    Condition. and: All conditions met. or: Any condition met.
    metas RuleDimensionConditionsMetaConditionMeta[]
    Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    all_dimensions bool
    Whether all resources are included. true: All resources. false: Partial resources.
    condition str
    Condition. and: All conditions met. or: Any condition met.
    metas Sequence[RuleDimensionConditionsMetaConditionMeta]
    Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    allDimensions Boolean
    Whether all resources are included. true: All resources. false: Partial resources.
    condition String
    Condition. and: All conditions met. or: Any condition met.
    metas List<Property Map>
    Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.

    RuleDimensionConditionsMetaConditionMeta, RuleDimensionConditionsMetaConditionMetaArgs

    Comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    Key string
    Tag key.
    Values List<string>
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    Comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    Key string
    Tag key.
    Values []string
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key string
    Tag key.
    values list(string)
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator String
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key String
    Tag key.
    values List<String>
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key string
    Tag key.
    values string[]
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator str
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key str
    Tag key.
    values Sequence[str]
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator String
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key String
    Tag key.
    values List<String>
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.

    RuleDimensionConditionsProjectCondition, RuleDimensionConditionsProjectConditionArgs

    Projects List<string>
    Project name list, in array format. Separate multiple values with commas.
    Projects []string
    Project name list, in array format. Separate multiple values with commas.
    projects list(string)
    Project name list, in array format. Separate multiple values with commas.
    projects List<String>
    Project name list, in array format. Separate multiple values with commas.
    projects string[]
    Project name list, in array format. Separate multiple values with commas.
    projects Sequence[str]
    Project name list, in array format. Separate multiple values with commas.
    projects List<String>
    Project name list, in array format. Separate multiple values with commas.

    RuleDimensionConditionsTagCondition, RuleDimensionConditionsTagConditionArgs

    Condition string
    Condition. and: All conditions met. or: Any condition met.
    Tags List<Byteplus.RuleDimensionConditionsTagConditionTag>
    Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    Condition string
    Condition. and: All conditions met. or: Any condition met.
    Tags []RuleDimensionConditionsTagConditionTag
    Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    condition string
    Condition. and: All conditions met. or: Any condition met.
    tags list(object)
    Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    condition String
    Condition. and: All conditions met. or: Any condition met.
    tags List<RuleDimensionConditionsTagConditionTag>
    Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    condition string
    Condition. and: All conditions met. or: Any condition met.
    tags RuleDimensionConditionsTagConditionTag[]
    Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    condition str
    Condition. and: All conditions met. or: Any condition met.
    tags Sequence[RuleDimensionConditionsTagConditionTag]
    Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    condition String
    Condition. and: All conditions met. or: Any condition met.
    tags List<Property Map>
    Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.

    RuleDimensionConditionsTagConditionTag, RuleDimensionConditionsTagConditionTagArgs

    Comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    Key string
    Tag key.
    Values List<string>
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    Comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    Key string
    Tag key.
    Values []string
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key string
    Tag key.
    values list(string)
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator String
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key String
    Tag key.
    values List<String>
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator string
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key string
    Tag key.
    values string[]
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator str
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key str
    Tag key.
    values Sequence[str]
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
    comparator String
    Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
    key String
    Tag key.
    values List<String>
    Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.

    RuleLevelCondition, RuleLevelConditionArgs

    Conditions List<Byteplus.RuleLevelConditionCondition>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    Level string
    Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
    Conditions []RuleLevelConditionCondition
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    Level string
    Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
    conditions list(object)
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    level string
    Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
    conditions List<RuleLevelConditionCondition>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    level String
    Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
    conditions RuleLevelConditionCondition[]
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    level string
    Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
    conditions Sequence[RuleLevelConditionCondition]
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    level str
    Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
    conditions List<Property Map>
    Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
    level String
    Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.

    RuleLevelConditionCondition, RuleLevelConditionConditionArgs

    ComparisonOperator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    DisplayName string
    Metric display name.
    MetricName string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    MetricUnit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    Period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    Statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    Threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    ComparisonOperator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    DisplayName string
    Metric display name.
    MetricName string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    MetricUnit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    Period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    Statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    Threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparison_operator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    display_name string
    Metric display name.
    metric_name string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metric_unit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparisonOperator String
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    displayName String
    Metric display name.
    metricName String
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metricUnit String
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period String
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics String
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold String
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparisonOperator string
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    displayName string
    Metric display name.
    metricName string
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metricUnit string
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period string
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics string
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold string
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparison_operator str
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    display_name str
    Metric display name.
    metric_name str
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metric_unit str
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period str
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics str
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold str
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
    comparisonOperator String
    Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
    displayName String
    Metric display name.
    metricName String
    Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
    metricUnit String
    Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
    period String
    Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
    statistics String
    Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
    threshold String
    Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.

    RuleNoData, RuleNoDataArgs

    Enable bool
    Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
    EvaluationCount int
    No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
    Enable bool
    Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
    EvaluationCount int
    No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
    enable bool
    Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
    evaluation_count number
    No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
    enable Boolean
    Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
    evaluationCount Integer
    No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
    enable boolean
    Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
    evaluationCount number
    No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
    enable bool
    Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
    evaluation_count int
    No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
    enable Boolean
    Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
    evaluationCount Number
    No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.

    RuleNotifyTemplate, RuleNotifyTemplateArgs

    Channel string
    Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
    NotifyTemplateId string
    Notification template ID. Note: Each notification channel supports only one notification template ID.
    Channel string
    Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
    NotifyTemplateId string
    Notification template ID. Note: Each notification channel supports only one notification template ID.
    channel string
    Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
    notify_template_id string
    Notification template ID. Note: Each notification channel supports only one notification template ID.
    channel String
    Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
    notifyTemplateId String
    Notification template ID. Note: Each notification channel supports only one notification template ID.
    channel string
    Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
    notifyTemplateId string
    Notification template ID. Note: Each notification channel supports only one notification template ID.
    channel str
    Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
    notify_template_id str
    Notification template ID. Note: Each notification channel supports only one notification template ID.
    channel String
    Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
    notifyTemplateId String
    Notification template ID. Note: Each notification channel supports only one notification template ID.

    RuleOriginalDimensions, RuleOriginalDimensionsArgs

    Key string
    Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
    Values List<string>
    Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
    Key string
    Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
    Values []string
    Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
    key string
    Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
    values list(string)
    Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
    key String
    Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
    values List<String>
    Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
    key string
    Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
    values string[]
    Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
    key str
    Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
    values Sequence[str]
    Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
    key String
    Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
    values List<String>
    Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .

    RuleRecoveryNotify, RuleRecoveryNotifyArgs

    Enable bool
    Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
    Enable bool
    Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
    enable bool
    Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
    enable Boolean
    Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
    enable boolean
    Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
    enable bool
    Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
    enable Boolean
    Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.

    RuleTag, RuleTagArgs

    Key string
    Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
    Value string
    Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
    Key string
    Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
    Value string
    Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
    key string
    Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
    value string
    Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
    key String
    Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
    value String
    Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
    key string
    Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
    value string
    Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
    key str
    Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
    value str
    Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
    key String
    Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
    value String
    Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.

    Import

    $ pulumi import bytepluscc:cloudmonitor/rule:Rule example "rule_id"
    

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

    Package Details

    Repository
    bytepluscc byteplus-sdk/pulumi-bytepluscc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the bytepluscc Terraform Provider.
    bytepluscc logo
    Viewing docs for bytepluscc v0.0.43
    published on Monday, Jul 27, 2026 by Byteplus

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial