1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. CesAlarmrule
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.CesAlarmrule

Explore with Pulumi AI

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

Manages a V1 CES Alarm Rule resource within OpenTelekomCloud.

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

Example Usage

Basic alarm rule for single ECS monitoring

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const serverId = config.requireObject("serverId");
const smnTopicId = config.requireObject("smnTopicId");
const alarmRule = new opentelekomcloud.CesAlarmrule("alarmRule", {
    alarmName: "alarm_rule",
    metric: {
        namespace: "SYS.ECS",
        metricName: "network_outgoing_bytes_rate_inband",
        dimensions: [{
            name: "instance_id",
            value: serverId,
        }],
    },
    condition: {
        period: 300,
        filter: "average",
        comparisonOperator: ">",
        value: 6,
        unit: "B/s",
        count: 1,
    },
    alarmActions: [{
        type: "notification",
        notificationLists: [smnTopicId],
    }],
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
server_id = config.require_object("serverId")
smn_topic_id = config.require_object("smnTopicId")
alarm_rule = opentelekomcloud.CesAlarmrule("alarmRule",
    alarm_name="alarm_rule",
    metric={
        "namespace": "SYS.ECS",
        "metric_name": "network_outgoing_bytes_rate_inband",
        "dimensions": [{
            "name": "instance_id",
            "value": server_id,
        }],
    },
    condition={
        "period": 300,
        "filter": "average",
        "comparison_operator": ">",
        "value": 6,
        "unit": "B/s",
        "count": 1,
    },
    alarm_actions=[{
        "type": "notification",
        "notification_lists": [smn_topic_id],
    }])
Copy
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, "")
		serverId := cfg.RequireObject("serverId")
		smnTopicId := cfg.RequireObject("smnTopicId")
		_, err := opentelekomcloud.NewCesAlarmrule(ctx, "alarmRule", &opentelekomcloud.CesAlarmruleArgs{
			AlarmName: pulumi.String("alarm_rule"),
			Metric: &opentelekomcloud.CesAlarmruleMetricArgs{
				Namespace:  pulumi.String("SYS.ECS"),
				MetricName: pulumi.String("network_outgoing_bytes_rate_inband"),
				Dimensions: opentelekomcloud.CesAlarmruleMetricDimensionArray{
					&opentelekomcloud.CesAlarmruleMetricDimensionArgs{
						Name:  pulumi.String("instance_id"),
						Value: pulumi.Any(serverId),
					},
				},
			},
			Condition: &opentelekomcloud.CesAlarmruleConditionArgs{
				Period:             pulumi.Float64(300),
				Filter:             pulumi.String("average"),
				ComparisonOperator: pulumi.String(">"),
				Value:              pulumi.Float64(6),
				Unit:               pulumi.String("B/s"),
				Count:              pulumi.Float64(1),
			},
			AlarmActions: opentelekomcloud.CesAlarmruleAlarmActionArray{
				&opentelekomcloud.CesAlarmruleAlarmActionArgs{
					Type: pulumi.String("notification"),
					NotificationLists: pulumi.StringArray{
						smnTopicId,
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var serverId = config.RequireObject<dynamic>("serverId");
    var smnTopicId = config.RequireObject<dynamic>("smnTopicId");
    var alarmRule = new Opentelekomcloud.CesAlarmrule("alarmRule", new()
    {
        AlarmName = "alarm_rule",
        Metric = new Opentelekomcloud.Inputs.CesAlarmruleMetricArgs
        {
            Namespace = "SYS.ECS",
            MetricName = "network_outgoing_bytes_rate_inband",
            Dimensions = new[]
            {
                new Opentelekomcloud.Inputs.CesAlarmruleMetricDimensionArgs
                {
                    Name = "instance_id",
                    Value = serverId,
                },
            },
        },
        Condition = new Opentelekomcloud.Inputs.CesAlarmruleConditionArgs
        {
            Period = 300,
            Filter = "average",
            ComparisonOperator = ">",
            Value = 6,
            Unit = "B/s",
            Count = 1,
        },
        AlarmActions = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmruleAlarmActionArgs
            {
                Type = "notification",
                NotificationLists = new[]
                {
                    smnTopicId,
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesAlarmrule;
import com.pulumi.opentelekomcloud.CesAlarmruleArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmruleMetricArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmruleConditionArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmruleAlarmActionArgs;
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 serverId = config.get("serverId");
        final var smnTopicId = config.get("smnTopicId");
        var alarmRule = new CesAlarmrule("alarmRule", CesAlarmruleArgs.builder()
            .alarmName("alarm_rule")
            .metric(CesAlarmruleMetricArgs.builder()
                .namespace("SYS.ECS")
                .metricName("network_outgoing_bytes_rate_inband")
                .dimensions(CesAlarmruleMetricDimensionArgs.builder()
                    .name("instance_id")
                    .value(serverId)
                    .build())
                .build())
            .condition(CesAlarmruleConditionArgs.builder()
                .period(300)
                .filter("average")
                .comparisonOperator(">")
                .value(6)
                .unit("B/s")
                .count(1)
                .build())
            .alarmActions(CesAlarmruleAlarmActionArgs.builder()
                .type("notification")
                .notificationLists(smnTopicId)
                .build())
            .build());

    }
}
Copy
configuration:
  serverId:
    type: dynamic
  smnTopicId:
    type: dynamic
resources:
  alarmRule:
    type: opentelekomcloud:CesAlarmrule
    properties:
      alarmName: alarm_rule
      metric:
        namespace: SYS.ECS
        metricName: network_outgoing_bytes_rate_inband
        dimensions:
          - name: instance_id
            value: ${serverId}
      condition:
        period: 300
        filter: average
        comparisonOperator: '>'
        value: 6
        unit: B/s
        count: 1
      alarmActions:
        - type: notification
          notificationLists:
            - ${smnTopicId}
Copy

CBR system event alarm rule to monitor all CBR resources

import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";

const config = new pulumi.Config();
const smnTopicId = config.requireObject("smnTopicId");
const alarmrule1 = new opentelekomcloud.CesAlarmrule("alarmrule1", {
    alarmName: "alarm_rule1",
    alarmType: "EVENT.SYS",
    metric: {
        namespace: "SYS.CBR",
        metricName: "backupFailed",
    },
    condition: {
        period: 300,
        filter: "average",
        comparisonOperator: ">",
        value: 6,
        unit: "B/s",
        count: 1,
        alarmFrequency: 300,
    },
    alarmActionEnabled: false,
    alarmActions: [{
        type: "notification",
        notificationLists: [smnTopicId],
    }],
});
Copy
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud

config = pulumi.Config()
smn_topic_id = config.require_object("smnTopicId")
alarmrule1 = opentelekomcloud.CesAlarmrule("alarmrule1",
    alarm_name="alarm_rule1",
    alarm_type="EVENT.SYS",
    metric={
        "namespace": "SYS.CBR",
        "metric_name": "backupFailed",
    },
    condition={
        "period": 300,
        "filter": "average",
        "comparison_operator": ">",
        "value": 6,
        "unit": "B/s",
        "count": 1,
        "alarm_frequency": 300,
    },
    alarm_action_enabled=False,
    alarm_actions=[{
        "type": "notification",
        "notification_lists": [smn_topic_id],
    }])
Copy
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, "")
		smnTopicId := cfg.RequireObject("smnTopicId")
		_, err := opentelekomcloud.NewCesAlarmrule(ctx, "alarmrule1", &opentelekomcloud.CesAlarmruleArgs{
			AlarmName: pulumi.String("alarm_rule1"),
			AlarmType: pulumi.String("EVENT.SYS"),
			Metric: &opentelekomcloud.CesAlarmruleMetricArgs{
				Namespace:  pulumi.String("SYS.CBR"),
				MetricName: pulumi.String("backupFailed"),
			},
			Condition: &opentelekomcloud.CesAlarmruleConditionArgs{
				Period:             pulumi.Float64(300),
				Filter:             pulumi.String("average"),
				ComparisonOperator: pulumi.String(">"),
				Value:              pulumi.Float64(6),
				Unit:               pulumi.String("B/s"),
				Count:              pulumi.Float64(1),
				AlarmFrequency:     pulumi.Float64(300),
			},
			AlarmActionEnabled: pulumi.Bool(false),
			AlarmActions: opentelekomcloud.CesAlarmruleAlarmActionArray{
				&opentelekomcloud.CesAlarmruleAlarmActionArgs{
					Type: pulumi.String("notification"),
					NotificationLists: pulumi.StringArray{
						smnTopicId,
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var smnTopicId = config.RequireObject<dynamic>("smnTopicId");
    var alarmrule1 = new Opentelekomcloud.CesAlarmrule("alarmrule1", new()
    {
        AlarmName = "alarm_rule1",
        AlarmType = "EVENT.SYS",
        Metric = new Opentelekomcloud.Inputs.CesAlarmruleMetricArgs
        {
            Namespace = "SYS.CBR",
            MetricName = "backupFailed",
        },
        Condition = new Opentelekomcloud.Inputs.CesAlarmruleConditionArgs
        {
            Period = 300,
            Filter = "average",
            ComparisonOperator = ">",
            Value = 6,
            Unit = "B/s",
            Count = 1,
            AlarmFrequency = 300,
        },
        AlarmActionEnabled = false,
        AlarmActions = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmruleAlarmActionArgs
            {
                Type = "notification",
                NotificationLists = new[]
                {
                    smnTopicId,
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesAlarmrule;
import com.pulumi.opentelekomcloud.CesAlarmruleArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmruleMetricArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmruleConditionArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmruleAlarmActionArgs;
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 smnTopicId = config.get("smnTopicId");
        var alarmrule1 = new CesAlarmrule("alarmrule1", CesAlarmruleArgs.builder()
            .alarmName("alarm_rule1")
            .alarmType("EVENT.SYS")
            .metric(CesAlarmruleMetricArgs.builder()
                .namespace("SYS.CBR")
                .metricName("backupFailed")
                .build())
            .condition(CesAlarmruleConditionArgs.builder()
                .period(300)
                .filter("average")
                .comparisonOperator(">")
                .value(6)
                .unit("B/s")
                .count(1)
                .alarmFrequency(300)
                .build())
            .alarmActionEnabled(false)
            .alarmActions(CesAlarmruleAlarmActionArgs.builder()
                .type("notification")
                .notificationLists(smnTopicId)
                .build())
            .build());

    }
}
Copy
configuration:
  smnTopicId:
    type: dynamic
resources:
  alarmrule1:
    type: opentelekomcloud:CesAlarmrule
    properties:
      alarmName: alarm_rule1
      alarmType: EVENT.SYS
      metric:
        namespace: SYS.CBR
        metricName: backupFailed
      condition:
        period: 300
        filter: average
        comparisonOperator: '>'
        value: 6
        unit: B/s
        count: 1
        alarmFrequency: 300
      alarmActionEnabled: false
      alarmActions:
        - type: notification
          notificationLists:
            - ${smnTopicId}
Copy

Create CesAlarmrule Resource

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

Constructor syntax

new CesAlarmrule(name: string, args: CesAlarmruleArgs, opts?: CustomResourceOptions);
@overload
def CesAlarmrule(resource_name: str,
                 args: CesAlarmruleArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def CesAlarmrule(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 alarm_name: Optional[str] = None,
                 condition: Optional[CesAlarmruleConditionArgs] = None,
                 metric: Optional[CesAlarmruleMetricArgs] = None,
                 alarm_action_enabled: Optional[bool] = None,
                 alarm_actions: Optional[Sequence[CesAlarmruleAlarmActionArgs]] = None,
                 alarm_description: Optional[str] = None,
                 alarm_enabled: Optional[bool] = None,
                 alarm_level: Optional[float] = None,
                 alarm_type: Optional[str] = None,
                 ces_alarmrule_id: Optional[str] = None,
                 ok_actions: Optional[Sequence[CesAlarmruleOkActionArgs]] = None,
                 timeouts: Optional[CesAlarmruleTimeoutsArgs] = None)
func NewCesAlarmrule(ctx *Context, name string, args CesAlarmruleArgs, opts ...ResourceOption) (*CesAlarmrule, error)
public CesAlarmrule(string name, CesAlarmruleArgs args, CustomResourceOptions? opts = null)
public CesAlarmrule(String name, CesAlarmruleArgs args)
public CesAlarmrule(String name, CesAlarmruleArgs args, CustomResourceOptions options)
type: opentelekomcloud:CesAlarmrule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CesAlarmruleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CesAlarmruleArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CesAlarmruleArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CesAlarmruleArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CesAlarmruleArgs
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 cesAlarmruleResource = new Opentelekomcloud.CesAlarmrule("cesAlarmruleResource", new()
{
    AlarmName = "string",
    Condition = new Opentelekomcloud.Inputs.CesAlarmruleConditionArgs
    {
        ComparisonOperator = "string",
        Count = 0,
        Filter = "string",
        Period = 0,
        Value = 0,
        AlarmFrequency = 0,
        Unit = "string",
    },
    Metric = new Opentelekomcloud.Inputs.CesAlarmruleMetricArgs
    {
        MetricName = "string",
        Namespace = "string",
        Dimensions = new[]
        {
            new Opentelekomcloud.Inputs.CesAlarmruleMetricDimensionArgs
            {
                Name = "string",
                Value = "string",
            },
        },
    },
    AlarmActionEnabled = false,
    AlarmActions = new[]
    {
        new Opentelekomcloud.Inputs.CesAlarmruleAlarmActionArgs
        {
            NotificationLists = new[]
            {
                "string",
            },
            Type = "string",
        },
    },
    AlarmDescription = "string",
    AlarmEnabled = false,
    AlarmLevel = 0,
    AlarmType = "string",
    CesAlarmruleId = "string",
    OkActions = new[]
    {
        new Opentelekomcloud.Inputs.CesAlarmruleOkActionArgs
        {
            NotificationLists = new[]
            {
                "string",
            },
            Type = "string",
        },
    },
    Timeouts = new Opentelekomcloud.Inputs.CesAlarmruleTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
});
Copy
example, err := opentelekomcloud.NewCesAlarmrule(ctx, "cesAlarmruleResource", &opentelekomcloud.CesAlarmruleArgs{
AlarmName: pulumi.String("string"),
Condition: &.CesAlarmruleConditionArgs{
ComparisonOperator: pulumi.String("string"),
Count: pulumi.Float64(0),
Filter: pulumi.String("string"),
Period: pulumi.Float64(0),
Value: pulumi.Float64(0),
AlarmFrequency: pulumi.Float64(0),
Unit: pulumi.String("string"),
},
Metric: &.CesAlarmruleMetricArgs{
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
Dimensions: .CesAlarmruleMetricDimensionArray{
&.CesAlarmruleMetricDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
AlarmActionEnabled: pulumi.Bool(false),
AlarmActions: .CesAlarmruleAlarmActionArray{
&.CesAlarmruleAlarmActionArgs{
NotificationLists: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
AlarmDescription: pulumi.String("string"),
AlarmEnabled: pulumi.Bool(false),
AlarmLevel: pulumi.Float64(0),
AlarmType: pulumi.String("string"),
CesAlarmruleId: pulumi.String("string"),
OkActions: .CesAlarmruleOkActionArray{
&.CesAlarmruleOkActionArgs{
NotificationLists: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
Timeouts: &.CesAlarmruleTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
Copy
var cesAlarmruleResource = new CesAlarmrule("cesAlarmruleResource", CesAlarmruleArgs.builder()
    .alarmName("string")
    .condition(CesAlarmruleConditionArgs.builder()
        .comparisonOperator("string")
        .count(0)
        .filter("string")
        .period(0)
        .value(0)
        .alarmFrequency(0)
        .unit("string")
        .build())
    .metric(CesAlarmruleMetricArgs.builder()
        .metricName("string")
        .namespace("string")
        .dimensions(CesAlarmruleMetricDimensionArgs.builder()
            .name("string")
            .value("string")
            .build())
        .build())
    .alarmActionEnabled(false)
    .alarmActions(CesAlarmruleAlarmActionArgs.builder()
        .notificationLists("string")
        .type("string")
        .build())
    .alarmDescription("string")
    .alarmEnabled(false)
    .alarmLevel(0)
    .alarmType("string")
    .cesAlarmruleId("string")
    .okActions(CesAlarmruleOkActionArgs.builder()
        .notificationLists("string")
        .type("string")
        .build())
    .timeouts(CesAlarmruleTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .build());
Copy
ces_alarmrule_resource = opentelekomcloud.CesAlarmrule("cesAlarmruleResource",
    alarm_name="string",
    condition={
        "comparison_operator": "string",
        "count": 0,
        "filter": "string",
        "period": 0,
        "value": 0,
        "alarm_frequency": 0,
        "unit": "string",
    },
    metric={
        "metric_name": "string",
        "namespace": "string",
        "dimensions": [{
            "name": "string",
            "value": "string",
        }],
    },
    alarm_action_enabled=False,
    alarm_actions=[{
        "notification_lists": ["string"],
        "type": "string",
    }],
    alarm_description="string",
    alarm_enabled=False,
    alarm_level=0,
    alarm_type="string",
    ces_alarmrule_id="string",
    ok_actions=[{
        "notification_lists": ["string"],
        "type": "string",
    }],
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    })
Copy
const cesAlarmruleResource = new opentelekomcloud.CesAlarmrule("cesAlarmruleResource", {
    alarmName: "string",
    condition: {
        comparisonOperator: "string",
        count: 0,
        filter: "string",
        period: 0,
        value: 0,
        alarmFrequency: 0,
        unit: "string",
    },
    metric: {
        metricName: "string",
        namespace: "string",
        dimensions: [{
            name: "string",
            value: "string",
        }],
    },
    alarmActionEnabled: false,
    alarmActions: [{
        notificationLists: ["string"],
        type: "string",
    }],
    alarmDescription: "string",
    alarmEnabled: false,
    alarmLevel: 0,
    alarmType: "string",
    cesAlarmruleId: "string",
    okActions: [{
        notificationLists: ["string"],
        type: "string",
    }],
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: opentelekomcloud:CesAlarmrule
properties:
    alarmActionEnabled: false
    alarmActions:
        - notificationLists:
            - string
          type: string
    alarmDescription: string
    alarmEnabled: false
    alarmLevel: 0
    alarmName: string
    alarmType: string
    cesAlarmruleId: string
    condition:
        alarmFrequency: 0
        comparisonOperator: string
        count: 0
        filter: string
        period: 0
        unit: string
        value: 0
    metric:
        dimensions:
            - name: string
              value: string
        metricName: string
        namespace: string
    okActions:
        - notificationLists:
            - string
          type: string
    timeouts:
        create: string
        delete: string
        update: string
Copy

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

AlarmName This property is required. string
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
Condition This property is required. CesAlarmruleCondition
Specifies the alarm triggering condition. The structure is described below.
Metric This property is required. CesAlarmruleMetric
Specifies the alarm metrics. The structure is described below.
AlarmActionEnabled bool
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
AlarmActions List<CesAlarmruleAlarmAction>
Specifies the actions list triggered by an alarm. The structure is described below.
AlarmDescription string
Alarm description. The value can be a string of 0 to 256 characters.
AlarmEnabled bool
Specifies whether to enable the alarm. The default value is true.
AlarmLevel double
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
AlarmType string
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
CesAlarmruleId string
Specifies the alarm rule ID.
OkActions List<CesAlarmruleOkAction>
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
Timeouts CesAlarmruleTimeouts
AlarmName This property is required. string
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
Condition This property is required. CesAlarmruleConditionArgs
Specifies the alarm triggering condition. The structure is described below.
Metric This property is required. CesAlarmruleMetricArgs
Specifies the alarm metrics. The structure is described below.
AlarmActionEnabled bool
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
AlarmActions []CesAlarmruleAlarmActionArgs
Specifies the actions list triggered by an alarm. The structure is described below.
AlarmDescription string
Alarm description. The value can be a string of 0 to 256 characters.
AlarmEnabled bool
Specifies whether to enable the alarm. The default value is true.
AlarmLevel float64
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
AlarmType string
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
CesAlarmruleId string
Specifies the alarm rule ID.
OkActions []CesAlarmruleOkActionArgs
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
Timeouts CesAlarmruleTimeoutsArgs
alarmName This property is required. String
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
condition This property is required. CesAlarmruleCondition
Specifies the alarm triggering condition. The structure is described below.
metric This property is required. CesAlarmruleMetric
Specifies the alarm metrics. The structure is described below.
alarmActionEnabled Boolean
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarmActions List<CesAlarmruleAlarmAction>
Specifies the actions list triggered by an alarm. The structure is described below.
alarmDescription String
Alarm description. The value can be a string of 0 to 256 characters.
alarmEnabled Boolean
Specifies whether to enable the alarm. The default value is true.
alarmLevel Double
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarmType String
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
cesAlarmruleId String
Specifies the alarm rule ID.
okActions List<CesAlarmruleOkAction>
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts CesAlarmruleTimeouts
alarmName This property is required. string
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
condition This property is required. CesAlarmruleCondition
Specifies the alarm triggering condition. The structure is described below.
metric This property is required. CesAlarmruleMetric
Specifies the alarm metrics. The structure is described below.
alarmActionEnabled boolean
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarmActions CesAlarmruleAlarmAction[]
Specifies the actions list triggered by an alarm. The structure is described below.
alarmDescription string
Alarm description. The value can be a string of 0 to 256 characters.
alarmEnabled boolean
Specifies whether to enable the alarm. The default value is true.
alarmLevel number
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarmType string
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
cesAlarmruleId string
Specifies the alarm rule ID.
okActions CesAlarmruleOkAction[]
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts CesAlarmruleTimeouts
alarm_name This property is required. str
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
condition This property is required. CesAlarmruleConditionArgs
Specifies the alarm triggering condition. The structure is described below.
metric This property is required. CesAlarmruleMetricArgs
Specifies the alarm metrics. The structure is described below.
alarm_action_enabled bool
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarm_actions Sequence[CesAlarmruleAlarmActionArgs]
Specifies the actions list triggered by an alarm. The structure is described below.
alarm_description str
Alarm description. The value can be a string of 0 to 256 characters.
alarm_enabled bool
Specifies whether to enable the alarm. The default value is true.
alarm_level float
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarm_type str
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
ces_alarmrule_id str
Specifies the alarm rule ID.
ok_actions Sequence[CesAlarmruleOkActionArgs]
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts CesAlarmruleTimeoutsArgs
alarmName This property is required. String
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
condition This property is required. Property Map
Specifies the alarm triggering condition. The structure is described below.
metric This property is required. Property Map
Specifies the alarm metrics. The structure is described below.
alarmActionEnabled Boolean
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarmActions List<Property Map>
Specifies the actions list triggered by an alarm. The structure is described below.
alarmDescription String
Alarm description. The value can be a string of 0 to 256 characters.
alarmEnabled Boolean
Specifies whether to enable the alarm. The default value is true.
alarmLevel Number
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarmType String
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
cesAlarmruleId String
Specifies the alarm rule ID.
okActions List<Property Map>
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts Property Map

Outputs

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

AlarmState string
Specifies the alarm status. The value can be:
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime double
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
AlarmState string
Specifies the alarm status. The value can be:
Id string
The provider-assigned unique ID for this managed resource.
UpdateTime float64
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarmState String
Specifies the alarm status. The value can be:
id String
The provider-assigned unique ID for this managed resource.
updateTime Double
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarmState string
Specifies the alarm status. The value can be:
id string
The provider-assigned unique ID for this managed resource.
updateTime number
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarm_state str
Specifies the alarm status. The value can be:
id str
The provider-assigned unique ID for this managed resource.
update_time float
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarmState String
Specifies the alarm status. The value can be:
id String
The provider-assigned unique ID for this managed resource.
updateTime Number
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.

Look up Existing CesAlarmrule Resource

Get an existing CesAlarmrule 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?: CesAlarmruleState, opts?: CustomResourceOptions): CesAlarmrule
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alarm_action_enabled: Optional[bool] = None,
        alarm_actions: Optional[Sequence[CesAlarmruleAlarmActionArgs]] = None,
        alarm_description: Optional[str] = None,
        alarm_enabled: Optional[bool] = None,
        alarm_level: Optional[float] = None,
        alarm_name: Optional[str] = None,
        alarm_state: Optional[str] = None,
        alarm_type: Optional[str] = None,
        ces_alarmrule_id: Optional[str] = None,
        condition: Optional[CesAlarmruleConditionArgs] = None,
        metric: Optional[CesAlarmruleMetricArgs] = None,
        ok_actions: Optional[Sequence[CesAlarmruleOkActionArgs]] = None,
        timeouts: Optional[CesAlarmruleTimeoutsArgs] = None,
        update_time: Optional[float] = None) -> CesAlarmrule
func GetCesAlarmrule(ctx *Context, name string, id IDInput, state *CesAlarmruleState, opts ...ResourceOption) (*CesAlarmrule, error)
public static CesAlarmrule Get(string name, Input<string> id, CesAlarmruleState? state, CustomResourceOptions? opts = null)
public static CesAlarmrule get(String name, Output<String> id, CesAlarmruleState state, CustomResourceOptions options)
resources:  _:    type: opentelekomcloud:CesAlarmrule    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AlarmActionEnabled bool
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
AlarmActions List<CesAlarmruleAlarmAction>
Specifies the actions list triggered by an alarm. The structure is described below.
AlarmDescription string
Alarm description. The value can be a string of 0 to 256 characters.
AlarmEnabled bool
Specifies whether to enable the alarm. The default value is true.
AlarmLevel double
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
AlarmName string
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
AlarmState string
Specifies the alarm status. The value can be:
AlarmType string
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
CesAlarmruleId string
Specifies the alarm rule ID.
Condition CesAlarmruleCondition
Specifies the alarm triggering condition. The structure is described below.
Metric CesAlarmruleMetric
Specifies the alarm metrics. The structure is described below.
OkActions List<CesAlarmruleOkAction>
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
Timeouts CesAlarmruleTimeouts
UpdateTime double
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
AlarmActionEnabled bool
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
AlarmActions []CesAlarmruleAlarmActionArgs
Specifies the actions list triggered by an alarm. The structure is described below.
AlarmDescription string
Alarm description. The value can be a string of 0 to 256 characters.
AlarmEnabled bool
Specifies whether to enable the alarm. The default value is true.
AlarmLevel float64
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
AlarmName string
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
AlarmState string
Specifies the alarm status. The value can be:
AlarmType string
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
CesAlarmruleId string
Specifies the alarm rule ID.
Condition CesAlarmruleConditionArgs
Specifies the alarm triggering condition. The structure is described below.
Metric CesAlarmruleMetricArgs
Specifies the alarm metrics. The structure is described below.
OkActions []CesAlarmruleOkActionArgs
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
Timeouts CesAlarmruleTimeoutsArgs
UpdateTime float64
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarmActionEnabled Boolean
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarmActions List<CesAlarmruleAlarmAction>
Specifies the actions list triggered by an alarm. The structure is described below.
alarmDescription String
Alarm description. The value can be a string of 0 to 256 characters.
alarmEnabled Boolean
Specifies whether to enable the alarm. The default value is true.
alarmLevel Double
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarmName String
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
alarmState String
Specifies the alarm status. The value can be:
alarmType String
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
cesAlarmruleId String
Specifies the alarm rule ID.
condition CesAlarmruleCondition
Specifies the alarm triggering condition. The structure is described below.
metric CesAlarmruleMetric
Specifies the alarm metrics. The structure is described below.
okActions List<CesAlarmruleOkAction>
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts CesAlarmruleTimeouts
updateTime Double
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarmActionEnabled boolean
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarmActions CesAlarmruleAlarmAction[]
Specifies the actions list triggered by an alarm. The structure is described below.
alarmDescription string
Alarm description. The value can be a string of 0 to 256 characters.
alarmEnabled boolean
Specifies whether to enable the alarm. The default value is true.
alarmLevel number
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarmName string
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
alarmState string
Specifies the alarm status. The value can be:
alarmType string
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
cesAlarmruleId string
Specifies the alarm rule ID.
condition CesAlarmruleCondition
Specifies the alarm triggering condition. The structure is described below.
metric CesAlarmruleMetric
Specifies the alarm metrics. The structure is described below.
okActions CesAlarmruleOkAction[]
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts CesAlarmruleTimeouts
updateTime number
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarm_action_enabled bool
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarm_actions Sequence[CesAlarmruleAlarmActionArgs]
Specifies the actions list triggered by an alarm. The structure is described below.
alarm_description str
Alarm description. The value can be a string of 0 to 256 characters.
alarm_enabled bool
Specifies whether to enable the alarm. The default value is true.
alarm_level float
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarm_name str
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
alarm_state str
Specifies the alarm status. The value can be:
alarm_type str
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
ces_alarmrule_id str
Specifies the alarm rule ID.
condition CesAlarmruleConditionArgs
Specifies the alarm triggering condition. The structure is described below.
metric CesAlarmruleMetricArgs
Specifies the alarm metrics. The structure is described below.
ok_actions Sequence[CesAlarmruleOkActionArgs]
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts CesAlarmruleTimeoutsArgs
update_time float
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
alarmActionEnabled Boolean
Specifies whether to enable the action to be triggered by an alarm. The default value is true.
alarmActions List<Property Map>
Specifies the actions list triggered by an alarm. The structure is described below.
alarmDescription String
Alarm description. The value can be a string of 0 to 256 characters.
alarmEnabled Boolean
Specifies whether to enable the alarm. The default value is true.
alarmLevel Number
Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational. The default value is 2.
alarmName String
Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
alarmState String
Specifies the alarm status. The value can be:
alarmType String
Specifies the alarm rule type. EVENT.SYS: The alarm rule is created for system events. EVENT.CUSTOM: The alarm rule is created for custom events.
cesAlarmruleId String
Specifies the alarm rule ID.
condition Property Map
Specifies the alarm triggering condition. The structure is described below.
metric Property Map
Specifies the alarm metrics. The structure is described below.
okActions List<Property Map>
Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
timeouts Property Map
updateTime Number
Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.

Supporting Types

CesAlarmruleAlarmAction
, CesAlarmruleAlarmActionArgs

NotificationLists This property is required. List<string>

Specifies the topic urn list of the target notification objects. The maximum length is 5. The topic urn list can be obtained from simple message notification (SMN) and in the following format: urn:smn:([a-z]|[a-z]|[0-9]|\-){1,32}:([a-z]|[a-z]|[0-9]){32}:([a-z]|[a-z]|[0-9]|\-|\_){1,256}. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [].

To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.

Type This property is required. string
Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
NotificationLists This property is required. []string

Specifies the topic urn list of the target notification objects. The maximum length is 5. The topic urn list can be obtained from simple message notification (SMN) and in the following format: urn:smn:([a-z]|[a-z]|[0-9]|\-){1,32}:([a-z]|[a-z]|[0-9]){32}:([a-z]|[a-z]|[0-9]|\-|\_){1,256}. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [].

To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.

Type This property is required. string
Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
notificationLists This property is required. List<String>

Specifies the topic urn list of the target notification objects. The maximum length is 5. The topic urn list can be obtained from simple message notification (SMN) and in the following format: urn:smn:([a-z]|[a-z]|[0-9]|\-){1,32}:([a-z]|[a-z]|[0-9]){32}:([a-z]|[a-z]|[0-9]|\-|\_){1,256}. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [].

To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.

type This property is required. String
Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
notificationLists This property is required. string[]

Specifies the topic urn list of the target notification objects. The maximum length is 5. The topic urn list can be obtained from simple message notification (SMN) and in the following format: urn:smn:([a-z]|[a-z]|[0-9]|\-){1,32}:([a-z]|[a-z]|[0-9]){32}:([a-z]|[a-z]|[0-9]|\-|\_){1,256}. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [].

To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.

type This property is required. string
Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
notification_lists This property is required. Sequence[str]

Specifies the topic urn list of the target notification objects. The maximum length is 5. The topic urn list can be obtained from simple message notification (SMN) and in the following format: urn:smn:([a-z]|[a-z]|[0-9]|\-){1,32}:([a-z]|[a-z]|[0-9]){32}:([a-z]|[a-z]|[0-9]|\-|\_){1,256}. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [].

To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.

type This property is required. str
Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
notificationLists This property is required. List<String>

Specifies the topic urn list of the target notification objects. The maximum length is 5. The topic urn list can be obtained from simple message notification (SMN) and in the following format: urn:smn:([a-z]|[a-z]|[0-9]|\-){1,32}:([a-z]|[a-z]|[0-9]){32}:([a-z]|[a-z]|[0-9]|\-|\_){1,256}. If type is set to notification, the value of notification_list cannot be empty. If type is set to autoscaling, the value of notification_list must be [].

To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.

type This property is required. String
Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.

CesAlarmruleCondition
, CesAlarmruleConditionArgs

ComparisonOperator This property is required. string
Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
Count This property is required. double
Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
Filter This property is required. string
Specifies the data rollup methods. The value can be max, min, average, sum, and variance.
Period This property is required. double

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

If period is set to 1, the raw metric data is used to determine whether to generate an alarm.

To trigger an event immediately, simply set the period parameter to 0

Value This property is required. double
Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE of 1.7976931348623157e+108.
AlarmFrequency double
Specifies frequency for alarm triggering. If argument is not provided alarm will be triggered once. 300: Cloud Eye triggers the alarm every 5 minutes. 600: Cloud Eye triggers the alarm every 10 minutes. 900: Cloud Eye triggers the alarm every 15 minutes. 1800: Cloud Eye triggers the alarm every 30 minutes. 3600: Cloud Eye triggers the alarm every hour. 10800: Cloud Eye triggers the alarm every 3 hours. 21600: Cloud Eye triggers the alarm every 6 hours. 43200: Cloud Eye triggers the alarm every 12 hours. 86400: Cloud Eye triggers the alarm every day.
Unit string
Specifies the data unit.
ComparisonOperator This property is required. string
Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
Count This property is required. float64
Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
Filter This property is required. string
Specifies the data rollup methods. The value can be max, min, average, sum, and variance.
Period This property is required. float64

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

If period is set to 1, the raw metric data is used to determine whether to generate an alarm.

To trigger an event immediately, simply set the period parameter to 0

Value This property is required. float64
Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE of 1.7976931348623157e+108.
AlarmFrequency float64
Specifies frequency for alarm triggering. If argument is not provided alarm will be triggered once. 300: Cloud Eye triggers the alarm every 5 minutes. 600: Cloud Eye triggers the alarm every 10 minutes. 900: Cloud Eye triggers the alarm every 15 minutes. 1800: Cloud Eye triggers the alarm every 30 minutes. 3600: Cloud Eye triggers the alarm every hour. 10800: Cloud Eye triggers the alarm every 3 hours. 21600: Cloud Eye triggers the alarm every 6 hours. 43200: Cloud Eye triggers the alarm every 12 hours. 86400: Cloud Eye triggers the alarm every day.
Unit string
Specifies the data unit.
comparisonOperator This property is required. String
Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
count This property is required. Double
Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
filter This property is required. String
Specifies the data rollup methods. The value can be max, min, average, sum, and variance.
period This property is required. Double

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

If period is set to 1, the raw metric data is used to determine whether to generate an alarm.

To trigger an event immediately, simply set the period parameter to 0

value This property is required. Double
Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE of 1.7976931348623157e+108.
alarmFrequency Double
Specifies frequency for alarm triggering. If argument is not provided alarm will be triggered once. 300: Cloud Eye triggers the alarm every 5 minutes. 600: Cloud Eye triggers the alarm every 10 minutes. 900: Cloud Eye triggers the alarm every 15 minutes. 1800: Cloud Eye triggers the alarm every 30 minutes. 3600: Cloud Eye triggers the alarm every hour. 10800: Cloud Eye triggers the alarm every 3 hours. 21600: Cloud Eye triggers the alarm every 6 hours. 43200: Cloud Eye triggers the alarm every 12 hours. 86400: Cloud Eye triggers the alarm every day.
unit String
Specifies the data unit.
comparisonOperator This property is required. string
Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
count This property is required. number
Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
filter This property is required. string
Specifies the data rollup methods. The value can be max, min, average, sum, and variance.
period This property is required. number

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

If period is set to 1, the raw metric data is used to determine whether to generate an alarm.

To trigger an event immediately, simply set the period parameter to 0

value This property is required. number
Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE of 1.7976931348623157e+108.
alarmFrequency number
Specifies frequency for alarm triggering. If argument is not provided alarm will be triggered once. 300: Cloud Eye triggers the alarm every 5 minutes. 600: Cloud Eye triggers the alarm every 10 minutes. 900: Cloud Eye triggers the alarm every 15 minutes. 1800: Cloud Eye triggers the alarm every 30 minutes. 3600: Cloud Eye triggers the alarm every hour. 10800: Cloud Eye triggers the alarm every 3 hours. 21600: Cloud Eye triggers the alarm every 6 hours. 43200: Cloud Eye triggers the alarm every 12 hours. 86400: Cloud Eye triggers the alarm every day.
unit string
Specifies the data unit.
comparison_operator This property is required. str
Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
count This property is required. float
Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
filter This property is required. str
Specifies the data rollup methods. The value can be max, min, average, sum, and variance.
period This property is required. float

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

If period is set to 1, the raw metric data is used to determine whether to generate an alarm.

To trigger an event immediately, simply set the period parameter to 0

value This property is required. float
Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE of 1.7976931348623157e+108.
alarm_frequency float
Specifies frequency for alarm triggering. If argument is not provided alarm will be triggered once. 300: Cloud Eye triggers the alarm every 5 minutes. 600: Cloud Eye triggers the alarm every 10 minutes. 900: Cloud Eye triggers the alarm every 15 minutes. 1800: Cloud Eye triggers the alarm every 30 minutes. 3600: Cloud Eye triggers the alarm every hour. 10800: Cloud Eye triggers the alarm every 3 hours. 21600: Cloud Eye triggers the alarm every 6 hours. 43200: Cloud Eye triggers the alarm every 12 hours. 86400: Cloud Eye triggers the alarm every day.
unit str
Specifies the data unit.
comparisonOperator This property is required. String
Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
count This property is required. Number
Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
filter This property is required. String
Specifies the data rollup methods. The value can be max, min, average, sum, and variance.
period This property is required. Number

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

If period is set to 1, the raw metric data is used to determine whether to generate an alarm.

To trigger an event immediately, simply set the period parameter to 0

value This property is required. Number
Specifies the alarm threshold. The value ranges from 0 to Number.MAX_VALUE of 1.7976931348623157e+108.
alarmFrequency Number
Specifies frequency for alarm triggering. If argument is not provided alarm will be triggered once. 300: Cloud Eye triggers the alarm every 5 minutes. 600: Cloud Eye triggers the alarm every 10 minutes. 900: Cloud Eye triggers the alarm every 15 minutes. 1800: Cloud Eye triggers the alarm every 30 minutes. 3600: Cloud Eye triggers the alarm every hour. 10800: Cloud Eye triggers the alarm every 3 hours. 21600: Cloud Eye triggers the alarm every 6 hours. 43200: Cloud Eye triggers the alarm every 12 hours. 86400: Cloud Eye triggers the alarm every day.
unit String
Specifies the data unit.

CesAlarmruleMetric
, CesAlarmruleMetricArgs

MetricName This property is required. string
Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics.
Namespace This property is required. string
Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
Dimensions List<CesAlarmruleMetricDimension>
Specifies the list of metric dimensions. If CES alarm_type is set to EVENT.SYS leaving this argument empty will enable monitoring for all service instances. Otherwise, argument is required. Currently, the maximum length of the dimension list that are supported is 3. The structure is described below.
MetricName This property is required. string
Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics.
Namespace This property is required. string
Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
Dimensions []CesAlarmruleMetricDimension
Specifies the list of metric dimensions. If CES alarm_type is set to EVENT.SYS leaving this argument empty will enable monitoring for all service instances. Otherwise, argument is required. Currently, the maximum length of the dimension list that are supported is 3. The structure is described below.
metricName This property is required. String
Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics.
namespace This property is required. String
Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
dimensions List<CesAlarmruleMetricDimension>
Specifies the list of metric dimensions. If CES alarm_type is set to EVENT.SYS leaving this argument empty will enable monitoring for all service instances. Otherwise, argument is required. Currently, the maximum length of the dimension list that are supported is 3. The structure is described below.
metricName This property is required. string
Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics.
namespace This property is required. string
Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
dimensions CesAlarmruleMetricDimension[]
Specifies the list of metric dimensions. If CES alarm_type is set to EVENT.SYS leaving this argument empty will enable monitoring for all service instances. Otherwise, argument is required. Currently, the maximum length of the dimension list that are supported is 3. The structure is described below.
metric_name This property is required. str
Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics.
namespace This property is required. str
Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
dimensions Sequence[CesAlarmruleMetricDimension]
Specifies the list of metric dimensions. If CES alarm_type is set to EVENT.SYS leaving this argument empty will enable monitoring for all service instances. Otherwise, argument is required. Currently, the maximum length of the dimension list that are supported is 3. The structure is described below.
metricName This property is required. String
Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics.
namespace This property is required. String
Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
dimensions List<Property Map>
Specifies the list of metric dimensions. If CES alarm_type is set to EVENT.SYS leaving this argument empty will enable monitoring for all service instances. Otherwise, argument is required. Currently, the maximum length of the dimension list that are supported is 3. The structure is described below.

CesAlarmruleMetricDimension
, CesAlarmruleMetricDimensionArgs

Name This property is required. string
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
Value This property is required. string

Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).

Available dimensions can be checked here.

Name This property is required. string
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
Value This property is required. string

Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).

Available dimensions can be checked here.

name This property is required. String
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
value This property is required. String

Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).

Available dimensions can be checked here.

name This property is required. string
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
value This property is required. string

Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).

Available dimensions can be checked here.

name This property is required. str
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
value This property is required. str

Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).

Available dimensions can be checked here.

name This property is required. String
Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
value This property is required. String

Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).

Available dimensions can be checked here.

CesAlarmruleOkAction
, CesAlarmruleOkActionArgs

NotificationLists This property is required. List<string>
Indicates the list of objects to be notified if the alarm status changes. The maximum length is 5.
Type This property is required. string
specifies the type of action triggered by an alarm. the value is notification.
NotificationLists This property is required. []string
Indicates the list of objects to be notified if the alarm status changes. The maximum length is 5.
Type This property is required. string
specifies the type of action triggered by an alarm. the value is notification.
notificationLists This property is required. List<String>
Indicates the list of objects to be notified if the alarm status changes. The maximum length is 5.
type This property is required. String
specifies the type of action triggered by an alarm. the value is notification.
notificationLists This property is required. string[]
Indicates the list of objects to be notified if the alarm status changes. The maximum length is 5.
type This property is required. string
specifies the type of action triggered by an alarm. the value is notification.
notification_lists This property is required. Sequence[str]
Indicates the list of objects to be notified if the alarm status changes. The maximum length is 5.
type This property is required. str
specifies the type of action triggered by an alarm. the value is notification.
notificationLists This property is required. List<String>
Indicates the list of objects to be notified if the alarm status changes. The maximum length is 5.
type This property is required. String
specifies the type of action triggered by an alarm. the value is notification.

CesAlarmruleTimeouts
, CesAlarmruleTimeoutsArgs

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 alarms can be imported using alarm rule id, e.g.

$ pulumi import opentelekomcloud:index/cesAlarmrule:CesAlarmrule alarmrule c1881895-cdcb-4d23-96cb-032e6a3ee667
Copy

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.