1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CesAlarmRuleV2
opentelekomcloud 1.36.57 published on Thursday, Jan 22, 2026 by opentelekomcloud
opentelekomcloud logo
opentelekomcloud 1.36.57 published on Thursday, Jan 22, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for CES alarm rule you can get at documentation portal

    Manages a CES Alarm Rule v2 resource within OpenTelekomCloud.

    ~> Alarm rule namespaces and dimensions are available on our github link or official documentation.

    Example Usage

    Basic alarm rule for multiple ECS instances

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId1 = config.requireObject<any>("instanceId1");
    const instanceId2 = config.requireObject<any>("instanceId2");
    const topicUrn = config.requireObject<any>("topicUrn");
    const test = new opentelekomcloud.CesAlarmRuleV2("test", {
        name: "alarm-rule-test",
        namespace: "SYS.ECS",
        type: "MULTI_INSTANCE",
        notificationEnabled: true,
        alarmEnabled: true,
        resources: [
            {
                dimensions: [{
                    name: "instance_id",
                    value: instanceId1,
                }],
            },
            {
                dimensions: [{
                    name: "instance_id",
                    value: instanceId2,
                }],
            },
        ],
        policies: [
            {
                metricName: "network_outgoing_bytes_rate_inband",
                period: 1200,
                filter: "average",
                comparisonOperator: ">",
                value: 6.5,
                unit: "B/s",
                count: 1,
                suppressDuration: 300,
                level: 4,
            },
            {
                metricName: "network_outgoing_bytes_rate_inband",
                period: 3600,
                filter: "average",
                comparisonOperator: ">=",
                value: 20,
                unit: "B/s",
                count: 1,
                suppressDuration: 300,
                level: 4,
            },
        ],
        alarmActions: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id1 = config.require_object("instanceId1")
    instance_id2 = config.require_object("instanceId2")
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.CesAlarmRuleV2("test",
        name="alarm-rule-test",
        namespace="SYS.ECS",
        type="MULTI_INSTANCE",
        notification_enabled=True,
        alarm_enabled=True,
        resources=[
            {
                "dimensions": [{
                    "name": "instance_id",
                    "value": instance_id1,
                }],
            },
            {
                "dimensions": [{
                    "name": "instance_id",
                    "value": instance_id2,
                }],
            },
        ],
        policies=[
            {
                "metric_name": "network_outgoing_bytes_rate_inband",
                "period": 1200,
                "filter": "average",
                "comparison_operator": ">",
                "value": 6.5,
                "unit": "B/s",
                "count": 1,
                "suppress_duration": 300,
                "level": 4,
            },
            {
                "metric_name": "network_outgoing_bytes_rate_inband",
                "period": 3600,
                "filter": "average",
                "comparison_operator": ">=",
                "value": 20,
                "unit": "B/s",
                "count": 1,
                "suppress_duration": 300,
                "level": 4,
            },
        ],
        alarm_actions=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId1 := cfg.RequireObject("instanceId1")
    		instanceId2 := cfg.RequireObject("instanceId2")
    		topicUrn := cfg.RequireObject("topicUrn")
    		_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
    			Name:                pulumi.String("alarm-rule-test"),
    			Namespace:           pulumi.String("SYS.ECS"),
    			Type:                pulumi.String("MULTI_INSTANCE"),
    			NotificationEnabled: pulumi.Bool(true),
    			AlarmEnabled:        pulumi.Bool(true),
    			Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
    				&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
    					Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
    						&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    							Name:  pulumi.String("instance_id"),
    							Value: pulumi.Any(instanceId1),
    						},
    					},
    				},
    				&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
    					Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
    						&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    							Name:  pulumi.String("instance_id"),
    							Value: pulumi.Any(instanceId2),
    						},
    					},
    				},
    			},
    			Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
    				&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
    					MetricName:         pulumi.String("network_outgoing_bytes_rate_inband"),
    					Period:             pulumi.Float64(1200),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">"),
    					Value:              pulumi.Float64(6.5),
    					Unit:               pulumi.String("B/s"),
    					Count:              pulumi.Float64(1),
    					SuppressDuration:   pulumi.Float64(300),
    					Level:              pulumi.Float64(4),
    				},
    				&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
    					MetricName:         pulumi.String("network_outgoing_bytes_rate_inband"),
    					Period:             pulumi.Float64(3600),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">="),
    					Value:              pulumi.Float64(20),
    					Unit:               pulumi.String("B/s"),
    					Count:              pulumi.Float64(1),
    					SuppressDuration:   pulumi.Float64(300),
    					Level:              pulumi.Float64(4),
    				},
    			},
    			AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
    				&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId1 = config.RequireObject<dynamic>("instanceId1");
        var instanceId2 = config.RequireObject<dynamic>("instanceId2");
        var topicUrn = config.RequireObject<dynamic>("topicUrn");
        var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
        {
            Name = "alarm-rule-test",
            Namespace = "SYS.ECS",
            Type = "MULTI_INSTANCE",
            NotificationEnabled = true,
            AlarmEnabled = true,
            Resources = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
                {
                    Dimensions = new[]
                    {
                        new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                        {
                            Name = "instance_id",
                            Value = instanceId1,
                        },
                    },
                },
                new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
                {
                    Dimensions = new[]
                    {
                        new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                        {
                            Name = "instance_id",
                            Value = instanceId2,
                        },
                    },
                },
            },
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
                {
                    MetricName = "network_outgoing_bytes_rate_inband",
                    Period = 1200,
                    Filter = "average",
                    ComparisonOperator = ">",
                    Value = 6.5,
                    Unit = "B/s",
                    Count = 1,
                    SuppressDuration = 300,
                    Level = 4,
                },
                new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
                {
                    MetricName = "network_outgoing_bytes_rate_inband",
                    Period = 3600,
                    Filter = "average",
                    ComparisonOperator = ">=",
                    Value = 20,
                    Unit = "B/s",
                    Count = 1,
                    SuppressDuration = 300,
                    Level = 4,
                },
            },
            AlarmActions = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var instanceId1 = config.get("instanceId1");
            final var instanceId2 = config.get("instanceId2");
            final var topicUrn = config.get("topicUrn");
            var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
                .name("alarm-rule-test")
                .namespace("SYS.ECS")
                .type("MULTI_INSTANCE")
                .notificationEnabled(true)
                .alarmEnabled(true)
                .resources(            
                    CesAlarmRuleV2ResourceArgs.builder()
                        .dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
                            .name("instance_id")
                            .value(instanceId1)
                            .build())
                        .build(),
                    CesAlarmRuleV2ResourceArgs.builder()
                        .dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
                            .name("instance_id")
                            .value(instanceId2)
                            .build())
                        .build())
                .policies(            
                    CesAlarmRuleV2PolicyArgs.builder()
                        .metricName("network_outgoing_bytes_rate_inband")
                        .period(1200.0)
                        .filter("average")
                        .comparisonOperator(">")
                        .value(6.5)
                        .unit("B/s")
                        .count(1.0)
                        .suppressDuration(300.0)
                        .level(4.0)
                        .build(),
                    CesAlarmRuleV2PolicyArgs.builder()
                        .metricName("network_outgoing_bytes_rate_inband")
                        .period(3600.0)
                        .filter("average")
                        .comparisonOperator(">=")
                        .value(20.0)
                        .unit("B/s")
                        .count(1.0)
                        .suppressDuration(300.0)
                        .level(4.0)
                        .build())
                .alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      instanceId1:
        type: dynamic
      instanceId2:
        type: dynamic
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:CesAlarmRuleV2
        properties:
          name: alarm-rule-test
          namespace: SYS.ECS
          type: MULTI_INSTANCE
          notificationEnabled: true
          alarmEnabled: true
          resources:
            - dimensions:
                - name: instance_id
                  value: ${instanceId1}
            - dimensions:
                - name: instance_id
                  value: ${instanceId2}
          policies:
            - metricName: network_outgoing_bytes_rate_inband
              period: 1200
              filter: average
              comparisonOperator: '>'
              value: 6.5
              unit: B/s
              count: 1
              suppressDuration: 300
              level: 4
            - metricName: network_outgoing_bytes_rate_inband
              period: 3600
              filter: average
              comparisonOperator: '>='
              value: 20
              unit: B/s
              count: 1
              suppressDuration: 300
              level: 4
          alarmActions:
            - type: notification
              notificationLists:
                - ${topicUrn}
    

    Alarm rule for all instances

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const topicUrn = config.requireObject<any>("topicUrn");
    const test = new opentelekomcloud.CesAlarmRuleV2("test", {
        name: "alarm-rule-all-instance",
        namespace: "AGT.ECS",
        type: "ALL_INSTANCE",
        notificationEnabled: true,
        alarmEnabled: true,
        resources: [{
            dimensions: [
                {
                    name: "instance_id",
                },
                {
                    name: "mount_point",
                },
            ],
        }],
        policies: [{
            metricName: "disk_usedPercent",
            period: 1,
            filter: "average",
            comparisonOperator: ">",
            value: 80,
            count: 1,
            suppressDuration: 0,
            level: 2,
        }],
        alarmActions: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.CesAlarmRuleV2("test",
        name="alarm-rule-all-instance",
        namespace="AGT.ECS",
        type="ALL_INSTANCE",
        notification_enabled=True,
        alarm_enabled=True,
        resources=[{
            "dimensions": [
                {
                    "name": "instance_id",
                },
                {
                    "name": "mount_point",
                },
            ],
        }],
        policies=[{
            "metric_name": "disk_usedPercent",
            "period": 1,
            "filter": "average",
            "comparison_operator": ">",
            "value": 80,
            "count": 1,
            "suppress_duration": 0,
            "level": 2,
        }],
        alarm_actions=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		topicUrn := cfg.RequireObject("topicUrn")
    		_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
    			Name:                pulumi.String("alarm-rule-all-instance"),
    			Namespace:           pulumi.String("AGT.ECS"),
    			Type:                pulumi.String("ALL_INSTANCE"),
    			NotificationEnabled: pulumi.Bool(true),
    			AlarmEnabled:        pulumi.Bool(true),
    			Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
    				&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
    					Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
    						&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    							Name: pulumi.String("instance_id"),
    						},
    						&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    							Name: pulumi.String("mount_point"),
    						},
    					},
    				},
    			},
    			Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
    				&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
    					MetricName:         pulumi.String("disk_usedPercent"),
    					Period:             pulumi.Float64(1),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">"),
    					Value:              pulumi.Float64(80),
    					Count:              pulumi.Float64(1),
    					SuppressDuration:   pulumi.Float64(0),
    					Level:              pulumi.Float64(2),
    				},
    			},
    			AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
    				&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var topicUrn = config.RequireObject<dynamic>("topicUrn");
        var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
        {
            Name = "alarm-rule-all-instance",
            Namespace = "AGT.ECS",
            Type = "ALL_INSTANCE",
            NotificationEnabled = true,
            AlarmEnabled = true,
            Resources = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
                {
                    Dimensions = new[]
                    {
                        new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                        {
                            Name = "instance_id",
                        },
                        new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                        {
                            Name = "mount_point",
                        },
                    },
                },
            },
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
                {
                    MetricName = "disk_usedPercent",
                    Period = 1,
                    Filter = "average",
                    ComparisonOperator = ">",
                    Value = 80,
                    Count = 1,
                    SuppressDuration = 0,
                    Level = 2,
                },
            },
            AlarmActions = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var topicUrn = config.get("topicUrn");
            var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
                .name("alarm-rule-all-instance")
                .namespace("AGT.ECS")
                .type("ALL_INSTANCE")
                .notificationEnabled(true)
                .alarmEnabled(true)
                .resources(CesAlarmRuleV2ResourceArgs.builder()
                    .dimensions(                
                        CesAlarmRuleV2ResourceDimensionArgs.builder()
                            .name("instance_id")
                            .build(),
                        CesAlarmRuleV2ResourceDimensionArgs.builder()
                            .name("mount_point")
                            .build())
                    .build())
                .policies(CesAlarmRuleV2PolicyArgs.builder()
                    .metricName("disk_usedPercent")
                    .period(1.0)
                    .filter("average")
                    .comparisonOperator(">")
                    .value(80.0)
                    .count(1.0)
                    .suppressDuration(0.0)
                    .level(2.0)
                    .build())
                .alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:CesAlarmRuleV2
        properties:
          name: alarm-rule-all-instance
          namespace: AGT.ECS
          type: ALL_INSTANCE
          notificationEnabled: true
          alarmEnabled: true
          resources:
            - dimensions:
                - name: instance_id
                - name: mount_point
          policies:
            - metricName: disk_usedPercent
              period: 1
              filter: average
              comparisonOperator: '>'
              value: 80
              count: 1
              suppressDuration: 0
              level: 2
          alarmActions:
            - type: notification
              notificationLists:
                - ${topicUrn}
    

    Alarm rule for system event monitoring

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = new opentelekomcloud.CesAlarmRuleV2("test", {
        name: "alarm-rule-sys-event",
        namespace: "SYS.ECS",
        type: "EVENT.SYS",
        notificationEnabled: false,
        alarmEnabled: true,
        resources: [{
            dimensions: [{
                name: "resource_id",
                value: "all_instance",
            }],
        }],
        policies: [{
            metricName: "stopServer",
            period: 0,
            filter: "average",
            comparisonOperator: ">=",
            value: 1,
            unit: "count",
            count: 1,
            suppressDuration: 0,
            level: 2,
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.CesAlarmRuleV2("test",
        name="alarm-rule-sys-event",
        namespace="SYS.ECS",
        type="EVENT.SYS",
        notification_enabled=False,
        alarm_enabled=True,
        resources=[{
            "dimensions": [{
                "name": "resource_id",
                "value": "all_instance",
            }],
        }],
        policies=[{
            "metric_name": "stopServer",
            "period": 0,
            "filter": "average",
            "comparison_operator": ">=",
            "value": 1,
            "unit": "count",
            "count": 1,
            "suppress_duration": 0,
            "level": 2,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
    			Name:                pulumi.String("alarm-rule-sys-event"),
    			Namespace:           pulumi.String("SYS.ECS"),
    			Type:                pulumi.String("EVENT.SYS"),
    			NotificationEnabled: pulumi.Bool(false),
    			AlarmEnabled:        pulumi.Bool(true),
    			Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
    				&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
    					Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
    						&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    							Name:  pulumi.String("resource_id"),
    							Value: pulumi.String("all_instance"),
    						},
    					},
    				},
    			},
    			Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
    				&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
    					MetricName:         pulumi.String("stopServer"),
    					Period:             pulumi.Float64(0),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">="),
    					Value:              pulumi.Float64(1),
    					Unit:               pulumi.String("count"),
    					Count:              pulumi.Float64(1),
    					SuppressDuration:   pulumi.Float64(0),
    					Level:              pulumi.Float64(2),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
        {
            Name = "alarm-rule-sys-event",
            Namespace = "SYS.ECS",
            Type = "EVENT.SYS",
            NotificationEnabled = false,
            AlarmEnabled = true,
            Resources = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
                {
                    Dimensions = new[]
                    {
                        new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                        {
                            Name = "resource_id",
                            Value = "all_instance",
                        },
                    },
                },
            },
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
                {
                    MetricName = "stopServer",
                    Period = 0,
                    Filter = "average",
                    ComparisonOperator = ">=",
                    Value = 1,
                    Unit = "count",
                    Count = 1,
                    SuppressDuration = 0,
                    Level = 2,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
                .name("alarm-rule-sys-event")
                .namespace("SYS.ECS")
                .type("EVENT.SYS")
                .notificationEnabled(false)
                .alarmEnabled(true)
                .resources(CesAlarmRuleV2ResourceArgs.builder()
                    .dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
                        .name("resource_id")
                        .value("all_instance")
                        .build())
                    .build())
                .policies(CesAlarmRuleV2PolicyArgs.builder()
                    .metricName("stopServer")
                    .period(0.0)
                    .filter("average")
                    .comparisonOperator(">=")
                    .value(1.0)
                    .unit("count")
                    .count(1.0)
                    .suppressDuration(0.0)
                    .level(2.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: opentelekomcloud:CesAlarmRuleV2
        properties:
          name: alarm-rule-sys-event
          namespace: SYS.ECS
          type: EVENT.SYS
          notificationEnabled: false
          alarmEnabled: true
          resources:
            - dimensions:
                - name: resource_id
                  value: all_instance
          policies:
            - metricName: stopServer
              period: 0
              filter: average
              comparisonOperator: '>='
              value: 1
              unit: count
              count: 1
              suppressDuration: 0
              level: 2
    

    Alarm rule for system event monitoring with notification

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const topicUrn = config.requireObject<any>("topicUrn");
    const test = new opentelekomcloud.CesAlarmRuleV2("test", {
        name: "alarm-rule-sys-event",
        namespace: "SYS.ECS",
        type: "EVENT.SYS",
        notificationEnabled: true,
        alarmEnabled: true,
        resources: [{
            dimensions: [{
                name: "resource_id",
                value: "all_instance",
            }],
        }],
        policies: [{
            metricName: "stopServer",
            period: 0,
            filter: "average",
            comparisonOperator: ">=",
            value: 1,
            unit: "count",
            count: 1,
            suppressDuration: 0,
            level: 2,
        }],
        alarmActions: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.CesAlarmRuleV2("test",
        name="alarm-rule-sys-event",
        namespace="SYS.ECS",
        type="EVENT.SYS",
        notification_enabled=True,
        alarm_enabled=True,
        resources=[{
            "dimensions": [{
                "name": "resource_id",
                "value": "all_instance",
            }],
        }],
        policies=[{
            "metric_name": "stopServer",
            "period": 0,
            "filter": "average",
            "comparison_operator": ">=",
            "value": 1,
            "unit": "count",
            "count": 1,
            "suppress_duration": 0,
            "level": 2,
        }],
        alarm_actions=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		topicUrn := cfg.RequireObject("topicUrn")
    		_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
    			Name:                pulumi.String("alarm-rule-sys-event"),
    			Namespace:           pulumi.String("SYS.ECS"),
    			Type:                pulumi.String("EVENT.SYS"),
    			NotificationEnabled: pulumi.Bool(true),
    			AlarmEnabled:        pulumi.Bool(true),
    			Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
    				&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
    					Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
    						&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    							Name:  pulumi.String("resource_id"),
    							Value: pulumi.String("all_instance"),
    						},
    					},
    				},
    			},
    			Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
    				&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
    					MetricName:         pulumi.String("stopServer"),
    					Period:             pulumi.Float64(0),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">="),
    					Value:              pulumi.Float64(1),
    					Unit:               pulumi.String("count"),
    					Count:              pulumi.Float64(1),
    					SuppressDuration:   pulumi.Float64(0),
    					Level:              pulumi.Float64(2),
    				},
    			},
    			AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
    				&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var topicUrn = config.RequireObject<dynamic>("topicUrn");
        var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
        {
            Name = "alarm-rule-sys-event",
            Namespace = "SYS.ECS",
            Type = "EVENT.SYS",
            NotificationEnabled = true,
            AlarmEnabled = true,
            Resources = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
                {
                    Dimensions = new[]
                    {
                        new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                        {
                            Name = "resource_id",
                            Value = "all_instance",
                        },
                    },
                },
            },
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
                {
                    MetricName = "stopServer",
                    Period = 0,
                    Filter = "average",
                    ComparisonOperator = ">=",
                    Value = 1,
                    Unit = "count",
                    Count = 1,
                    SuppressDuration = 0,
                    Level = 2,
                },
            },
            AlarmActions = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var topicUrn = config.get("topicUrn");
            var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
                .name("alarm-rule-sys-event")
                .namespace("SYS.ECS")
                .type("EVENT.SYS")
                .notificationEnabled(true)
                .alarmEnabled(true)
                .resources(CesAlarmRuleV2ResourceArgs.builder()
                    .dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
                        .name("resource_id")
                        .value("all_instance")
                        .build())
                    .build())
                .policies(CesAlarmRuleV2PolicyArgs.builder()
                    .metricName("stopServer")
                    .period(0.0)
                    .filter("average")
                    .comparisonOperator(">=")
                    .value(1.0)
                    .unit("count")
                    .count(1.0)
                    .suppressDuration(0.0)
                    .level(2.0)
                    .build())
                .alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:CesAlarmRuleV2
        properties:
          name: alarm-rule-sys-event
          namespace: SYS.ECS
          type: EVENT.SYS
          notificationEnabled: true
          alarmEnabled: true
          resources:
            - dimensions:
                - name: resource_id
                  value: all_instance
          policies:
            - metricName: stopServer
              period: 0
              filter: average
              comparisonOperator: '>='
              value: 1
              unit: count
              count: 1
              suppressDuration: 0
              level: 2
          alarmActions:
            - type: notification
              notificationLists:
                - ${topicUrn}
    

    Alarm rule with OK actions

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject<any>("instanceId");
    const topicUrn = config.requireObject<any>("topicUrn");
    const test = new opentelekomcloud.CesAlarmRuleV2("test", {
        name: "alarm-rule-with-ok-actions",
        namespace: "SYS.ECS",
        type: "MULTI_INSTANCE",
        notificationEnabled: true,
        alarmEnabled: true,
        resources: [{
            dimensions: [{
                name: "instance_id",
                value: instanceId,
            }],
        }],
        policies: [{
            metricName: "network_outgoing_bytes_rate_inband",
            period: 300,
            filter: "average",
            comparisonOperator: ">",
            value: 6.5,
            unit: "B/s",
            count: 1,
            level: 2,
        }],
        alarmActions: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
        okActions: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.CesAlarmRuleV2("test",
        name="alarm-rule-with-ok-actions",
        namespace="SYS.ECS",
        type="MULTI_INSTANCE",
        notification_enabled=True,
        alarm_enabled=True,
        resources=[{
            "dimensions": [{
                "name": "instance_id",
                "value": instance_id,
            }],
        }],
        policies=[{
            "metric_name": "network_outgoing_bytes_rate_inband",
            "period": 300,
            "filter": "average",
            "comparison_operator": ">",
            "value": 6.5,
            "unit": "B/s",
            "count": 1,
            "level": 2,
        }],
        alarm_actions=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }],
        ok_actions=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		topicUrn := cfg.RequireObject("topicUrn")
    		_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
    			Name:                pulumi.String("alarm-rule-with-ok-actions"),
    			Namespace:           pulumi.String("SYS.ECS"),
    			Type:                pulumi.String("MULTI_INSTANCE"),
    			NotificationEnabled: pulumi.Bool(true),
    			AlarmEnabled:        pulumi.Bool(true),
    			Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
    				&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
    					Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
    						&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    							Name:  pulumi.String("instance_id"),
    							Value: pulumi.Any(instanceId),
    						},
    					},
    				},
    			},
    			Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
    				&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
    					MetricName:         pulumi.String("network_outgoing_bytes_rate_inband"),
    					Period:             pulumi.Float64(300),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">"),
    					Value:              pulumi.Float64(6.5),
    					Unit:               pulumi.String("B/s"),
    					Count:              pulumi.Float64(1),
    					Level:              pulumi.Float64(2),
    				},
    			},
    			AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
    				&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    			OkActions: opentelekomcloud.CesAlarmRuleV2OkActionArray{
    				&opentelekomcloud.CesAlarmRuleV2OkActionArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var topicUrn = config.RequireObject<dynamic>("topicUrn");
        var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
        {
            Name = "alarm-rule-with-ok-actions",
            Namespace = "SYS.ECS",
            Type = "MULTI_INSTANCE",
            NotificationEnabled = true,
            AlarmEnabled = true,
            Resources = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
                {
                    Dimensions = new[]
                    {
                        new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                        {
                            Name = "instance_id",
                            Value = instanceId,
                        },
                    },
                },
            },
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
                {
                    MetricName = "network_outgoing_bytes_rate_inband",
                    Period = 300,
                    Filter = "average",
                    ComparisonOperator = ">",
                    Value = 6.5,
                    Unit = "B/s",
                    Count = 1,
                    Level = 2,
                },
            },
            AlarmActions = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
            OkActions = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmRuleV2OkActionArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
    import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2OkActionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var instanceId = config.get("instanceId");
            final var topicUrn = config.get("topicUrn");
            var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
                .name("alarm-rule-with-ok-actions")
                .namespace("SYS.ECS")
                .type("MULTI_INSTANCE")
                .notificationEnabled(true)
                .alarmEnabled(true)
                .resources(CesAlarmRuleV2ResourceArgs.builder()
                    .dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
                        .name("instance_id")
                        .value(instanceId)
                        .build())
                    .build())
                .policies(CesAlarmRuleV2PolicyArgs.builder()
                    .metricName("network_outgoing_bytes_rate_inband")
                    .period(300.0)
                    .filter("average")
                    .comparisonOperator(">")
                    .value(6.5)
                    .unit("B/s")
                    .count(1.0)
                    .level(2.0)
                    .build())
                .alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .okActions(CesAlarmRuleV2OkActionArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:CesAlarmRuleV2
        properties:
          name: alarm-rule-with-ok-actions
          namespace: SYS.ECS
          type: MULTI_INSTANCE
          notificationEnabled: true
          alarmEnabled: true
          resources:
            - dimensions:
                - name: instance_id
                  value: ${instanceId}
          policies:
            - metricName: network_outgoing_bytes_rate_inband
              period: 300
              filter: average
              comparisonOperator: '>'
              value: 6.5
              unit: B/s
              count: 1
              level: 2
          alarmActions:
            - type: notification
              notificationLists:
                - ${topicUrn}
          okActions:
            - type: notification
              notificationLists:
                - ${topicUrn}
    

    Create CesAlarmRuleV2 Resource

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

    Constructor syntax

    new CesAlarmRuleV2(name: string, args: CesAlarmRuleV2Args, opts?: CustomResourceOptions);
    @overload
    def CesAlarmRuleV2(resource_name: str,
                       args: CesAlarmRuleV2Args,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CesAlarmRuleV2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       namespace: Optional[str] = None,
                       policies: Optional[Sequence[CesAlarmRuleV2PolicyArgs]] = None,
                       description: Optional[str] = None,
                       notification_enabled: Optional[bool] = None,
                       alarm_actions: Optional[Sequence[CesAlarmRuleV2AlarmActionArgs]] = None,
                       enterprise_project_id: Optional[str] = None,
                       name: Optional[str] = None,
                       alarm_template_id: Optional[str] = None,
                       notification_begin_time: Optional[str] = None,
                       ces_alarm_rule_v2_id: Optional[str] = None,
                       notification_end_time: Optional[str] = None,
                       ok_actions: Optional[Sequence[CesAlarmRuleV2OkActionArgs]] = None,
                       alarm_enabled: Optional[bool] = None,
                       resource_group_id: Optional[str] = None,
                       resources: Optional[Sequence[CesAlarmRuleV2ResourceArgs]] = None,
                       timeouts: Optional[CesAlarmRuleV2TimeoutsArgs] = None,
                       type: Optional[str] = None)
    func NewCesAlarmRuleV2(ctx *Context, name string, args CesAlarmRuleV2Args, opts ...ResourceOption) (*CesAlarmRuleV2, error)
    public CesAlarmRuleV2(string name, CesAlarmRuleV2Args args, CustomResourceOptions? opts = null)
    public CesAlarmRuleV2(String name, CesAlarmRuleV2Args args)
    public CesAlarmRuleV2(String name, CesAlarmRuleV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:CesAlarmRuleV2
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CesAlarmRuleV2Args
    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 CesAlarmRuleV2Args
    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 CesAlarmRuleV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CesAlarmRuleV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CesAlarmRuleV2Args
    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 cesAlarmRuleV2Resource = new Opentelekomcloud.CesAlarmRuleV2("cesAlarmRuleV2Resource", new()
    {
        Namespace = "string",
        Policies = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
            {
                ComparisonOperator = "string",
                Count = 0,
                Filter = "string",
                MetricName = "string",
                Period = 0,
                Level = 0,
                SuppressDuration = 0,
                Unit = "string",
                Value = 0,
            },
        },
        Description = "string",
        NotificationEnabled = false,
        AlarmActions = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
            {
                NotificationLists = new[]
                {
                    "string",
                },
                Type = "string",
            },
        },
        EnterpriseProjectId = "string",
        Name = "string",
        AlarmTemplateId = "string",
        NotificationBeginTime = "string",
        CesAlarmRuleV2Id = "string",
        NotificationEndTime = "string",
        OkActions = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmRuleV2OkActionArgs
            {
                NotificationLists = new[]
                {
                    "string",
                },
                Type = "string",
            },
        },
        AlarmEnabled = false,
        ResourceGroupId = "string",
        Resources = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
            {
                Dimensions = new[]
                {
                    new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
                    {
                        Name = "string",
                        Value = "string",
                    },
                },
            },
        },
        Timeouts = new Opentelekomcloud.Inputs.CesAlarmRuleV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Type = "string",
    });
    
    example, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "cesAlarmRuleV2Resource", &opentelekomcloud.CesAlarmRuleV2Args{
    	Namespace: pulumi.String("string"),
    	Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
    		&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
    			ComparisonOperator: pulumi.String("string"),
    			Count:              pulumi.Float64(0),
    			Filter:             pulumi.String("string"),
    			MetricName:         pulumi.String("string"),
    			Period:             pulumi.Float64(0),
    			Level:              pulumi.Float64(0),
    			SuppressDuration:   pulumi.Float64(0),
    			Unit:               pulumi.String("string"),
    			Value:              pulumi.Float64(0),
    		},
    	},
    	Description:         pulumi.String("string"),
    	NotificationEnabled: pulumi.Bool(false),
    	AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
    		&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
    			NotificationLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    	EnterpriseProjectId:   pulumi.String("string"),
    	Name:                  pulumi.String("string"),
    	AlarmTemplateId:       pulumi.String("string"),
    	NotificationBeginTime: pulumi.String("string"),
    	CesAlarmRuleV2Id:      pulumi.String("string"),
    	NotificationEndTime:   pulumi.String("string"),
    	OkActions: opentelekomcloud.CesAlarmRuleV2OkActionArray{
    		&opentelekomcloud.CesAlarmRuleV2OkActionArgs{
    			NotificationLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    	AlarmEnabled:    pulumi.Bool(false),
    	ResourceGroupId: pulumi.String("string"),
    	Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
    		&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
    			Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
    				&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
    					Name:  pulumi.String("string"),
    					Value: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Timeouts: &opentelekomcloud.CesAlarmRuleV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Type: pulumi.String("string"),
    })
    
    var cesAlarmRuleV2Resource = new CesAlarmRuleV2("cesAlarmRuleV2Resource", CesAlarmRuleV2Args.builder()
        .namespace("string")
        .policies(CesAlarmRuleV2PolicyArgs.builder()
            .comparisonOperator("string")
            .count(0.0)
            .filter("string")
            .metricName("string")
            .period(0.0)
            .level(0.0)
            .suppressDuration(0.0)
            .unit("string")
            .value(0.0)
            .build())
        .description("string")
        .notificationEnabled(false)
        .alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
            .notificationLists("string")
            .type("string")
            .build())
        .enterpriseProjectId("string")
        .name("string")
        .alarmTemplateId("string")
        .notificationBeginTime("string")
        .cesAlarmRuleV2Id("string")
        .notificationEndTime("string")
        .okActions(CesAlarmRuleV2OkActionArgs.builder()
            .notificationLists("string")
            .type("string")
            .build())
        .alarmEnabled(false)
        .resourceGroupId("string")
        .resources(CesAlarmRuleV2ResourceArgs.builder()
            .dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
                .name("string")
                .value("string")
                .build())
            .build())
        .timeouts(CesAlarmRuleV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .type("string")
        .build());
    
    ces_alarm_rule_v2_resource = opentelekomcloud.CesAlarmRuleV2("cesAlarmRuleV2Resource",
        namespace="string",
        policies=[{
            "comparison_operator": "string",
            "count": 0,
            "filter": "string",
            "metric_name": "string",
            "period": 0,
            "level": 0,
            "suppress_duration": 0,
            "unit": "string",
            "value": 0,
        }],
        description="string",
        notification_enabled=False,
        alarm_actions=[{
            "notification_lists": ["string"],
            "type": "string",
        }],
        enterprise_project_id="string",
        name="string",
        alarm_template_id="string",
        notification_begin_time="string",
        ces_alarm_rule_v2_id="string",
        notification_end_time="string",
        ok_actions=[{
            "notification_lists": ["string"],
            "type": "string",
        }],
        alarm_enabled=False,
        resource_group_id="string",
        resources=[{
            "dimensions": [{
                "name": "string",
                "value": "string",
            }],
        }],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        type="string")
    
    const cesAlarmRuleV2Resource = new opentelekomcloud.CesAlarmRuleV2("cesAlarmRuleV2Resource", {
        namespace: "string",
        policies: [{
            comparisonOperator: "string",
            count: 0,
            filter: "string",
            metricName: "string",
            period: 0,
            level: 0,
            suppressDuration: 0,
            unit: "string",
            value: 0,
        }],
        description: "string",
        notificationEnabled: false,
        alarmActions: [{
            notificationLists: ["string"],
            type: "string",
        }],
        enterpriseProjectId: "string",
        name: "string",
        alarmTemplateId: "string",
        notificationBeginTime: "string",
        cesAlarmRuleV2Id: "string",
        notificationEndTime: "string",
        okActions: [{
            notificationLists: ["string"],
            type: "string",
        }],
        alarmEnabled: false,
        resourceGroupId: "string",
        resources: [{
            dimensions: [{
                name: "string",
                value: "string",
            }],
        }],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        type: "string",
    });
    
    type: opentelekomcloud:CesAlarmRuleV2
    properties:
        alarmActions:
            - notificationLists:
                - string
              type: string
        alarmEnabled: false
        alarmTemplateId: string
        cesAlarmRuleV2Id: string
        description: string
        enterpriseProjectId: string
        name: string
        namespace: string
        notificationBeginTime: string
        notificationEnabled: false
        notificationEndTime: string
        okActions:
            - notificationLists:
                - string
              type: string
        policies:
            - comparisonOperator: string
              count: 0
              filter: string
              level: 0
              metricName: string
              period: 0
              suppressDuration: 0
              unit: string
              value: 0
        resourceGroupId: string
        resources:
            - dimensions:
                - name: string
                  value: string
        timeouts:
            create: string
            delete: string
            update: string
        type: string
    

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

    Namespace string
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    Policies List<CesAlarmRuleV2Policy>
    Specifies the alarm policies. The policies structure is documented below.
    AlarmActions List<CesAlarmRuleV2AlarmAction>
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    AlarmEnabled bool
    Specifies whether to enable the alarm rule. The default value is true.
    AlarmTemplateId string
    Specifies the ID of the alarm template. Changing this creates a new resource.
    CesAlarmRuleV2Id string
    The resource ID in UUID format.
    Description string
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    EnterpriseProjectId string

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    Name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    NotificationEnabled bool
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    NotificationEndTime string
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    OkActions List<CesAlarmRuleV2OkAction>
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    ResourceGroupId string
    Specifies the resource group ID. Changing this creates a new resource.
    Resources List<CesAlarmRuleV2Resource>
    Specifies the list of resources to monitor. The resources structure is documented below.
    Timeouts CesAlarmRuleV2Timeouts
    Type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    Namespace string
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    Policies []CesAlarmRuleV2PolicyArgs
    Specifies the alarm policies. The policies structure is documented below.
    AlarmActions []CesAlarmRuleV2AlarmActionArgs
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    AlarmEnabled bool
    Specifies whether to enable the alarm rule. The default value is true.
    AlarmTemplateId string
    Specifies the ID of the alarm template. Changing this creates a new resource.
    CesAlarmRuleV2Id string
    The resource ID in UUID format.
    Description string
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    EnterpriseProjectId string

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    Name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    NotificationEnabled bool
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    NotificationEndTime string
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    OkActions []CesAlarmRuleV2OkActionArgs
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    ResourceGroupId string
    Specifies the resource group ID. Changing this creates a new resource.
    Resources []CesAlarmRuleV2ResourceArgs
    Specifies the list of resources to monitor. The resources structure is documented below.
    Timeouts CesAlarmRuleV2TimeoutsArgs
    Type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    namespace String
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    policies List<CesAlarmRuleV2Policy>
    Specifies the alarm policies. The policies structure is documented below.
    alarmActions List<CesAlarmRuleV2AlarmAction>
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarmEnabled Boolean
    Specifies whether to enable the alarm rule. The default value is true.
    alarmTemplateId String
    Specifies the ID of the alarm template. Changing this creates a new resource.
    cesAlarmRuleV2Id String
    The resource ID in UUID format.
    description String
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterpriseProjectId String

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name String
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notificationEnabled Boolean
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notificationEndTime String
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    okActions List<CesAlarmRuleV2OkAction>
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    resourceGroupId String
    Specifies the resource group ID. Changing this creates a new resource.
    resources List<CesAlarmRuleV2Resource>
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts CesAlarmRuleV2Timeouts
    type String
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    namespace string
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    policies CesAlarmRuleV2Policy[]
    Specifies the alarm policies. The policies structure is documented below.
    alarmActions CesAlarmRuleV2AlarmAction[]
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarmEnabled boolean
    Specifies whether to enable the alarm rule. The default value is true.
    alarmTemplateId string
    Specifies the ID of the alarm template. Changing this creates a new resource.
    cesAlarmRuleV2Id string
    The resource ID in UUID format.
    description string
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterpriseProjectId string

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    notificationBeginTime string
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notificationEnabled boolean
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notificationEndTime string
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    okActions CesAlarmRuleV2OkAction[]
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    resourceGroupId string
    Specifies the resource group ID. Changing this creates a new resource.
    resources CesAlarmRuleV2Resource[]
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts CesAlarmRuleV2Timeouts
    type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    namespace str
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    policies Sequence[CesAlarmRuleV2PolicyArgs]
    Specifies the alarm policies. The policies structure is documented below.
    alarm_actions Sequence[CesAlarmRuleV2AlarmActionArgs]
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarm_enabled bool
    Specifies whether to enable the alarm rule. The default value is true.
    alarm_template_id str
    Specifies the ID of the alarm template. Changing this creates a new resource.
    ces_alarm_rule_v2_id str
    The resource ID in UUID format.
    description str
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterprise_project_id str

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name str
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    notification_begin_time str
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notification_enabled bool
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notification_end_time str
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    ok_actions Sequence[CesAlarmRuleV2OkActionArgs]
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    resource_group_id str
    Specifies the resource group ID. Changing this creates a new resource.
    resources Sequence[CesAlarmRuleV2ResourceArgs]
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts CesAlarmRuleV2TimeoutsArgs
    type str
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    namespace String
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    policies List<Property Map>
    Specifies the alarm policies. The policies structure is documented below.
    alarmActions List<Property Map>
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarmEnabled Boolean
    Specifies whether to enable the alarm rule. The default value is true.
    alarmTemplateId String
    Specifies the ID of the alarm template. Changing this creates a new resource.
    cesAlarmRuleV2Id String
    The resource ID in UUID format.
    description String
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterpriseProjectId String

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name String
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notificationEnabled Boolean
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notificationEndTime String
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    okActions List<Property Map>
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    resourceGroupId String
    Specifies the resource group ID. Changing this creates a new resource.
    resources List<Property Map>
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts Property Map
    type String
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.

    Outputs

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

    AlarmId string
    The alarm rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    AlarmId string
    The alarm rule ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    alarmId String
    The alarm rule ID.
    id String
    The provider-assigned unique ID for this managed resource.
    alarmId string
    The alarm rule ID.
    id string
    The provider-assigned unique ID for this managed resource.
    alarm_id str
    The alarm rule ID.
    id str
    The provider-assigned unique ID for this managed resource.
    alarmId String
    The alarm rule ID.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CesAlarmRuleV2 Resource

    Get an existing CesAlarmRuleV2 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?: CesAlarmRuleV2State, opts?: CustomResourceOptions): CesAlarmRuleV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_actions: Optional[Sequence[CesAlarmRuleV2AlarmActionArgs]] = None,
            alarm_enabled: Optional[bool] = None,
            alarm_id: Optional[str] = None,
            alarm_template_id: Optional[str] = None,
            ces_alarm_rule_v2_id: Optional[str] = None,
            description: Optional[str] = None,
            enterprise_project_id: Optional[str] = None,
            name: Optional[str] = None,
            namespace: Optional[str] = None,
            notification_begin_time: Optional[str] = None,
            notification_enabled: Optional[bool] = None,
            notification_end_time: Optional[str] = None,
            ok_actions: Optional[Sequence[CesAlarmRuleV2OkActionArgs]] = None,
            policies: Optional[Sequence[CesAlarmRuleV2PolicyArgs]] = None,
            resource_group_id: Optional[str] = None,
            resources: Optional[Sequence[CesAlarmRuleV2ResourceArgs]] = None,
            timeouts: Optional[CesAlarmRuleV2TimeoutsArgs] = None,
            type: Optional[str] = None) -> CesAlarmRuleV2
    func GetCesAlarmRuleV2(ctx *Context, name string, id IDInput, state *CesAlarmRuleV2State, opts ...ResourceOption) (*CesAlarmRuleV2, error)
    public static CesAlarmRuleV2 Get(string name, Input<string> id, CesAlarmRuleV2State? state, CustomResourceOptions? opts = null)
    public static CesAlarmRuleV2 get(String name, Output<String> id, CesAlarmRuleV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:CesAlarmRuleV2    get:      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:
    AlarmActions List<CesAlarmRuleV2AlarmAction>
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    AlarmEnabled bool
    Specifies whether to enable the alarm rule. The default value is true.
    AlarmId string
    The alarm rule ID.
    AlarmTemplateId string
    Specifies the ID of the alarm template. Changing this creates a new resource.
    CesAlarmRuleV2Id string
    The resource ID in UUID format.
    Description string
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    EnterpriseProjectId string

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    Name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    Namespace string
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    NotificationEnabled bool
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    NotificationEndTime string
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    OkActions List<CesAlarmRuleV2OkAction>
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    Policies List<CesAlarmRuleV2Policy>
    Specifies the alarm policies. The policies structure is documented below.
    ResourceGroupId string
    Specifies the resource group ID. Changing this creates a new resource.
    Resources List<CesAlarmRuleV2Resource>
    Specifies the list of resources to monitor. The resources structure is documented below.
    Timeouts CesAlarmRuleV2Timeouts
    Type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    AlarmActions []CesAlarmRuleV2AlarmActionArgs
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    AlarmEnabled bool
    Specifies whether to enable the alarm rule. The default value is true.
    AlarmId string
    The alarm rule ID.
    AlarmTemplateId string
    Specifies the ID of the alarm template. Changing this creates a new resource.
    CesAlarmRuleV2Id string
    The resource ID in UUID format.
    Description string
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    EnterpriseProjectId string

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    Name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    Namespace string
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    NotificationEnabled bool
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    NotificationEndTime string
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    OkActions []CesAlarmRuleV2OkActionArgs
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    Policies []CesAlarmRuleV2PolicyArgs
    Specifies the alarm policies. The policies structure is documented below.
    ResourceGroupId string
    Specifies the resource group ID. Changing this creates a new resource.
    Resources []CesAlarmRuleV2ResourceArgs
    Specifies the list of resources to monitor. The resources structure is documented below.
    Timeouts CesAlarmRuleV2TimeoutsArgs
    Type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    alarmActions List<CesAlarmRuleV2AlarmAction>
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarmEnabled Boolean
    Specifies whether to enable the alarm rule. The default value is true.
    alarmId String
    The alarm rule ID.
    alarmTemplateId String
    Specifies the ID of the alarm template. Changing this creates a new resource.
    cesAlarmRuleV2Id String
    The resource ID in UUID format.
    description String
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterpriseProjectId String

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name String
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    namespace String
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notificationEnabled Boolean
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notificationEndTime String
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    okActions List<CesAlarmRuleV2OkAction>
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    policies List<CesAlarmRuleV2Policy>
    Specifies the alarm policies. The policies structure is documented below.
    resourceGroupId String
    Specifies the resource group ID. Changing this creates a new resource.
    resources List<CesAlarmRuleV2Resource>
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts CesAlarmRuleV2Timeouts
    type String
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    alarmActions CesAlarmRuleV2AlarmAction[]
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarmEnabled boolean
    Specifies whether to enable the alarm rule. The default value is true.
    alarmId string
    The alarm rule ID.
    alarmTemplateId string
    Specifies the ID of the alarm template. Changing this creates a new resource.
    cesAlarmRuleV2Id string
    The resource ID in UUID format.
    description string
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterpriseProjectId string

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    namespace string
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    notificationBeginTime string
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notificationEnabled boolean
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notificationEndTime string
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    okActions CesAlarmRuleV2OkAction[]
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    policies CesAlarmRuleV2Policy[]
    Specifies the alarm policies. The policies structure is documented below.
    resourceGroupId string
    Specifies the resource group ID. Changing this creates a new resource.
    resources CesAlarmRuleV2Resource[]
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts CesAlarmRuleV2Timeouts
    type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    alarm_actions Sequence[CesAlarmRuleV2AlarmActionArgs]
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarm_enabled bool
    Specifies whether to enable the alarm rule. The default value is true.
    alarm_id str
    The alarm rule ID.
    alarm_template_id str
    Specifies the ID of the alarm template. Changing this creates a new resource.
    ces_alarm_rule_v2_id str
    The resource ID in UUID format.
    description str
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterprise_project_id str

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name str
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    namespace str
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    notification_begin_time str
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notification_enabled bool
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notification_end_time str
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    ok_actions Sequence[CesAlarmRuleV2OkActionArgs]
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    policies Sequence[CesAlarmRuleV2PolicyArgs]
    Specifies the alarm policies. The policies structure is documented below.
    resource_group_id str
    Specifies the resource group ID. Changing this creates a new resource.
    resources Sequence[CesAlarmRuleV2ResourceArgs]
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts CesAlarmRuleV2TimeoutsArgs
    type str
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    alarmActions List<Property Map>
    Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
    alarmEnabled Boolean
    Specifies whether to enable the alarm rule. The default value is true.
    alarmId String
    The alarm rule ID.
    alarmTemplateId String
    Specifies the ID of the alarm template. Changing this creates a new resource.
    cesAlarmRuleV2Id String
    The resource ID in UUID format.
    description String
    The value can be a string of 0 to 256 characters. Changing this creates a new resource.
    enterpriseProjectId String

    Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.

    Note If notification_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.

    <a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The policies block supports:

    name String
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    namespace String
    Specifies the namespace in service.item format. service and item each must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye.
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
    notificationEnabled Boolean
    Specifies whether to enable the action to be triggered by an alarm. The default value is false. Changing this creates a new resource.
    notificationEndTime String
    Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
    okActions List<Property Map>
    Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
    policies List<Property Map>
    Specifies the alarm policies. The policies structure is documented below.
    resourceGroupId String
    Specifies the resource group ID. Changing this creates a new resource.
    resources List<Property Map>
    Specifies the list of resources to monitor. The resources structure is documented below.
    timeouts Property Map
    type String
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.

    Supporting Types

    CesAlarmRuleV2AlarmAction, CesAlarmRuleV2AlarmActionArgs

    NotificationLists List<string>

    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS.

    To enable the autoscaling alarm rules take effect, you must bind scaling policies.

    Type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    NotificationLists []string

    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS.

    To enable the autoscaling alarm rules take effect, you must bind scaling policies.

    Type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists List<String>

    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS.

    To enable the autoscaling alarm rules take effect, you must bind scaling policies.

    type String
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists string[]

    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS.

    To enable the autoscaling alarm rules take effect, you must bind scaling policies.

    type string
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notification_lists Sequence[str]

    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS.

    To enable the autoscaling alarm rules take effect, you must bind scaling policies.

    type str
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists List<String>

    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS.

    To enable the autoscaling alarm rules take effect, you must bind scaling policies.

    type String
    Specifies the type of action triggered by an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.

    CesAlarmRuleV2OkAction, CesAlarmRuleV2OkActionArgs

    NotificationLists List<string>
    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5.
    Type string
    Specifies the type of action triggered by the clearing of an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    NotificationLists []string
    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5.
    Type string
    Specifies the type of action triggered by the clearing of an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists List<String>
    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5.
    type String
    Specifies the type of action triggered by the clearing of an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists string[]
    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5.
    type string
    Specifies the type of action triggered by the clearing of an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notification_lists Sequence[str]
    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5.
    type str
    Specifies the type of action triggered by the clearing of an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists List<String>
    Specifies the list of objects to be notified if the alarm status changes. The maximum length is 5.
    type String
    Specifies the type of action triggered by the clearing of an alarm. The value can be:

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.

    CesAlarmRuleV2Policy, CesAlarmRuleV2PolicyArgs

    ComparisonOperator string
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, <=, or !=.
    Count double
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    Filter string
    Specifies the data rollup method. The value can be max, min, average, sum, and variance.
    MetricName string
    Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
    Period double

    Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, and 86400.

    If period is set to 1, the raw metric data is used to determine whether to generate an alarm. When the value of type is EVENT.SYS or EVENT.CUSTOM, period can be set to 0.

    Level double

    Specifies the alarm severity. The value can be 1, 2, 3, or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2.

    <a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The resources block supports:

    SuppressDuration double

    Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:

    • 0: Cloud Eye triggers the alarm only once.
    • 300: Cloud Eye triggers the alarm every 5 minutes.
    • 600: Cloud Eye triggers the alarm every 10 minutes.
    • 900: Cloud Eye triggers the alarm every 15 minutes.
    • 1800: Cloud Eye triggers the alarm every 30 minutes.
    • 3600: Cloud Eye triggers the alarm every hour.
    • 10800: Cloud Eye triggers the alarm every 3 hours.
    • 21600: Cloud Eye triggers the alarm every 6 hours.
    • 43200: Cloud Eye triggers the alarm every 12 hours.
    • 86400: Cloud Eye triggers the alarm every day.

    The default value is 0.

    Unit string
    Specifies the data unit. The value can be a string of 0 to 32 characters.
    Value double

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    ComparisonOperator string
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, <=, or !=.
    Count float64
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    Filter string
    Specifies the data rollup method. The value can be max, min, average, sum, and variance.
    MetricName string
    Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
    Period float64

    Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, and 86400.

    If period is set to 1, the raw metric data is used to determine whether to generate an alarm. When the value of type is EVENT.SYS or EVENT.CUSTOM, period can be set to 0.

    Level float64

    Specifies the alarm severity. The value can be 1, 2, 3, or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2.

    <a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The resources block supports:

    SuppressDuration float64

    Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:

    • 0: Cloud Eye triggers the alarm only once.
    • 300: Cloud Eye triggers the alarm every 5 minutes.
    • 600: Cloud Eye triggers the alarm every 10 minutes.
    • 900: Cloud Eye triggers the alarm every 15 minutes.
    • 1800: Cloud Eye triggers the alarm every 30 minutes.
    • 3600: Cloud Eye triggers the alarm every hour.
    • 10800: Cloud Eye triggers the alarm every 3 hours.
    • 21600: Cloud Eye triggers the alarm every 6 hours.
    • 43200: Cloud Eye triggers the alarm every 12 hours.
    • 86400: Cloud Eye triggers the alarm every day.

    The default value is 0.

    Unit string
    Specifies the data unit. The value can be a string of 0 to 32 characters.
    Value float64

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    comparisonOperator String
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, <=, or !=.
    count Double
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter String
    Specifies the data rollup method. The value can be max, min, average, sum, and variance.
    metricName String
    Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
    period Double

    Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, and 86400.

    If period is set to 1, the raw metric data is used to determine whether to generate an alarm. When the value of type is EVENT.SYS or EVENT.CUSTOM, period can be set to 0.

    level Double

    Specifies the alarm severity. The value can be 1, 2, 3, or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2.

    <a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The resources block supports:

    suppressDuration Double

    Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:

    • 0: Cloud Eye triggers the alarm only once.
    • 300: Cloud Eye triggers the alarm every 5 minutes.
    • 600: Cloud Eye triggers the alarm every 10 minutes.
    • 900: Cloud Eye triggers the alarm every 15 minutes.
    • 1800: Cloud Eye triggers the alarm every 30 minutes.
    • 3600: Cloud Eye triggers the alarm every hour.
    • 10800: Cloud Eye triggers the alarm every 3 hours.
    • 21600: Cloud Eye triggers the alarm every 6 hours.
    • 43200: Cloud Eye triggers the alarm every 12 hours.
    • 86400: Cloud Eye triggers the alarm every day.

    The default value is 0.

    unit String
    Specifies the data unit. The value can be a string of 0 to 32 characters.
    value Double

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    comparisonOperator string
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, <=, or !=.
    count number
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter string
    Specifies the data rollup method. The value can be max, min, average, sum, and variance.
    metricName string
    Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
    period number

    Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, and 86400.

    If period is set to 1, the raw metric data is used to determine whether to generate an alarm. When the value of type is EVENT.SYS or EVENT.CUSTOM, period can be set to 0.

    level number

    Specifies the alarm severity. The value can be 1, 2, 3, or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2.

    <a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The resources block supports:

    suppressDuration number

    Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:

    • 0: Cloud Eye triggers the alarm only once.
    • 300: Cloud Eye triggers the alarm every 5 minutes.
    • 600: Cloud Eye triggers the alarm every 10 minutes.
    • 900: Cloud Eye triggers the alarm every 15 minutes.
    • 1800: Cloud Eye triggers the alarm every 30 minutes.
    • 3600: Cloud Eye triggers the alarm every hour.
    • 10800: Cloud Eye triggers the alarm every 3 hours.
    • 21600: Cloud Eye triggers the alarm every 6 hours.
    • 43200: Cloud Eye triggers the alarm every 12 hours.
    • 86400: Cloud Eye triggers the alarm every day.

    The default value is 0.

    unit string
    Specifies the data unit. The value can be a string of 0 to 32 characters.
    value number

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    comparison_operator str
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, <=, or !=.
    count float
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter str
    Specifies the data rollup method. The value can be max, min, average, sum, and variance.
    metric_name str
    Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
    period float

    Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, and 86400.

    If period is set to 1, the raw metric data is used to determine whether to generate an alarm. When the value of type is EVENT.SYS or EVENT.CUSTOM, period can be set to 0.

    level float

    Specifies the alarm severity. The value can be 1, 2, 3, or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2.

    <a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The resources block supports:

    suppress_duration float

    Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:

    • 0: Cloud Eye triggers the alarm only once.
    • 300: Cloud Eye triggers the alarm every 5 minutes.
    • 600: Cloud Eye triggers the alarm every 10 minutes.
    • 900: Cloud Eye triggers the alarm every 15 minutes.
    • 1800: Cloud Eye triggers the alarm every 30 minutes.
    • 3600: Cloud Eye triggers the alarm every hour.
    • 10800: Cloud Eye triggers the alarm every 3 hours.
    • 21600: Cloud Eye triggers the alarm every 6 hours.
    • 43200: Cloud Eye triggers the alarm every 12 hours.
    • 86400: Cloud Eye triggers the alarm every day.

    The default value is 0.

    unit str
    Specifies the data unit. The value can be a string of 0 to 32 characters.
    value float

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    comparisonOperator String
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, <=, or !=.
    count Number
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter String
    Specifies the data rollup method. The value can be max, min, average, sum, and variance.
    metricName String
    Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye.
    period Number

    Specifies the alarm checking period in seconds. The value can be 0, 1, 300, 1200, 3600, 14400, and 86400.

    If period is set to 1, the raw metric data is used to determine whether to generate an alarm. When the value of type is EVENT.SYS or EVENT.CUSTOM, period can be set to 0.

    level Number

    Specifies the alarm severity. The value can be 1, 2, 3, or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2.

    <a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The resources block supports:

    suppressDuration Number

    Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:

    • 0: Cloud Eye triggers the alarm only once.
    • 300: Cloud Eye triggers the alarm every 5 minutes.
    • 600: Cloud Eye triggers the alarm every 10 minutes.
    • 900: Cloud Eye triggers the alarm every 15 minutes.
    • 1800: Cloud Eye triggers the alarm every 30 minutes.
    • 3600: Cloud Eye triggers the alarm every hour.
    • 10800: Cloud Eye triggers the alarm every 3 hours.
    • 21600: Cloud Eye triggers the alarm every 6 hours.
    • 43200: Cloud Eye triggers the alarm every 12 hours.
    • 86400: Cloud Eye triggers the alarm every day.

    The default value is 0.

    unit String
    Specifies the data unit. The value can be a string of 0 to 32 characters.
    value Number

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    CesAlarmRuleV2Resource, CesAlarmRuleV2ResourceArgs

    Dimensions List<CesAlarmRuleV2ResourceDimension>

    Specifies the list of metric dimensions. The dimensions structure is documented below.

    <a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The dimensions block supports:

    Dimensions []CesAlarmRuleV2ResourceDimension

    Specifies the list of metric dimensions. The dimensions structure is documented below.

    <a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The dimensions block supports:

    dimensions List<CesAlarmRuleV2ResourceDimension>

    Specifies the list of metric dimensions. The dimensions structure is documented below.

    <a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The dimensions block supports:

    dimensions CesAlarmRuleV2ResourceDimension[]

    Specifies the list of metric dimensions. The dimensions structure is documented below.

    <a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The dimensions block supports:

    dimensions Sequence[CesAlarmRuleV2ResourceDimension]

    Specifies the list of metric dimensions. The dimensions structure is documented below.

    <a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The dimensions block supports:

    dimensions List<Property Map>

    Specifies the list of metric dimensions. The dimensions structure is documented below.

    <a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The dimensions block supports:

    CesAlarmRuleV2ResourceDimension, CesAlarmRuleV2ResourceDimensionArgs

    Name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    Value string

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    Name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    Value string

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    name String
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    value String

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    name string
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    value string

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    name str
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    value str

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    name String
    Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-).
    value String

    Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.

    <a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The alarm_actions block supports:

    CesAlarmRuleV2Timeouts, CesAlarmRuleV2TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    CES alarm rules v2 can be imported using the id, e.g.

    bash

    $ pulumi import opentelekomcloud:index/cesAlarmRuleV2:CesAlarmRuleV2 alarm_rule al1619578509719Ga0X1RGWv
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.57 published on Thursday, Jan 22, 2026 by opentelekomcloud
      Meet Neo: Your AI Platform Teammate