1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CesOneClickAlarmV2
Viewing docs for opentelekomcloud 1.36.61
published on Thursday, Mar 12, 2026 by opentelekomcloud
opentelekomcloud logo
Viewing docs for opentelekomcloud 1.36.61
published on Thursday, Mar 12, 2026 by opentelekomcloud

    Up-to-date reference of API arguments for CES one-click monitoring you can get at documentation portal

    Manages a CES One-Click Alarm v2 resource within OpenTelekomCloud.

    Example Usage

    Basic one-click monitoring without notifications

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const test = new opentelekomcloud.CesOneClickAlarmV2("test", {
        oneClickAlarmId: "ECSSystemOneClickAlarm",
        dimensionNames: {
            metrics: ["instance_id"],
        },
        notificationEnabled: false,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    test = opentelekomcloud.CesOneClickAlarmV2("test",
        one_click_alarm_id="ECSSystemOneClickAlarm",
        dimension_names={
            "metrics": ["instance_id"],
        },
        notification_enabled=False)
    
    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.NewCesOneClickAlarmV2(ctx, "test", &opentelekomcloud.CesOneClickAlarmV2Args{
    			OneClickAlarmId: pulumi.String("ECSSystemOneClickAlarm"),
    			DimensionNames: &opentelekomcloud.CesOneClickAlarmV2DimensionNamesArgs{
    				Metrics: pulumi.StringArray{
    					pulumi.String("instance_id"),
    				},
    			},
    			NotificationEnabled: pulumi.Bool(false),
    		})
    		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.CesOneClickAlarmV2("test", new()
        {
            OneClickAlarmId = "ECSSystemOneClickAlarm",
            DimensionNames = new Opentelekomcloud.Inputs.CesOneClickAlarmV2DimensionNamesArgs
            {
                Metrics = new[]
                {
                    "instance_id",
                },
            },
            NotificationEnabled = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesOneClickAlarmV2;
    import com.pulumi.opentelekomcloud.CesOneClickAlarmV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesOneClickAlarmV2DimensionNamesArgs;
    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 CesOneClickAlarmV2("test", CesOneClickAlarmV2Args.builder()
                .oneClickAlarmId("ECSSystemOneClickAlarm")
                .dimensionNames(CesOneClickAlarmV2DimensionNamesArgs.builder()
                    .metrics("instance_id")
                    .build())
                .notificationEnabled(false)
                .build());
    
        }
    }
    
    resources:
      test:
        type: opentelekomcloud:CesOneClickAlarmV2
        properties:
          oneClickAlarmId: ECSSystemOneClickAlarm
          dimensionNames:
            metrics:
              - instance_id
          notificationEnabled: false
    

    One-click monitoring with notifications

    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.CesOneClickAlarmV2("test", {
        oneClickAlarmId: "OBSSystemOneClickAlarm",
        dimensionNames: {
            metrics: ["bucket_name"],
        },
        notificationEnabled: true,
        alarmNotifications: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
        okNotifications: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
        notificationBeginTime: "00:00",
        notificationEndTime: "23:59",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.CesOneClickAlarmV2("test",
        one_click_alarm_id="OBSSystemOneClickAlarm",
        dimension_names={
            "metrics": ["bucket_name"],
        },
        notification_enabled=True,
        alarm_notifications=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }],
        ok_notifications=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }],
        notification_begin_time="00:00",
        notification_end_time="23:59")
    
    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.NewCesOneClickAlarmV2(ctx, "test", &opentelekomcloud.CesOneClickAlarmV2Args{
    			OneClickAlarmId: pulumi.String("OBSSystemOneClickAlarm"),
    			DimensionNames: &opentelekomcloud.CesOneClickAlarmV2DimensionNamesArgs{
    				Metrics: pulumi.StringArray{
    					pulumi.String("bucket_name"),
    				},
    			},
    			NotificationEnabled: pulumi.Bool(true),
    			AlarmNotifications: opentelekomcloud.CesOneClickAlarmV2AlarmNotificationArray{
    				&opentelekomcloud.CesOneClickAlarmV2AlarmNotificationArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    			OkNotifications: opentelekomcloud.CesOneClickAlarmV2OkNotificationArray{
    				&opentelekomcloud.CesOneClickAlarmV2OkNotificationArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    			NotificationBeginTime: pulumi.String("00:00"),
    			NotificationEndTime:   pulumi.String("23:59"),
    		})
    		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.CesOneClickAlarmV2("test", new()
        {
            OneClickAlarmId = "OBSSystemOneClickAlarm",
            DimensionNames = new Opentelekomcloud.Inputs.CesOneClickAlarmV2DimensionNamesArgs
            {
                Metrics = new[]
                {
                    "bucket_name",
                },
            },
            NotificationEnabled = true,
            AlarmNotifications = new[]
            {
                new Opentelekomcloud.Inputs.CesOneClickAlarmV2AlarmNotificationArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
            OkNotifications = new[]
            {
                new Opentelekomcloud.Inputs.CesOneClickAlarmV2OkNotificationArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
            NotificationBeginTime = "00:00",
            NotificationEndTime = "23:59",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesOneClickAlarmV2;
    import com.pulumi.opentelekomcloud.CesOneClickAlarmV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesOneClickAlarmV2DimensionNamesArgs;
    import com.pulumi.opentelekomcloud.inputs.CesOneClickAlarmV2AlarmNotificationArgs;
    import com.pulumi.opentelekomcloud.inputs.CesOneClickAlarmV2OkNotificationArgs;
    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 CesOneClickAlarmV2("test", CesOneClickAlarmV2Args.builder()
                .oneClickAlarmId("OBSSystemOneClickAlarm")
                .dimensionNames(CesOneClickAlarmV2DimensionNamesArgs.builder()
                    .metrics("bucket_name")
                    .build())
                .notificationEnabled(true)
                .alarmNotifications(CesOneClickAlarmV2AlarmNotificationArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .okNotifications(CesOneClickAlarmV2OkNotificationArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .notificationBeginTime("00:00")
                .notificationEndTime("23:59")
                .build());
    
        }
    }
    
    configuration:
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:CesOneClickAlarmV2
        properties:
          oneClickAlarmId: OBSSystemOneClickAlarm
          dimensionNames:
            metrics:
              - bucket_name
          notificationEnabled: true
          alarmNotifications:
            - type: notification
              notificationLists:
                - ${topicUrn}
          okNotifications:
            - type: notification
              notificationLists:
                - ${topicUrn}
          notificationBeginTime: 00:00
          notificationEndTime: 23:59
    

    One-click monitoring with event dimensions

    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.CesOneClickAlarmV2("test", {
        oneClickAlarmId: "ECSSystemOneClickAlarm",
        dimensionNames: {
            metrics: ["instance_id"],
            event: true,
        },
        notificationEnabled: true,
        alarmNotifications: [{
            type: "notification",
            notificationLists: [topicUrn],
        }],
        notificationBeginTime: "00:00",
        notificationEndTime: "23:59",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    topic_urn = config.require_object("topicUrn")
    test = opentelekomcloud.CesOneClickAlarmV2("test",
        one_click_alarm_id="ECSSystemOneClickAlarm",
        dimension_names={
            "metrics": ["instance_id"],
            "event": True,
        },
        notification_enabled=True,
        alarm_notifications=[{
            "type": "notification",
            "notification_lists": [topic_urn],
        }],
        notification_begin_time="00:00",
        notification_end_time="23:59")
    
    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.NewCesOneClickAlarmV2(ctx, "test", &opentelekomcloud.CesOneClickAlarmV2Args{
    			OneClickAlarmId: pulumi.String("ECSSystemOneClickAlarm"),
    			DimensionNames: &opentelekomcloud.CesOneClickAlarmV2DimensionNamesArgs{
    				Metrics: pulumi.StringArray{
    					pulumi.String("instance_id"),
    				},
    				Event: pulumi.Bool(true),
    			},
    			NotificationEnabled: pulumi.Bool(true),
    			AlarmNotifications: opentelekomcloud.CesOneClickAlarmV2AlarmNotificationArray{
    				&opentelekomcloud.CesOneClickAlarmV2AlarmNotificationArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						topicUrn,
    					},
    				},
    			},
    			NotificationBeginTime: pulumi.String("00:00"),
    			NotificationEndTime:   pulumi.String("23:59"),
    		})
    		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.CesOneClickAlarmV2("test", new()
        {
            OneClickAlarmId = "ECSSystemOneClickAlarm",
            DimensionNames = new Opentelekomcloud.Inputs.CesOneClickAlarmV2DimensionNamesArgs
            {
                Metrics = new[]
                {
                    "instance_id",
                },
                Event = true,
            },
            NotificationEnabled = true,
            AlarmNotifications = new[]
            {
                new Opentelekomcloud.Inputs.CesOneClickAlarmV2AlarmNotificationArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        topicUrn,
                    },
                },
            },
            NotificationBeginTime = "00:00",
            NotificationEndTime = "23:59",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.CesOneClickAlarmV2;
    import com.pulumi.opentelekomcloud.CesOneClickAlarmV2Args;
    import com.pulumi.opentelekomcloud.inputs.CesOneClickAlarmV2DimensionNamesArgs;
    import com.pulumi.opentelekomcloud.inputs.CesOneClickAlarmV2AlarmNotificationArgs;
    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 CesOneClickAlarmV2("test", CesOneClickAlarmV2Args.builder()
                .oneClickAlarmId("ECSSystemOneClickAlarm")
                .dimensionNames(CesOneClickAlarmV2DimensionNamesArgs.builder()
                    .metrics("instance_id")
                    .event(true)
                    .build())
                .notificationEnabled(true)
                .alarmNotifications(CesOneClickAlarmV2AlarmNotificationArgs.builder()
                    .type("notification")
                    .notificationLists(topicUrn)
                    .build())
                .notificationBeginTime("00:00")
                .notificationEndTime("23:59")
                .build());
    
        }
    }
    
    configuration:
      topicUrn:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:CesOneClickAlarmV2
        properties:
          oneClickAlarmId: ECSSystemOneClickAlarm
          dimensionNames:
            metrics:
              - instance_id
            event: true
          notificationEnabled: true
          alarmNotifications:
            - type: notification
              notificationLists:
                - ${topicUrn}
          notificationBeginTime: 00:00
          notificationEndTime: 23:59
    

    Create CesOneClickAlarmV2 Resource

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

    Constructor syntax

    new CesOneClickAlarmV2(name: string, args: CesOneClickAlarmV2Args, opts?: CustomResourceOptions);
    @overload
    def CesOneClickAlarmV2(resource_name: str,
                           args: CesOneClickAlarmV2Args,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def CesOneClickAlarmV2(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           dimension_names: Optional[CesOneClickAlarmV2DimensionNamesArgs] = None,
                           notification_enabled: Optional[bool] = None,
                           one_click_alarm_id: Optional[str] = None,
                           alarm_notifications: Optional[Sequence[CesOneClickAlarmV2AlarmNotificationArgs]] = None,
                           ces_one_click_alarm_v2_id: Optional[str] = None,
                           notification_begin_time: Optional[str] = None,
                           notification_end_time: Optional[str] = None,
                           ok_notifications: Optional[Sequence[CesOneClickAlarmV2OkNotificationArgs]] = None,
                           timeouts: Optional[CesOneClickAlarmV2TimeoutsArgs] = None)
    func NewCesOneClickAlarmV2(ctx *Context, name string, args CesOneClickAlarmV2Args, opts ...ResourceOption) (*CesOneClickAlarmV2, error)
    public CesOneClickAlarmV2(string name, CesOneClickAlarmV2Args args, CustomResourceOptions? opts = null)
    public CesOneClickAlarmV2(String name, CesOneClickAlarmV2Args args)
    public CesOneClickAlarmV2(String name, CesOneClickAlarmV2Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:CesOneClickAlarmV2
    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 CesOneClickAlarmV2Args
    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 CesOneClickAlarmV2Args
    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 CesOneClickAlarmV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CesOneClickAlarmV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CesOneClickAlarmV2Args
    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 cesOneClickAlarmV2Resource = new Opentelekomcloud.CesOneClickAlarmV2("cesOneClickAlarmV2Resource", new()
    {
        DimensionNames = new Opentelekomcloud.Inputs.CesOneClickAlarmV2DimensionNamesArgs
        {
            Event = false,
            Metrics = new[]
            {
                "string",
            },
        },
        NotificationEnabled = false,
        OneClickAlarmId = "string",
        AlarmNotifications = new[]
        {
            new Opentelekomcloud.Inputs.CesOneClickAlarmV2AlarmNotificationArgs
            {
                NotificationLists = new[]
                {
                    "string",
                },
                Type = "string",
            },
        },
        CesOneClickAlarmV2Id = "string",
        NotificationBeginTime = "string",
        NotificationEndTime = "string",
        OkNotifications = new[]
        {
            new Opentelekomcloud.Inputs.CesOneClickAlarmV2OkNotificationArgs
            {
                NotificationLists = new[]
                {
                    "string",
                },
                Type = "string",
            },
        },
        Timeouts = new Opentelekomcloud.Inputs.CesOneClickAlarmV2TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := opentelekomcloud.NewCesOneClickAlarmV2(ctx, "cesOneClickAlarmV2Resource", &opentelekomcloud.CesOneClickAlarmV2Args{
    	DimensionNames: &opentelekomcloud.CesOneClickAlarmV2DimensionNamesArgs{
    		Event: pulumi.Bool(false),
    		Metrics: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	NotificationEnabled: pulumi.Bool(false),
    	OneClickAlarmId:     pulumi.String("string"),
    	AlarmNotifications: opentelekomcloud.CesOneClickAlarmV2AlarmNotificationArray{
    		&opentelekomcloud.CesOneClickAlarmV2AlarmNotificationArgs{
    			NotificationLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    	CesOneClickAlarmV2Id:  pulumi.String("string"),
    	NotificationBeginTime: pulumi.String("string"),
    	NotificationEndTime:   pulumi.String("string"),
    	OkNotifications: opentelekomcloud.CesOneClickAlarmV2OkNotificationArray{
    		&opentelekomcloud.CesOneClickAlarmV2OkNotificationArgs{
    			NotificationLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    	Timeouts: &opentelekomcloud.CesOneClickAlarmV2TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var cesOneClickAlarmV2Resource = new CesOneClickAlarmV2("cesOneClickAlarmV2Resource", CesOneClickAlarmV2Args.builder()
        .dimensionNames(CesOneClickAlarmV2DimensionNamesArgs.builder()
            .event(false)
            .metrics("string")
            .build())
        .notificationEnabled(false)
        .oneClickAlarmId("string")
        .alarmNotifications(CesOneClickAlarmV2AlarmNotificationArgs.builder()
            .notificationLists("string")
            .type("string")
            .build())
        .cesOneClickAlarmV2Id("string")
        .notificationBeginTime("string")
        .notificationEndTime("string")
        .okNotifications(CesOneClickAlarmV2OkNotificationArgs.builder()
            .notificationLists("string")
            .type("string")
            .build())
        .timeouts(CesOneClickAlarmV2TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    ces_one_click_alarm_v2_resource = opentelekomcloud.CesOneClickAlarmV2("cesOneClickAlarmV2Resource",
        dimension_names={
            "event": False,
            "metrics": ["string"],
        },
        notification_enabled=False,
        one_click_alarm_id="string",
        alarm_notifications=[{
            "notification_lists": ["string"],
            "type": "string",
        }],
        ces_one_click_alarm_v2_id="string",
        notification_begin_time="string",
        notification_end_time="string",
        ok_notifications=[{
            "notification_lists": ["string"],
            "type": "string",
        }],
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const cesOneClickAlarmV2Resource = new opentelekomcloud.CesOneClickAlarmV2("cesOneClickAlarmV2Resource", {
        dimensionNames: {
            event: false,
            metrics: ["string"],
        },
        notificationEnabled: false,
        oneClickAlarmId: "string",
        alarmNotifications: [{
            notificationLists: ["string"],
            type: "string",
        }],
        cesOneClickAlarmV2Id: "string",
        notificationBeginTime: "string",
        notificationEndTime: "string",
        okNotifications: [{
            notificationLists: ["string"],
            type: "string",
        }],
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: opentelekomcloud:CesOneClickAlarmV2
    properties:
        alarmNotifications:
            - notificationLists:
                - string
              type: string
        cesOneClickAlarmV2Id: string
        dimensionNames:
            event: false
            metrics:
                - string
        notificationBeginTime: string
        notificationEnabled: false
        notificationEndTime: string
        okNotifications:
            - notificationLists:
                - string
              type: string
        oneClickAlarmId: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    DimensionNames CesOneClickAlarmV2DimensionNames
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    NotificationEnabled bool
    Specifies whether to enable alarm notifications.
    OneClickAlarmId string
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    AlarmNotifications List<CesOneClickAlarmV2AlarmNotification>

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    CesOneClickAlarmV2Id string
    The one-click alarm ID.
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    NotificationEndTime string

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    OkNotifications List<CesOneClickAlarmV2OkNotification>

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    Timeouts CesOneClickAlarmV2Timeouts
    DimensionNames CesOneClickAlarmV2DimensionNamesArgs
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    NotificationEnabled bool
    Specifies whether to enable alarm notifications.
    OneClickAlarmId string
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    AlarmNotifications []CesOneClickAlarmV2AlarmNotificationArgs

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    CesOneClickAlarmV2Id string
    The one-click alarm ID.
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    NotificationEndTime string

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    OkNotifications []CesOneClickAlarmV2OkNotificationArgs

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    Timeouts CesOneClickAlarmV2TimeoutsArgs
    dimensionNames CesOneClickAlarmV2DimensionNames
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    notificationEnabled Boolean
    Specifies whether to enable alarm notifications.
    oneClickAlarmId String
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    alarmNotifications List<CesOneClickAlarmV2AlarmNotification>

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    cesOneClickAlarmV2Id String
    The one-click alarm ID.
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notificationEndTime String

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    okNotifications List<CesOneClickAlarmV2OkNotification>

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    timeouts CesOneClickAlarmV2Timeouts
    dimensionNames CesOneClickAlarmV2DimensionNames
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    notificationEnabled boolean
    Specifies whether to enable alarm notifications.
    oneClickAlarmId string
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    alarmNotifications CesOneClickAlarmV2AlarmNotification[]

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    cesOneClickAlarmV2Id string
    The one-click alarm ID.
    notificationBeginTime string
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notificationEndTime string

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    okNotifications CesOneClickAlarmV2OkNotification[]

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    timeouts CesOneClickAlarmV2Timeouts
    dimension_names CesOneClickAlarmV2DimensionNamesArgs
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    notification_enabled bool
    Specifies whether to enable alarm notifications.
    one_click_alarm_id str
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    alarm_notifications Sequence[CesOneClickAlarmV2AlarmNotificationArgs]

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    ces_one_click_alarm_v2_id str
    The one-click alarm ID.
    notification_begin_time str
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notification_end_time str

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    ok_notifications Sequence[CesOneClickAlarmV2OkNotificationArgs]

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    timeouts CesOneClickAlarmV2TimeoutsArgs
    dimensionNames Property Map
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    notificationEnabled Boolean
    Specifies whether to enable alarm notifications.
    oneClickAlarmId String
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    alarmNotifications List<Property Map>

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    cesOneClickAlarmV2Id String
    The one-click alarm ID.
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notificationEndTime String

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    okNotifications List<Property Map>

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    timeouts Property Map

    Outputs

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

    Description string
    The description of the one-click monitoring configuration.
    Enabled bool
    Whether one-click monitoring is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalAlarmId string
    The auto-generated internal alarm ID returned by the API.
    Namespace string
    The namespace of the monitored service.
    Description string
    The description of the one-click monitoring configuration.
    Enabled bool
    Whether one-click monitoring is enabled.
    Id string
    The provider-assigned unique ID for this managed resource.
    InternalAlarmId string
    The auto-generated internal alarm ID returned by the API.
    Namespace string
    The namespace of the monitored service.
    description String
    The description of the one-click monitoring configuration.
    enabled Boolean
    Whether one-click monitoring is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    internalAlarmId String
    The auto-generated internal alarm ID returned by the API.
    namespace String
    The namespace of the monitored service.
    description string
    The description of the one-click monitoring configuration.
    enabled boolean
    Whether one-click monitoring is enabled.
    id string
    The provider-assigned unique ID for this managed resource.
    internalAlarmId string
    The auto-generated internal alarm ID returned by the API.
    namespace string
    The namespace of the monitored service.
    description str
    The description of the one-click monitoring configuration.
    enabled bool
    Whether one-click monitoring is enabled.
    id str
    The provider-assigned unique ID for this managed resource.
    internal_alarm_id str
    The auto-generated internal alarm ID returned by the API.
    namespace str
    The namespace of the monitored service.
    description String
    The description of the one-click monitoring configuration.
    enabled Boolean
    Whether one-click monitoring is enabled.
    id String
    The provider-assigned unique ID for this managed resource.
    internalAlarmId String
    The auto-generated internal alarm ID returned by the API.
    namespace String
    The namespace of the monitored service.

    Look up Existing CesOneClickAlarmV2 Resource

    Get an existing CesOneClickAlarmV2 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?: CesOneClickAlarmV2State, opts?: CustomResourceOptions): CesOneClickAlarmV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alarm_notifications: Optional[Sequence[CesOneClickAlarmV2AlarmNotificationArgs]] = None,
            ces_one_click_alarm_v2_id: Optional[str] = None,
            description: Optional[str] = None,
            dimension_names: Optional[CesOneClickAlarmV2DimensionNamesArgs] = None,
            enabled: Optional[bool] = None,
            internal_alarm_id: 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_notifications: Optional[Sequence[CesOneClickAlarmV2OkNotificationArgs]] = None,
            one_click_alarm_id: Optional[str] = None,
            timeouts: Optional[CesOneClickAlarmV2TimeoutsArgs] = None) -> CesOneClickAlarmV2
    func GetCesOneClickAlarmV2(ctx *Context, name string, id IDInput, state *CesOneClickAlarmV2State, opts ...ResourceOption) (*CesOneClickAlarmV2, error)
    public static CesOneClickAlarmV2 Get(string name, Input<string> id, CesOneClickAlarmV2State? state, CustomResourceOptions? opts = null)
    public static CesOneClickAlarmV2 get(String name, Output<String> id, CesOneClickAlarmV2State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:CesOneClickAlarmV2    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:
    AlarmNotifications List<CesOneClickAlarmV2AlarmNotification>

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    CesOneClickAlarmV2Id string
    The one-click alarm ID.
    Description string
    The description of the one-click monitoring configuration.
    DimensionNames CesOneClickAlarmV2DimensionNames
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    Enabled bool
    Whether one-click monitoring is enabled.
    InternalAlarmId string
    The auto-generated internal alarm ID returned by the API.
    Namespace string
    The namespace of the monitored service.
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    NotificationEnabled bool
    Specifies whether to enable alarm notifications.
    NotificationEndTime string

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    OkNotifications List<CesOneClickAlarmV2OkNotification>

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    OneClickAlarmId string
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    Timeouts CesOneClickAlarmV2Timeouts
    AlarmNotifications []CesOneClickAlarmV2AlarmNotificationArgs

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    CesOneClickAlarmV2Id string
    The one-click alarm ID.
    Description string
    The description of the one-click monitoring configuration.
    DimensionNames CesOneClickAlarmV2DimensionNamesArgs
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    Enabled bool
    Whether one-click monitoring is enabled.
    InternalAlarmId string
    The auto-generated internal alarm ID returned by the API.
    Namespace string
    The namespace of the monitored service.
    NotificationBeginTime string
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    NotificationEnabled bool
    Specifies whether to enable alarm notifications.
    NotificationEndTime string

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    OkNotifications []CesOneClickAlarmV2OkNotificationArgs

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    OneClickAlarmId string
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    Timeouts CesOneClickAlarmV2TimeoutsArgs
    alarmNotifications List<CesOneClickAlarmV2AlarmNotification>

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    cesOneClickAlarmV2Id String
    The one-click alarm ID.
    description String
    The description of the one-click monitoring configuration.
    dimensionNames CesOneClickAlarmV2DimensionNames
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    enabled Boolean
    Whether one-click monitoring is enabled.
    internalAlarmId String
    The auto-generated internal alarm ID returned by the API.
    namespace String
    The namespace of the monitored service.
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notificationEnabled Boolean
    Specifies whether to enable alarm notifications.
    notificationEndTime String

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    okNotifications List<CesOneClickAlarmV2OkNotification>

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    oneClickAlarmId String
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    timeouts CesOneClickAlarmV2Timeouts
    alarmNotifications CesOneClickAlarmV2AlarmNotification[]

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    cesOneClickAlarmV2Id string
    The one-click alarm ID.
    description string
    The description of the one-click monitoring configuration.
    dimensionNames CesOneClickAlarmV2DimensionNames
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    enabled boolean
    Whether one-click monitoring is enabled.
    internalAlarmId string
    The auto-generated internal alarm ID returned by the API.
    namespace string
    The namespace of the monitored service.
    notificationBeginTime string
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notificationEnabled boolean
    Specifies whether to enable alarm notifications.
    notificationEndTime string

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    okNotifications CesOneClickAlarmV2OkNotification[]

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    oneClickAlarmId string
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    timeouts CesOneClickAlarmV2Timeouts
    alarm_notifications Sequence[CesOneClickAlarmV2AlarmNotificationArgs]

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    ces_one_click_alarm_v2_id str
    The one-click alarm ID.
    description str
    The description of the one-click monitoring configuration.
    dimension_names CesOneClickAlarmV2DimensionNamesArgs
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    enabled bool
    Whether one-click monitoring is enabled.
    internal_alarm_id str
    The auto-generated internal alarm ID returned by the API.
    namespace str
    The namespace of the monitored service.
    notification_begin_time str
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notification_enabled bool
    Specifies whether to enable alarm notifications.
    notification_end_time str

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    ok_notifications Sequence[CesOneClickAlarmV2OkNotificationArgs]

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    one_click_alarm_id str
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    timeouts CesOneClickAlarmV2TimeoutsArgs
    alarmNotifications List<Property Map>

    Specifies the action to be triggered by an alarm.

    • If the value of notification_enabled is false, this parameter should not be set.
    • If the value of notification_enabled is true, this parameter is required.

    The alarm_notifications structure is documented below.

    cesOneClickAlarmV2Id String
    The one-click alarm ID.
    description String
    The description of the one-click monitoring configuration.
    dimensionNames Property Map
    Specifies the dimension names for metric and event alarm rules. The dimension_names structure is documented below. Changing this creates a new resource.
    enabled Boolean
    Whether one-click monitoring is enabled.
    internalAlarmId String
    The auto-generated internal alarm ID returned by the API.
    namespace String
    The namespace of the monitored service.
    notificationBeginTime String
    Specifies the alarm notification start time, for example: 00:00. The format is HH:MM.
    notificationEnabled Boolean
    Specifies whether to enable alarm notifications.
    notificationEndTime String

    Specifies the alarm notification end time, for example: 23:59. The format is HH:MM.

    <a name=<span pulumi-lang-nodejs=""dimensionNamesStruct"" pulumi-lang-dotnet=""DimensionNamesStruct"" pulumi-lang-go=""dimensionNamesStruct"" pulumi-lang-python=""dimension_names_struct"" pulumi-lang-yaml=""dimensionNamesStruct"" pulumi-lang-java=""dimensionNamesStruct"">"dimension_names_struct"> The dimension_names block supports:

    okNotifications List<Property Map>

    Specifies the action to be triggered after an alarm is cleared.

    • If the value of notification_enabled is false, this parameter should not be set.

    The ok_notifications structure is documented below.

    oneClickAlarmId String
    Specifies the one-click monitoring ID. The value can be a string of 1 to 64 alphanumeric characters. Changing this creates a new resource.
    timeouts Property Map

    Supporting Types

    CesOneClickAlarmV2AlarmNotification, CesOneClickAlarmV2AlarmNotificationArgs

    NotificationLists List<string>
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    Type string
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    NotificationLists []string
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    Type string
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notificationLists List<String>
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type String
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notificationLists string[]
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type string
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notification_lists Sequence[str]
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type str
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notificationLists List<String>
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type String
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.

    CesOneClickAlarmV2DimensionNames, CesOneClickAlarmV2DimensionNamesArgs

    Event bool

    Specifies whether to enable event alarm rules. Defaults to false.

    At least one of metric or event must be configured within dimension_names.

    <a name=<span pulumi-lang-nodejs=""notificationsStruct"" pulumi-lang-dotnet=""NotificationsStruct"" pulumi-lang-go=""notificationsStruct"" pulumi-lang-python=""notifications_struct"" pulumi-lang-yaml=""notificationsStruct"" pulumi-lang-java=""notificationsStruct"">"notifications_struct"> The alarm_notifications and ok_notifications blocks support:

    Metrics List<string>
    Specifies the dimension strings for metric alarm rules. A maximum of 100 items are supported. Each element can be a string of 1 to 131 characters that must start with a letter and contain only letters, digits, underscores (_), hyphens (-), and commas (,).
    Event bool

    Specifies whether to enable event alarm rules. Defaults to false.

    At least one of metric or event must be configured within dimension_names.

    <a name=<span pulumi-lang-nodejs=""notificationsStruct"" pulumi-lang-dotnet=""NotificationsStruct"" pulumi-lang-go=""notificationsStruct"" pulumi-lang-python=""notifications_struct"" pulumi-lang-yaml=""notificationsStruct"" pulumi-lang-java=""notificationsStruct"">"notifications_struct"> The alarm_notifications and ok_notifications blocks support:

    Metrics []string
    Specifies the dimension strings for metric alarm rules. A maximum of 100 items are supported. Each element can be a string of 1 to 131 characters that must start with a letter and contain only letters, digits, underscores (_), hyphens (-), and commas (,).
    event Boolean

    Specifies whether to enable event alarm rules. Defaults to false.

    At least one of metric or event must be configured within dimension_names.

    <a name=<span pulumi-lang-nodejs=""notificationsStruct"" pulumi-lang-dotnet=""NotificationsStruct"" pulumi-lang-go=""notificationsStruct"" pulumi-lang-python=""notifications_struct"" pulumi-lang-yaml=""notificationsStruct"" pulumi-lang-java=""notificationsStruct"">"notifications_struct"> The alarm_notifications and ok_notifications blocks support:

    metrics List<String>
    Specifies the dimension strings for metric alarm rules. A maximum of 100 items are supported. Each element can be a string of 1 to 131 characters that must start with a letter and contain only letters, digits, underscores (_), hyphens (-), and commas (,).
    event boolean

    Specifies whether to enable event alarm rules. Defaults to false.

    At least one of metric or event must be configured within dimension_names.

    <a name=<span pulumi-lang-nodejs=""notificationsStruct"" pulumi-lang-dotnet=""NotificationsStruct"" pulumi-lang-go=""notificationsStruct"" pulumi-lang-python=""notifications_struct"" pulumi-lang-yaml=""notificationsStruct"" pulumi-lang-java=""notificationsStruct"">"notifications_struct"> The alarm_notifications and ok_notifications blocks support:

    metrics string[]
    Specifies the dimension strings for metric alarm rules. A maximum of 100 items are supported. Each element can be a string of 1 to 131 characters that must start with a letter and contain only letters, digits, underscores (_), hyphens (-), and commas (,).
    event bool

    Specifies whether to enable event alarm rules. Defaults to false.

    At least one of metric or event must be configured within dimension_names.

    <a name=<span pulumi-lang-nodejs=""notificationsStruct"" pulumi-lang-dotnet=""NotificationsStruct"" pulumi-lang-go=""notificationsStruct"" pulumi-lang-python=""notifications_struct"" pulumi-lang-yaml=""notificationsStruct"" pulumi-lang-java=""notificationsStruct"">"notifications_struct"> The alarm_notifications and ok_notifications blocks support:

    metrics Sequence[str]
    Specifies the dimension strings for metric alarm rules. A maximum of 100 items are supported. Each element can be a string of 1 to 131 characters that must start with a letter and contain only letters, digits, underscores (_), hyphens (-), and commas (,).
    event Boolean

    Specifies whether to enable event alarm rules. Defaults to false.

    At least one of metric or event must be configured within dimension_names.

    <a name=<span pulumi-lang-nodejs=""notificationsStruct"" pulumi-lang-dotnet=""NotificationsStruct"" pulumi-lang-go=""notificationsStruct"" pulumi-lang-python=""notifications_struct"" pulumi-lang-yaml=""notificationsStruct"" pulumi-lang-java=""notificationsStruct"">"notifications_struct"> The alarm_notifications and ok_notifications blocks support:

    metrics List<String>
    Specifies the dimension strings for metric alarm rules. A maximum of 100 items are supported. Each element can be a string of 1 to 131 characters that must start with a letter and contain only letters, digits, underscores (_), hyphens (-), and commas (,).

    CesOneClickAlarmV2OkNotification, CesOneClickAlarmV2OkNotificationArgs

    NotificationLists List<string>
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    Type string
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    NotificationLists []string
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    Type string
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notificationLists List<String>
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type String
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notificationLists string[]
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type string
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notification_lists Sequence[str]
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type str
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.
    notificationLists List<String>
    Specifies the list of SMN topic URNs. A maximum of 20 items are supported.
    type String
    Specifies the notification type. The value is notification, which indicates that a notification will be sent via SMN topic subscriptions.

    CesOneClickAlarmV2Timeouts, CesOneClickAlarmV2TimeoutsArgs

    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 one-click alarms v2 can be imported using the id, e.g.

    bash

    $ pulumi import opentelekomcloud:index/cesOneClickAlarmV2:CesOneClickAlarmV2 test OBSSystemOneClickAlarm
    

    Note that the imported state may not be identical to your resource definition, due to the API response not including

    some attributes. The missing attributes include: one_click_alarm_id, dimension_names, notification_enabled,

    alarm_notifications, ok_notifications, notification_begin_time, and notification_end_time.

    It is generally recommended running pulumi preview after importing the resource. You can then decide

    if changes should be applied to the resource, or the resource definition should be updated to align

    with the resource. Also, you can ignore changes as below.

    hcl

    resource “opentelekomcloud_ces_one_click_alarm_v2” “test” {

    lifecycle {

    ignore_changes = [
    
      one_click_alarm_id, dimension_names, notification_enabled,
    
      alarm_notifications, ok_notifications, notification_begin_time, notification_end_time,
    
    ]
    

    }

    }

    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
    Viewing docs for opentelekomcloud 1.36.61
    published on Thursday, Mar 12, 2026 by opentelekomcloud
      Try Pulumi Cloud free. Your team will thank you.