1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CesAlarmTemplateV2
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 template you can get at documentation portal

    Manages a CES alarm template resource within OpenTelekomCloud.

    Example Usage

    Create a metric alarm template

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = new opentelekomcloud.CesAlarmTemplateV2("test", {
        name: "my-alarm-template",
        description: "Alarm template for ECS monitoring",
        policies: [{
            namespace: "SYS.ECS",
            dimensionName: "instance_id",
            metricName: "cpu_util",
            period: 300,
            filter: "average",
            comparisonOperator: ">=",
            value: 80,
            unit: "%",
            count: 3,
            alarmLevel: 2,
            suppressDuration: 3600,
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.CesAlarmTemplateV2("test",
        name="my-alarm-template",
        description="Alarm template for ECS monitoring",
        policies=[{
            "namespace": "SYS.ECS",
            "dimension_name": "instance_id",
            "metric_name": "cpu_util",
            "period": 300,
            "filter": "average",
            "comparison_operator": ">=",
            "value": 80,
            "unit": "%",
            "count": 3,
            "alarm_level": 2,
            "suppress_duration": 3600,
        }])
    
    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.NewCesAlarmTemplateV2(ctx, "test", &opentelekomcloud.CesAlarmTemplateV2Args{
    			Name:        pulumi.String("my-alarm-template"),
    			Description: pulumi.String("Alarm template for ECS monitoring"),
    			Policies: opentelekomcloud.CesAlarmTemplateV2PolicyArray{
    				&opentelekomcloud.CesAlarmTemplateV2PolicyArgs{
    					Namespace:          pulumi.String("SYS.ECS"),
    					DimensionName:      pulumi.String("instance_id"),
    					MetricName:         pulumi.String("cpu_util"),
    					Period:             pulumi.Float64(300),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">="),
    					Value:              pulumi.Float64(80),
    					Unit:               pulumi.String("%"),
    					Count:              pulumi.Float64(3),
    					AlarmLevel:         pulumi.Float64(2),
    					SuppressDuration:   pulumi.Float64(3600),
    				},
    			},
    		})
    		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.CesAlarmTemplateV2("test", new()
        {
            Name = "my-alarm-template",
            Description = "Alarm template for ECS monitoring",
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmTemplateV2PolicyArgs
                {
                    Namespace = "SYS.ECS",
                    DimensionName = "instance_id",
                    MetricName = "cpu_util",
                    Period = 300,
                    Filter = "average",
                    ComparisonOperator = ">=",
                    Value = 80,
                    Unit = "%",
                    Count = 3,
                    AlarmLevel = 2,
                    SuppressDuration = 3600,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmTemplateV2;
    import com.pulumi.opentelekomcloud.CesAlarmTemplateV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmTemplateV2PolicyArgs;
    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 CesAlarmTemplateV2("test", CesAlarmTemplateV2Args.builder()
                .name("my-alarm-template")
                .description("Alarm template for ECS monitoring")
                .policies(CesAlarmTemplateV2PolicyArgs.builder()
                    .namespace("SYS.ECS")
                    .dimensionName("instance_id")
                    .metricName("cpu_util")
                    .period(300.0)
                    .filter("average")
                    .comparisonOperator(">=")
                    .value(80.0)
                    .unit("%")
                    .count(3.0)
                    .alarmLevel(2.0)
                    .suppressDuration(3600.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: opentelekomcloud:CesAlarmTemplateV2
        properties:
          name: my-alarm-template
          description: Alarm template for ECS monitoring
          policies:
            - namespace: SYS.ECS
              dimensionName: instance_id
              metricName: cpu_util
              period: 300
              filter: average
              comparisonOperator: '>='
              value: 80
              unit: '%'
              count: 3
              alarmLevel: 2
              suppressDuration: 3600
    

    Create an event alarm template

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = new opentelekomcloud.CesAlarmTemplateV2("test", {
        name: "my-event-template",
        type: 2,
        description: "Event alarm template",
        policies: [{
            namespace: "SYS.ECS",
            metricName: "stopServer",
            period: 0,
            filter: "average",
            comparisonOperator: ">=",
            value: 1,
            unit: "count",
            count: 1,
            alarmLevel: 2,
            suppressDuration: 0,
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.CesAlarmTemplateV2("test",
        name="my-event-template",
        type=2,
        description="Event alarm template",
        policies=[{
            "namespace": "SYS.ECS",
            "metric_name": "stopServer",
            "period": 0,
            "filter": "average",
            "comparison_operator": ">=",
            "value": 1,
            "unit": "count",
            "count": 1,
            "alarm_level": 2,
            "suppress_duration": 0,
        }])
    
    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.NewCesAlarmTemplateV2(ctx, "test", &opentelekomcloud.CesAlarmTemplateV2Args{
    			Name:        pulumi.String("my-event-template"),
    			Type:        pulumi.Float64(2),
    			Description: pulumi.String("Event alarm template"),
    			Policies: opentelekomcloud.CesAlarmTemplateV2PolicyArray{
    				&opentelekomcloud.CesAlarmTemplateV2PolicyArgs{
    					Namespace:          pulumi.String("SYS.ECS"),
    					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),
    					AlarmLevel:         pulumi.Float64(2),
    					SuppressDuration:   pulumi.Float64(0),
    				},
    			},
    		})
    		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.CesAlarmTemplateV2("test", new()
        {
            Name = "my-event-template",
            Type = 2,
            Description = "Event alarm template",
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmTemplateV2PolicyArgs
                {
                    Namespace = "SYS.ECS",
                    MetricName = "stopServer",
                    Period = 0,
                    Filter = "average",
                    ComparisonOperator = ">=",
                    Value = 1,
                    Unit = "count",
                    Count = 1,
                    AlarmLevel = 2,
                    SuppressDuration = 0,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmTemplateV2;
    import com.pulumi.opentelekomcloud.CesAlarmTemplateV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmTemplateV2PolicyArgs;
    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 CesAlarmTemplateV2("test", CesAlarmTemplateV2Args.builder()
                .name("my-event-template")
                .type(2.0)
                .description("Event alarm template")
                .policies(CesAlarmTemplateV2PolicyArgs.builder()
                    .namespace("SYS.ECS")
                    .metricName("stopServer")
                    .period(0.0)
                    .filter("average")
                    .comparisonOperator(">=")
                    .value(1.0)
                    .unit("count")
                    .count(1.0)
                    .alarmLevel(2.0)
                    .suppressDuration(0.0)
                    .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: opentelekomcloud:CesAlarmTemplateV2
        properties:
          name: my-event-template
          type: 2
          description: Event alarm template
          policies:
            - namespace: SYS.ECS
              metricName: stopServer
              period: 0
              filter: average
              comparisonOperator: '>='
              value: 1
              unit: count
              count: 1
              alarmLevel: 2
              suppressDuration: 0
    

    Create an alarm template with multiple policies

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = new opentelekomcloud.CesAlarmTemplateV2("test", {
        name: "multi-policy-template",
        description: "Alarm template with multiple monitoring policies",
        policies: [
            {
                namespace: "SYS.ECS",
                dimensionName: "instance_id",
                metricName: "cpu_util",
                period: 300,
                filter: "average",
                comparisonOperator: ">",
                value: 80,
                unit: "%",
                count: 3,
                alarmLevel: 2,
                suppressDuration: 300,
            },
            {
                namespace: "SYS.ECS",
                dimensionName: "instance_id",
                metricName: "mem_util",
                period: 300,
                filter: "average",
                comparisonOperator: ">",
                value: 85,
                unit: "%",
                count: 3,
                alarmLevel: 2,
                suppressDuration: 300,
            },
            {
                namespace: "SYS.ECS",
                dimensionName: "instance_id",
                metricName: "disk_util_inband",
                period: 300,
                filter: "average",
                comparisonOperator: ">=",
                value: 90,
                unit: "%",
                count: 3,
                alarmLevel: 1,
                suppressDuration: 600,
            },
        ],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.CesAlarmTemplateV2("test",
        name="multi-policy-template",
        description="Alarm template with multiple monitoring policies",
        policies=[
            {
                "namespace": "SYS.ECS",
                "dimension_name": "instance_id",
                "metric_name": "cpu_util",
                "period": 300,
                "filter": "average",
                "comparison_operator": ">",
                "value": 80,
                "unit": "%",
                "count": 3,
                "alarm_level": 2,
                "suppress_duration": 300,
            },
            {
                "namespace": "SYS.ECS",
                "dimension_name": "instance_id",
                "metric_name": "mem_util",
                "period": 300,
                "filter": "average",
                "comparison_operator": ">",
                "value": 85,
                "unit": "%",
                "count": 3,
                "alarm_level": 2,
                "suppress_duration": 300,
            },
            {
                "namespace": "SYS.ECS",
                "dimension_name": "instance_id",
                "metric_name": "disk_util_inband",
                "period": 300,
                "filter": "average",
                "comparison_operator": ">=",
                "value": 90,
                "unit": "%",
                "count": 3,
                "alarm_level": 1,
                "suppress_duration": 600,
            },
        ])
    
    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.NewCesAlarmTemplateV2(ctx, "test", &opentelekomcloud.CesAlarmTemplateV2Args{
    			Name:        pulumi.String("multi-policy-template"),
    			Description: pulumi.String("Alarm template with multiple monitoring policies"),
    			Policies: opentelekomcloud.CesAlarmTemplateV2PolicyArray{
    				&opentelekomcloud.CesAlarmTemplateV2PolicyArgs{
    					Namespace:          pulumi.String("SYS.ECS"),
    					DimensionName:      pulumi.String("instance_id"),
    					MetricName:         pulumi.String("cpu_util"),
    					Period:             pulumi.Float64(300),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">"),
    					Value:              pulumi.Float64(80),
    					Unit:               pulumi.String("%"),
    					Count:              pulumi.Float64(3),
    					AlarmLevel:         pulumi.Float64(2),
    					SuppressDuration:   pulumi.Float64(300),
    				},
    				&opentelekomcloud.CesAlarmTemplateV2PolicyArgs{
    					Namespace:          pulumi.String("SYS.ECS"),
    					DimensionName:      pulumi.String("instance_id"),
    					MetricName:         pulumi.String("mem_util"),
    					Period:             pulumi.Float64(300),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">"),
    					Value:              pulumi.Float64(85),
    					Unit:               pulumi.String("%"),
    					Count:              pulumi.Float64(3),
    					AlarmLevel:         pulumi.Float64(2),
    					SuppressDuration:   pulumi.Float64(300),
    				},
    				&opentelekomcloud.CesAlarmTemplateV2PolicyArgs{
    					Namespace:          pulumi.String("SYS.ECS"),
    					DimensionName:      pulumi.String("instance_id"),
    					MetricName:         pulumi.String("disk_util_inband"),
    					Period:             pulumi.Float64(300),
    					Filter:             pulumi.String("average"),
    					ComparisonOperator: pulumi.String(">="),
    					Value:              pulumi.Float64(90),
    					Unit:               pulumi.String("%"),
    					Count:              pulumi.Float64(3),
    					AlarmLevel:         pulumi.Float64(1),
    					SuppressDuration:   pulumi.Float64(600),
    				},
    			},
    		})
    		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.CesAlarmTemplateV2("test", new()
        {
            Name = "multi-policy-template",
            Description = "Alarm template with multiple monitoring policies",
            Policies = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmTemplateV2PolicyArgs
                {
                    Namespace = "SYS.ECS",
                    DimensionName = "instance_id",
                    MetricName = "cpu_util",
                    Period = 300,
                    Filter = "average",
                    ComparisonOperator = ">",
                    Value = 80,
                    Unit = "%",
                    Count = 3,
                    AlarmLevel = 2,
                    SuppressDuration = 300,
                },
                new Opentelekomcloud.Inputs.CesAlarmTemplateV2PolicyArgs
                {
                    Namespace = "SYS.ECS",
                    DimensionName = "instance_id",
                    MetricName = "mem_util",
                    Period = 300,
                    Filter = "average",
                    ComparisonOperator = ">",
                    Value = 85,
                    Unit = "%",
                    Count = 3,
                    AlarmLevel = 2,
                    SuppressDuration = 300,
                },
                new Opentelekomcloud.Inputs.CesAlarmTemplateV2PolicyArgs
                {
                    Namespace = "SYS.ECS",
                    DimensionName = "instance_id",
                    MetricName = "disk_util_inband",
                    Period = 300,
                    Filter = "average",
                    ComparisonOperator = ">=",
                    Value = 90,
                    Unit = "%",
                    Count = 3,
                    AlarmLevel = 1,
                    SuppressDuration = 600,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesAlarmTemplateV2;
    import com.pulumi.opentelekomcloud.CesAlarmTemplateV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesAlarmTemplateV2PolicyArgs;
    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 CesAlarmTemplateV2("test", CesAlarmTemplateV2Args.builder()
                .name("multi-policy-template")
                .description("Alarm template with multiple monitoring policies")
                .policies(            
                    CesAlarmTemplateV2PolicyArgs.builder()
                        .namespace("SYS.ECS")
                        .dimensionName("instance_id")
                        .metricName("cpu_util")
                        .period(300.0)
                        .filter("average")
                        .comparisonOperator(">")
                        .value(80.0)
                        .unit("%")
                        .count(3.0)
                        .alarmLevel(2.0)
                        .suppressDuration(300.0)
                        .build(),
                    CesAlarmTemplateV2PolicyArgs.builder()
                        .namespace("SYS.ECS")
                        .dimensionName("instance_id")
                        .metricName("mem_util")
                        .period(300.0)
                        .filter("average")
                        .comparisonOperator(">")
                        .value(85.0)
                        .unit("%")
                        .count(3.0)
                        .alarmLevel(2.0)
                        .suppressDuration(300.0)
                        .build(),
                    CesAlarmTemplateV2PolicyArgs.builder()
                        .namespace("SYS.ECS")
                        .dimensionName("instance_id")
                        .metricName("disk_util_inband")
                        .period(300.0)
                        .filter("average")
                        .comparisonOperator(">=")
                        .value(90.0)
                        .unit("%")
                        .count(3.0)
                        .alarmLevel(1.0)
                        .suppressDuration(600.0)
                        .build())
                .build());
    
        }
    }
    
    resources:
      test:
        type: opentelekomcloud:CesAlarmTemplateV2
        properties:
          name: multi-policy-template
          description: Alarm template with multiple monitoring policies
          policies:
            - namespace: SYS.ECS
              dimensionName: instance_id
              metricName: cpu_util
              period: 300
              filter: average
              comparisonOperator: '>'
              value: 80
              unit: '%'
              count: 3
              alarmLevel: 2
              suppressDuration: 300
            - namespace: SYS.ECS
              dimensionName: instance_id
              metricName: mem_util
              period: 300
              filter: average
              comparisonOperator: '>'
              value: 85
              unit: '%'
              count: 3
              alarmLevel: 2
              suppressDuration: 300
            - namespace: SYS.ECS
              dimensionName: instance_id
              metricName: disk_util_inband
              period: 300
              filter: average
              comparisonOperator: '>='
              value: 90
              unit: '%'
              count: 3
              alarmLevel: 1
              suppressDuration: 600
    

    Create CesAlarmTemplateV2 Resource

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

    Constructor syntax

    new CesAlarmTemplateV2(name: string, args: CesAlarmTemplateV2Args, opts?: CustomResourceOptions);
    @overload
    def CesAlarmTemplateV2(resource_name: str,
                           args: CesAlarmTemplateV2Args,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CesAlarmTemplateV2(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           policies: Optional[Sequence[CesAlarmTemplateV2PolicyArgs]] = None,
                           ces_alarm_template_v2_id: Optional[str] = None,
                           delete_associate_alarm: Optional[bool] = None,
                           description: Optional[str] = None,
                           name: Optional[str] = None,
                           type: Optional[float] = None)
    func NewCesAlarmTemplateV2(ctx *Context, name string, args CesAlarmTemplateV2Args, opts ...ResourceOption) (*CesAlarmTemplateV2, error)
    public CesAlarmTemplateV2(string name, CesAlarmTemplateV2Args args, CustomResourceOptions? opts = null)
    public CesAlarmTemplateV2(String name, CesAlarmTemplateV2Args args)
    public CesAlarmTemplateV2(String name, CesAlarmTemplateV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:CesAlarmTemplateV2
    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 CesAlarmTemplateV2Args
    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 CesAlarmTemplateV2Args
    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 CesAlarmTemplateV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CesAlarmTemplateV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CesAlarmTemplateV2Args
    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 cesAlarmTemplateV2Resource = new Opentelekomcloud.CesAlarmTemplateV2("cesAlarmTemplateV2Resource", new()
    {
        Policies = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmTemplateV2PolicyArgs
            {
                ComparisonOperator = "string",
                Count = 0,
                Filter = "string",
                MetricName = "string",
                Namespace = "string",
                Period = 0,
                SuppressDuration = 0,
                AlarmLevel = 0,
                DimensionName = "string",
                Unit = "string",
                Value = 0,
            },
        },
        CesAlarmTemplateV2Id = "string",
        DeleteAssociateAlarm = false,
        Description = "string",
        Name = "string",
        Type = 0,
    });
    
    example, err := opentelekomcloud.NewCesAlarmTemplateV2(ctx, "cesAlarmTemplateV2Resource", &opentelekomcloud.CesAlarmTemplateV2Args{
    	Policies: opentelekomcloud.CesAlarmTemplateV2PolicyArray{
    		&opentelekomcloud.CesAlarmTemplateV2PolicyArgs{
    			ComparisonOperator: pulumi.String("string"),
    			Count:              pulumi.Float64(0),
    			Filter:             pulumi.String("string"),
    			MetricName:         pulumi.String("string"),
    			Namespace:          pulumi.String("string"),
    			Period:             pulumi.Float64(0),
    			SuppressDuration:   pulumi.Float64(0),
    			AlarmLevel:         pulumi.Float64(0),
    			DimensionName:      pulumi.String("string"),
    			Unit:               pulumi.String("string"),
    			Value:              pulumi.Float64(0),
    		},
    	},
    	CesAlarmTemplateV2Id: pulumi.String("string"),
    	DeleteAssociateAlarm: pulumi.Bool(false),
    	Description:          pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	Type:                 pulumi.Float64(0),
    })
    
    var cesAlarmTemplateV2Resource = new CesAlarmTemplateV2("cesAlarmTemplateV2Resource", CesAlarmTemplateV2Args.builder()
        .policies(CesAlarmTemplateV2PolicyArgs.builder()
            .comparisonOperator("string")
            .count(0.0)
            .filter("string")
            .metricName("string")
            .namespace("string")
            .period(0.0)
            .suppressDuration(0.0)
            .alarmLevel(0.0)
            .dimensionName("string")
            .unit("string")
            .value(0.0)
            .build())
        .cesAlarmTemplateV2Id("string")
        .deleteAssociateAlarm(false)
        .description("string")
        .name("string")
        .type(0.0)
        .build());
    
    ces_alarm_template_v2_resource = opentelekomcloud.CesAlarmTemplateV2("cesAlarmTemplateV2Resource",
        policies=[{
            "comparison_operator": "string",
            "count": 0,
            "filter": "string",
            "metric_name": "string",
            "namespace": "string",
            "period": 0,
            "suppress_duration": 0,
            "alarm_level": 0,
            "dimension_name": "string",
            "unit": "string",
            "value": 0,
        }],
        ces_alarm_template_v2_id="string",
        delete_associate_alarm=False,
        description="string",
        name="string",
        type=0)
    
    const cesAlarmTemplateV2Resource = new opentelekomcloud.CesAlarmTemplateV2("cesAlarmTemplateV2Resource", {
        policies: [{
            comparisonOperator: "string",
            count: 0,
            filter: "string",
            metricName: "string",
            namespace: "string",
            period: 0,
            suppressDuration: 0,
            alarmLevel: 0,
            dimensionName: "string",
            unit: "string",
            value: 0,
        }],
        cesAlarmTemplateV2Id: "string",
        deleteAssociateAlarm: false,
        description: "string",
        name: "string",
        type: 0,
    });
    
    type: opentelekomcloud:CesAlarmTemplateV2
    properties:
        cesAlarmTemplateV2Id: string
        deleteAssociateAlarm: false
        description: string
        name: string
        policies:
            - alarmLevel: 0
              comparisonOperator: string
              count: 0
              dimensionName: string
              filter: string
              metricName: string
              namespace: string
              period: 0
              suppressDuration: 0
              unit: string
              value: 0
        type: 0
    

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

    Policies List<CesAlarmTemplateV2Policy>
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    CesAlarmTemplateV2Id string
    The resource ID (same as template_id).
    DeleteAssociateAlarm bool

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    Description string
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    Name string
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    Type double
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    Policies []CesAlarmTemplateV2PolicyArgs
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    CesAlarmTemplateV2Id string
    The resource ID (same as template_id).
    DeleteAssociateAlarm bool

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    Description string
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    Name string
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    Type float64
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    policies List<CesAlarmTemplateV2Policy>
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    cesAlarmTemplateV2Id String
    The resource ID (same as template_id).
    deleteAssociateAlarm Boolean

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description String
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name String
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    type Double
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    policies CesAlarmTemplateV2Policy[]
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    cesAlarmTemplateV2Id string
    The resource ID (same as template_id).
    deleteAssociateAlarm boolean

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description string
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name string
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    type number
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    policies Sequence[CesAlarmTemplateV2PolicyArgs]
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    ces_alarm_template_v2_id str
    The resource ID (same as template_id).
    delete_associate_alarm bool

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description str
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name str
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    type float
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    policies List<Property Map>
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    cesAlarmTemplateV2Id String
    The resource ID (same as template_id).
    deleteAssociateAlarm Boolean

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description String
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name String
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    type Number
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateId string
    The alarm template ID.
    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateId string
    The alarm template ID.
    id String
    The provider-assigned unique ID for this managed resource.
    templateId String
    The alarm template ID.
    id string
    The provider-assigned unique ID for this managed resource.
    templateId string
    The alarm template ID.
    id str
    The provider-assigned unique ID for this managed resource.
    template_id str
    The alarm template ID.
    id String
    The provider-assigned unique ID for this managed resource.
    templateId String
    The alarm template ID.

    Look up Existing CesAlarmTemplateV2 Resource

    Get an existing CesAlarmTemplateV2 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?: CesAlarmTemplateV2State, opts?: CustomResourceOptions): CesAlarmTemplateV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ces_alarm_template_v2_id: Optional[str] = None,
            delete_associate_alarm: Optional[bool] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            policies: Optional[Sequence[CesAlarmTemplateV2PolicyArgs]] = None,
            template_id: Optional[str] = None,
            type: Optional[float] = None) -> CesAlarmTemplateV2
    func GetCesAlarmTemplateV2(ctx *Context, name string, id IDInput, state *CesAlarmTemplateV2State, opts ...ResourceOption) (*CesAlarmTemplateV2, error)
    public static CesAlarmTemplateV2 Get(string name, Input<string> id, CesAlarmTemplateV2State? state, CustomResourceOptions? opts = null)
    public static CesAlarmTemplateV2 get(String name, Output<String> id, CesAlarmTemplateV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:CesAlarmTemplateV2    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:
    CesAlarmTemplateV2Id string
    The resource ID (same as template_id).
    DeleteAssociateAlarm bool

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    Description string
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    Name string
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    Policies List<CesAlarmTemplateV2Policy>
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    TemplateId string
    The alarm template ID.
    Type double
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    CesAlarmTemplateV2Id string
    The resource ID (same as template_id).
    DeleteAssociateAlarm bool

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    Description string
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    Name string
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    Policies []CesAlarmTemplateV2PolicyArgs
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    TemplateId string
    The alarm template ID.
    Type float64
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    cesAlarmTemplateV2Id String
    The resource ID (same as template_id).
    deleteAssociateAlarm Boolean

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description String
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name String
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    policies List<CesAlarmTemplateV2Policy>
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    templateId String
    The alarm template ID.
    type Double
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    cesAlarmTemplateV2Id string
    The resource ID (same as template_id).
    deleteAssociateAlarm boolean

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description string
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name string
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    policies CesAlarmTemplateV2Policy[]
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    templateId string
    The alarm template ID.
    type number
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    ces_alarm_template_v2_id str
    The resource ID (same as template_id).
    delete_associate_alarm bool

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description str
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name str
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    policies Sequence[CesAlarmTemplateV2PolicyArgs]
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    template_id str
    The alarm template ID.
    type float
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.
    cesAlarmTemplateV2Id String
    The resource ID (same as template_id).
    deleteAssociateAlarm Boolean

    Specifies whether to delete the alarm rules associated with the alarm template when deleting the template. Defaults to false.

    The policies block supports:

    description String
    Specifies the description of the CES alarm template. The description can contain a maximum of 256 characters.
    name String
    Specifies the name of the CES alarm template. An alarm template name starts with a letter, consists of 1 to 128 characters, and can contain only letters, digits, underscores (_), hyphens (-), parentheses, and periods (.).
    policies List<Property Map>
    Specifies the policy list of the CES alarm template. A maximum of 50 policies are supported. The policies structure is documented below.
    templateId String
    The alarm template ID.
    type Number
    Specifies the type of the CES alarm template. Defaults to 0. Changing this parameter will create a new resource. The valid values are as follows:

    • 0: metric alarm template.
    • 2: event alarm template.

    Supporting Types

    CesAlarmTemplateV2Policy, CesAlarmTemplateV2PolicyArgs

    ComparisonOperator string
    Specifies the comparison conditions for alarm threshold. Value options: >, <, =, >=, <=, !=.
    Count double
    Specifies the number of consecutive alarm triggering times.

    • For event alarms, the value ranges from 1 to 180.
    • For metric alarms, the value can be 1, 2, 3, 4, 5, 10, 15, 30, 60, 90, 120, 180.
    Filter string
    Specifies the data rollup methods. Value options: average, variance, min, max, sum.
    MetricName string
    Specifies the alarm metric name. The value must start with a letter and can contain 1 to 96 characters, including letters, digits, and underscores (_).
    Namespace string
    Specifies the namespace of the service. The value must be in the service.item format and can contain 3 to 32 characters. For details, see Services Interconnected with Cloud Eye.
    Period double

    Specifies the aggregation period of alarm condition in seconds. Value options: 0, 1, 300, 1200, 3600, 14400, 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 2 (event alarm template), period can be set to 0.

    SuppressDuration double
    Specifies the alarm suppression cycle in seconds. Only one alarm is sent when the alarm suppression period is 0. Value options: 0, 300, 600, 900, 1800, 3600, 10800, 21600, 43200, 86400.
    AlarmLevel double
    Specifies the alarm level. Defaults to 2. The valid values are as follows:

    • 1: critical.
    • 2: major.
    • 3: minor.
    • 4: warning.
    DimensionName string
    Specifies the resource dimension. The name can contain a maximum of 32 characters. Leave this parameter blank for an event alarm template.
    Unit string
    Specifies the unit string of the alarm threshold. The unit can contain a maximum of 32 characters.
    Value double
    Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE (1.7976931348623157e+108).
    ComparisonOperator string
    Specifies the comparison conditions for alarm threshold. Value options: >, <, =, >=, <=, !=.
    Count float64
    Specifies the number of consecutive alarm triggering times.

    • For event alarms, the value ranges from 1 to 180.
    • For metric alarms, the value can be 1, 2, 3, 4, 5, 10, 15, 30, 60, 90, 120, 180.
    Filter string
    Specifies the data rollup methods. Value options: average, variance, min, max, sum.
    MetricName string
    Specifies the alarm metric name. The value must start with a letter and can contain 1 to 96 characters, including letters, digits, and underscores (_).
    Namespace string
    Specifies the namespace of the service. The value must be in the service.item format and can contain 3 to 32 characters. For details, see Services Interconnected with Cloud Eye.
    Period float64

    Specifies the aggregation period of alarm condition in seconds. Value options: 0, 1, 300, 1200, 3600, 14400, 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 2 (event alarm template), period can be set to 0.

    SuppressDuration float64
    Specifies the alarm suppression cycle in seconds. Only one alarm is sent when the alarm suppression period is 0. Value options: 0, 300, 600, 900, 1800, 3600, 10800, 21600, 43200, 86400.
    AlarmLevel float64
    Specifies the alarm level. Defaults to 2. The valid values are as follows:

    • 1: critical.
    • 2: major.
    • 3: minor.
    • 4: warning.
    DimensionName string
    Specifies the resource dimension. The name can contain a maximum of 32 characters. Leave this parameter blank for an event alarm template.
    Unit string
    Specifies the unit string of the alarm threshold. The unit can contain a maximum of 32 characters.
    Value float64
    Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE (1.7976931348623157e+108).
    comparisonOperator String
    Specifies the comparison conditions for alarm threshold. Value options: >, <, =, >=, <=, !=.
    count Double
    Specifies the number of consecutive alarm triggering times.

    • For event alarms, the value ranges from 1 to 180.
    • For metric alarms, the value can be 1, 2, 3, 4, 5, 10, 15, 30, 60, 90, 120, 180.
    filter String
    Specifies the data rollup methods. Value options: average, variance, min, max, sum.
    metricName String
    Specifies the alarm metric name. The value must start with a letter and can contain 1 to 96 characters, including letters, digits, and underscores (_).
    namespace String
    Specifies the namespace of the service. The value must be in the service.item format and can contain 3 to 32 characters. For details, see Services Interconnected with Cloud Eye.
    period Double

    Specifies the aggregation period of alarm condition in seconds. Value options: 0, 1, 300, 1200, 3600, 14400, 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 2 (event alarm template), period can be set to 0.

    suppressDuration Double
    Specifies the alarm suppression cycle in seconds. Only one alarm is sent when the alarm suppression period is 0. Value options: 0, 300, 600, 900, 1800, 3600, 10800, 21600, 43200, 86400.
    alarmLevel Double
    Specifies the alarm level. Defaults to 2. The valid values are as follows:

    • 1: critical.
    • 2: major.
    • 3: minor.
    • 4: warning.
    dimensionName String
    Specifies the resource dimension. The name can contain a maximum of 32 characters. Leave this parameter blank for an event alarm template.
    unit String
    Specifies the unit string of the alarm threshold. The unit can contain a maximum of 32 characters.
    value Double
    Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE (1.7976931348623157e+108).
    comparisonOperator string
    Specifies the comparison conditions for alarm threshold. Value options: >, <, =, >=, <=, !=.
    count number
    Specifies the number of consecutive alarm triggering times.

    • For event alarms, the value ranges from 1 to 180.
    • For metric alarms, the value can be 1, 2, 3, 4, 5, 10, 15, 30, 60, 90, 120, 180.
    filter string
    Specifies the data rollup methods. Value options: average, variance, min, max, sum.
    metricName string
    Specifies the alarm metric name. The value must start with a letter and can contain 1 to 96 characters, including letters, digits, and underscores (_).
    namespace string
    Specifies the namespace of the service. The value must be in the service.item format and can contain 3 to 32 characters. For details, see Services Interconnected with Cloud Eye.
    period number

    Specifies the aggregation period of alarm condition in seconds. Value options: 0, 1, 300, 1200, 3600, 14400, 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 2 (event alarm template), period can be set to 0.

    suppressDuration number
    Specifies the alarm suppression cycle in seconds. Only one alarm is sent when the alarm suppression period is 0. Value options: 0, 300, 600, 900, 1800, 3600, 10800, 21600, 43200, 86400.
    alarmLevel number
    Specifies the alarm level. Defaults to 2. The valid values are as follows:

    • 1: critical.
    • 2: major.
    • 3: minor.
    • 4: warning.
    dimensionName string
    Specifies the resource dimension. The name can contain a maximum of 32 characters. Leave this parameter blank for an event alarm template.
    unit string
    Specifies the unit string of the alarm threshold. The unit can contain a maximum of 32 characters.
    value number
    Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE (1.7976931348623157e+108).
    comparison_operator str
    Specifies the comparison conditions for alarm threshold. Value options: >, <, =, >=, <=, !=.
    count float
    Specifies the number of consecutive alarm triggering times.

    • For event alarms, the value ranges from 1 to 180.
    • For metric alarms, the value can be 1, 2, 3, 4, 5, 10, 15, 30, 60, 90, 120, 180.
    filter str
    Specifies the data rollup methods. Value options: average, variance, min, max, sum.
    metric_name str
    Specifies the alarm metric name. The value must start with a letter and can contain 1 to 96 characters, including letters, digits, and underscores (_).
    namespace str
    Specifies the namespace of the service. The value must be in the service.item format and can contain 3 to 32 characters. For details, see Services Interconnected with Cloud Eye.
    period float

    Specifies the aggregation period of alarm condition in seconds. Value options: 0, 1, 300, 1200, 3600, 14400, 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 2 (event alarm template), period can be set to 0.

    suppress_duration float
    Specifies the alarm suppression cycle in seconds. Only one alarm is sent when the alarm suppression period is 0. Value options: 0, 300, 600, 900, 1800, 3600, 10800, 21600, 43200, 86400.
    alarm_level float
    Specifies the alarm level. Defaults to 2. The valid values are as follows:

    • 1: critical.
    • 2: major.
    • 3: minor.
    • 4: warning.
    dimension_name str
    Specifies the resource dimension. The name can contain a maximum of 32 characters. Leave this parameter blank for an event alarm template.
    unit str
    Specifies the unit string of the alarm threshold. The unit can contain a maximum of 32 characters.
    value float
    Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE (1.7976931348623157e+108).
    comparisonOperator String
    Specifies the comparison conditions for alarm threshold. Value options: >, <, =, >=, <=, !=.
    count Number
    Specifies the number of consecutive alarm triggering times.

    • For event alarms, the value ranges from 1 to 180.
    • For metric alarms, the value can be 1, 2, 3, 4, 5, 10, 15, 30, 60, 90, 120, 180.
    filter String
    Specifies the data rollup methods. Value options: average, variance, min, max, sum.
    metricName String
    Specifies the alarm metric name. The value must start with a letter and can contain 1 to 96 characters, including letters, digits, and underscores (_).
    namespace String
    Specifies the namespace of the service. The value must be in the service.item format and can contain 3 to 32 characters. For details, see Services Interconnected with Cloud Eye.
    period Number

    Specifies the aggregation period of alarm condition in seconds. Value options: 0, 1, 300, 1200, 3600, 14400, 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 2 (event alarm template), period can be set to 0.

    suppressDuration Number
    Specifies the alarm suppression cycle in seconds. Only one alarm is sent when the alarm suppression period is 0. Value options: 0, 300, 600, 900, 1800, 3600, 10800, 21600, 43200, 86400.
    alarmLevel Number
    Specifies the alarm level. Defaults to 2. The valid values are as follows:

    • 1: critical.
    • 2: major.
    • 3: minor.
    • 4: warning.
    dimensionName String
    Specifies the resource dimension. The name can contain a maximum of 32 characters. Leave this parameter blank for an event alarm template.
    unit String
    Specifies the unit string of the alarm threshold. The unit can contain a maximum of 32 characters.
    value Number
    Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE (1.7976931348623157e+108).

    Import

    The CES alarm template can be imported using the id, e.g.

    bash

    $ pulumi import opentelekomcloud:index/cesAlarmTemplateV2:CesAlarmTemplateV2 test <template_id>
    

    Note that the imported state may not be identical to your resource definition, due to some attributes missing from the

    API response. The missing attributes include: delete_associate_alarm.

    It is generally recommended running pulumi preview after importing an alarm template.

    You can then decide if changes should be applied to the alarm template, or the resource definition should be updated to

    align with the alarm template. Also you can ignore changes as below.

    hcl

    resource “opentelekomcloud_ces_alarm_template_v2” “test” {

    lifecycle {

    ignore_changes = [
    
      delete_associate_alarm,
    
    ]
    

    }

    }

    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