1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. CesAlarmrule
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.CesAlarmrule

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manages a Cloud Eye alarm rule resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const alarmRule = new flexibleengine.CesAlarmrule("alarmRule", {
        alarmName: "alarm_rule",
        metric: {
            namespace: "SYS.ECS",
            metricName: "network_outgoing_bytes_rate_inband",
            dimensions: [{
                name: "instance_id",
                value: _var.instance_id,
            }],
        },
        condition: {
            period: 300,
            filter: "average",
            comparisonOperator: ">",
            value: 6,
            unit: "B/s",
            count: 1,
        },
        alarmActions: [{
            type: "notification",
            notificationLists: [_var.topic_id],
        }],
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    alarm_rule = flexibleengine.CesAlarmrule("alarmRule",
        alarm_name="alarm_rule",
        metric={
            "namespace": "SYS.ECS",
            "metric_name": "network_outgoing_bytes_rate_inband",
            "dimensions": [{
                "name": "instance_id",
                "value": var["instance_id"],
            }],
        },
        condition={
            "period": 300,
            "filter": "average",
            "comparison_operator": ">",
            "value": 6,
            "unit": "B/s",
            "count": 1,
        },
        alarm_actions=[{
            "type": "notification",
            "notification_lists": [var["topic_id"]],
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.NewCesAlarmrule(ctx, "alarmRule", &flexibleengine.CesAlarmruleArgs{
    			AlarmName: pulumi.String("alarm_rule"),
    			Metric: &flexibleengine.CesAlarmruleMetricArgs{
    				Namespace:  pulumi.String("SYS.ECS"),
    				MetricName: pulumi.String("network_outgoing_bytes_rate_inband"),
    				Dimensions: flexibleengine.CesAlarmruleMetricDimensionArray{
    					&flexibleengine.CesAlarmruleMetricDimensionArgs{
    						Name:  pulumi.String("instance_id"),
    						Value: pulumi.Any(_var.Instance_id),
    					},
    				},
    			},
    			Condition: &flexibleengine.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: flexibleengine.CesAlarmruleAlarmActionArray{
    				&flexibleengine.CesAlarmruleAlarmActionArgs{
    					Type: pulumi.String("notification"),
    					NotificationLists: pulumi.StringArray{
    						_var.Topic_id,
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var alarmRule = new Flexibleengine.CesAlarmrule("alarmRule", new()
        {
            AlarmName = "alarm_rule",
            Metric = new Flexibleengine.Inputs.CesAlarmruleMetricArgs
            {
                Namespace = "SYS.ECS",
                MetricName = "network_outgoing_bytes_rate_inband",
                Dimensions = new[]
                {
                    new Flexibleengine.Inputs.CesAlarmruleMetricDimensionArgs
                    {
                        Name = "instance_id",
                        Value = @var.Instance_id,
                    },
                },
            },
            Condition = new Flexibleengine.Inputs.CesAlarmruleConditionArgs
            {
                Period = 300,
                Filter = "average",
                ComparisonOperator = ">",
                Value = 6,
                Unit = "B/s",
                Count = 1,
            },
            AlarmActions = new[]
            {
                new Flexibleengine.Inputs.CesAlarmruleAlarmActionArgs
                {
                    Type = "notification",
                    NotificationLists = new[]
                    {
                        @var.Topic_id,
                    },
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.CesAlarmrule;
    import com.pulumi.flexibleengine.CesAlarmruleArgs;
    import com.pulumi.flexibleengine.inputs.CesAlarmruleMetricArgs;
    import com.pulumi.flexibleengine.inputs.CesAlarmruleConditionArgs;
    import com.pulumi.flexibleengine.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) {
            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(var_.instance_id())
                        .build())
                    .build())
                .condition(CesAlarmruleConditionArgs.builder()
                    .period(300)
                    .filter("average")
                    .comparisonOperator(">")
                    .value(6)
                    .unit("B/s")
                    .count(1)
                    .build())
                .alarmActions(CesAlarmruleAlarmActionArgs.builder()
                    .type("notification")
                    .notificationLists(var_.topic_id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      alarmRule:
        type: flexibleengine:CesAlarmrule
        properties:
          alarmName: alarm_rule
          metric:
            namespace: SYS.ECS
            metricName: network_outgoing_bytes_rate_inband
            dimensions:
              - name: instance_id
                value: ${var.instance_id}
          condition:
            period: 300
            filter: average
            comparisonOperator: '>'
            value: 6
            unit: B/s
            count: 1
          alarmActions:
            - type: notification
              notificationLists:
                - ${var.topic_id}
    

    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,
                     metric: Optional[CesAlarmruleMetricArgs] = None,
                     condition: Optional[CesAlarmruleConditionArgs] = None,
                     alarm_enabled: Optional[bool] = None,
                     alarm_level: Optional[float] = None,
                     alarm_action_enabled: Optional[bool] = None,
                     ces_alarmrule_id: Optional[str] = None,
                     alarm_description: Optional[str] = None,
                     insufficientdata_actions: Optional[Sequence[CesAlarmruleInsufficientdataActionArgs]] = None,
                     alarm_actions: Optional[Sequence[CesAlarmruleAlarmActionArgs]] = None,
                     ok_actions: Optional[Sequence[CesAlarmruleOkActionArgs]] = None,
                     region: Optional[str] = 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: flexibleengine:CesAlarmrule
    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 CesAlarmruleArgs
    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 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 string
    The unique name of the resource.
    args CesAlarmruleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CesAlarmruleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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 Flexibleengine.CesAlarmrule("cesAlarmruleResource", new()
    {
        AlarmName = "string",
        Metric = new Flexibleengine.Inputs.CesAlarmruleMetricArgs
        {
            Dimensions = new[]
            {
                new Flexibleengine.Inputs.CesAlarmruleMetricDimensionArgs
                {
                    Name = "string",
                    Value = "string",
                },
            },
            MetricName = "string",
            Namespace = "string",
        },
        Condition = new Flexibleengine.Inputs.CesAlarmruleConditionArgs
        {
            ComparisonOperator = "string",
            Count = 0,
            Filter = "string",
            Period = 0,
            Value = 0,
            SuppressDuration = 0,
            Unit = "string",
        },
        AlarmEnabled = false,
        AlarmLevel = 0,
        AlarmActionEnabled = false,
        CesAlarmruleId = "string",
        AlarmDescription = "string",
        AlarmActions = new[]
        {
            new Flexibleengine.Inputs.CesAlarmruleAlarmActionArgs
            {
                NotificationLists = new[]
                {
                    "string",
                },
                Type = "string",
            },
        },
        OkActions = new[]
        {
            new Flexibleengine.Inputs.CesAlarmruleOkActionArgs
            {
                NotificationLists = new[]
                {
                    "string",
                },
                Type = "string",
            },
        },
        Region = "string",
        Timeouts = new Flexibleengine.Inputs.CesAlarmruleTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := flexibleengine.NewCesAlarmrule(ctx, "cesAlarmruleResource", &flexibleengine.CesAlarmruleArgs{
    	AlarmName: pulumi.String("string"),
    	Metric: &flexibleengine.CesAlarmruleMetricArgs{
    		Dimensions: flexibleengine.CesAlarmruleMetricDimensionArray{
    			&flexibleengine.CesAlarmruleMetricDimensionArgs{
    				Name:  pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		MetricName: pulumi.String("string"),
    		Namespace:  pulumi.String("string"),
    	},
    	Condition: &flexibleengine.CesAlarmruleConditionArgs{
    		ComparisonOperator: pulumi.String("string"),
    		Count:              pulumi.Float64(0),
    		Filter:             pulumi.String("string"),
    		Period:             pulumi.Float64(0),
    		Value:              pulumi.Float64(0),
    		SuppressDuration:   pulumi.Float64(0),
    		Unit:               pulumi.String("string"),
    	},
    	AlarmEnabled:       pulumi.Bool(false),
    	AlarmLevel:         pulumi.Float64(0),
    	AlarmActionEnabled: pulumi.Bool(false),
    	CesAlarmruleId:     pulumi.String("string"),
    	AlarmDescription:   pulumi.String("string"),
    	AlarmActions: flexibleengine.CesAlarmruleAlarmActionArray{
    		&flexibleengine.CesAlarmruleAlarmActionArgs{
    			NotificationLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    	OkActions: flexibleengine.CesAlarmruleOkActionArray{
    		&flexibleengine.CesAlarmruleOkActionArgs{
    			NotificationLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Type: pulumi.String("string"),
    		},
    	},
    	Region: pulumi.String("string"),
    	Timeouts: &flexibleengine.CesAlarmruleTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var cesAlarmruleResource = new CesAlarmrule("cesAlarmruleResource", CesAlarmruleArgs.builder()
        .alarmName("string")
        .metric(CesAlarmruleMetricArgs.builder()
            .dimensions(CesAlarmruleMetricDimensionArgs.builder()
                .name("string")
                .value("string")
                .build())
            .metricName("string")
            .namespace("string")
            .build())
        .condition(CesAlarmruleConditionArgs.builder()
            .comparisonOperator("string")
            .count(0)
            .filter("string")
            .period(0)
            .value(0)
            .suppressDuration(0)
            .unit("string")
            .build())
        .alarmEnabled(false)
        .alarmLevel(0)
        .alarmActionEnabled(false)
        .cesAlarmruleId("string")
        .alarmDescription("string")
        .alarmActions(CesAlarmruleAlarmActionArgs.builder()
            .notificationLists("string")
            .type("string")
            .build())
        .okActions(CesAlarmruleOkActionArgs.builder()
            .notificationLists("string")
            .type("string")
            .build())
        .region("string")
        .timeouts(CesAlarmruleTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    ces_alarmrule_resource = flexibleengine.CesAlarmrule("cesAlarmruleResource",
        alarm_name="string",
        metric={
            "dimensions": [{
                "name": "string",
                "value": "string",
            }],
            "metric_name": "string",
            "namespace": "string",
        },
        condition={
            "comparison_operator": "string",
            "count": 0,
            "filter": "string",
            "period": 0,
            "value": 0,
            "suppress_duration": 0,
            "unit": "string",
        },
        alarm_enabled=False,
        alarm_level=0,
        alarm_action_enabled=False,
        ces_alarmrule_id="string",
        alarm_description="string",
        alarm_actions=[{
            "notification_lists": ["string"],
            "type": "string",
        }],
        ok_actions=[{
            "notification_lists": ["string"],
            "type": "string",
        }],
        region="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const cesAlarmruleResource = new flexibleengine.CesAlarmrule("cesAlarmruleResource", {
        alarmName: "string",
        metric: {
            dimensions: [{
                name: "string",
                value: "string",
            }],
            metricName: "string",
            namespace: "string",
        },
        condition: {
            comparisonOperator: "string",
            count: 0,
            filter: "string",
            period: 0,
            value: 0,
            suppressDuration: 0,
            unit: "string",
        },
        alarmEnabled: false,
        alarmLevel: 0,
        alarmActionEnabled: false,
        cesAlarmruleId: "string",
        alarmDescription: "string",
        alarmActions: [{
            notificationLists: ["string"],
            type: "string",
        }],
        okActions: [{
            notificationLists: ["string"],
            type: "string",
        }],
        region: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: flexibleengine:CesAlarmrule
    properties:
        alarmActionEnabled: false
        alarmActions:
            - notificationLists:
                - string
              type: string
        alarmDescription: string
        alarmEnabled: false
        alarmLevel: 0
        alarmName: string
        cesAlarmruleId: string
        condition:
            comparisonOperator: string
            count: 0
            filter: string
            period: 0
            suppressDuration: 0
            unit: string
            value: 0
        metric:
            dimensions:
                - name: string
                  value: string
            metricName: string
            namespace: string
        okActions:
            - notificationLists:
                - string
              type: string
        region: string
        timeouts:
            create: string
            delete: string
            update: string
    

    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 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 CesAlarmruleCondition
    Specifies the alarm triggering condition. The structure is described below.
    Metric 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.

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

    AlarmActions List<CesAlarmruleAlarmAction>
    Specifies the action triggered by an alarm. The structure is described below.
    AlarmDescription string
    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, respectively. The default value is 2. Changing this creates a new resource.
    CesAlarmruleId string
    Indicates the alarm rule ID.
    InsufficientdataActions List<CesAlarmruleInsufficientdataAction>

    Deprecated: Deprecated

    OkActions List<CesAlarmruleOkAction>
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    Region string
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Timeouts CesAlarmruleTimeouts
    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 (-).
    Condition CesAlarmruleConditionArgs
    Specifies the alarm triggering condition. The structure is described below.
    Metric 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.

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

    AlarmActions []CesAlarmruleAlarmActionArgs
    Specifies the action triggered by an alarm. The structure is described below.
    AlarmDescription string
    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, respectively. The default value is 2. Changing this creates a new resource.
    CesAlarmruleId string
    Indicates the alarm rule ID.
    InsufficientdataActions []CesAlarmruleInsufficientdataActionArgs

    Deprecated: Deprecated

    OkActions []CesAlarmruleOkActionArgs
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    Region string
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Timeouts CesAlarmruleTimeoutsArgs
    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 (-).
    condition CesAlarmruleCondition
    Specifies the alarm triggering condition. The structure is described below.
    metric 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.

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

    alarmActions List<CesAlarmruleAlarmAction>
    Specifies the action triggered by an alarm. The structure is described below.
    alarmDescription String
    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, respectively. The default value is 2. Changing this creates a new resource.
    cesAlarmruleId String
    Indicates the alarm rule ID.
    insufficientdataActions List<CesAlarmruleInsufficientdataAction>

    Deprecated: Deprecated

    okActions List<CesAlarmruleOkAction>
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region String
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts CesAlarmruleTimeouts
    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 (-).
    condition CesAlarmruleCondition
    Specifies the alarm triggering condition. The structure is described below.
    metric 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.

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

    alarmActions CesAlarmruleAlarmAction[]
    Specifies the action triggered by an alarm. The structure is described below.
    alarmDescription string
    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, respectively. The default value is 2. Changing this creates a new resource.
    cesAlarmruleId string
    Indicates the alarm rule ID.
    insufficientdataActions CesAlarmruleInsufficientdataAction[]

    Deprecated: Deprecated

    okActions CesAlarmruleOkAction[]
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region string
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts CesAlarmruleTimeouts
    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 (-).
    condition CesAlarmruleConditionArgs
    Specifies the alarm triggering condition. The structure is described below.
    metric 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.

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

    alarm_actions Sequence[CesAlarmruleAlarmActionArgs]
    Specifies the action triggered by an alarm. The structure is described below.
    alarm_description str
    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, respectively. The default value is 2. Changing this creates a new resource.
    ces_alarmrule_id str
    Indicates the alarm rule ID.
    insufficientdata_actions Sequence[CesAlarmruleInsufficientdataActionArgs]

    Deprecated: Deprecated

    ok_actions Sequence[CesAlarmruleOkActionArgs]
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region str
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts CesAlarmruleTimeoutsArgs
    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 (-).
    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.
    alarmActionEnabled Boolean

    Specifies whether to enable the action to be triggered by an alarm. The default value is true.

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

    alarmActions List<Property Map>
    Specifies the action triggered by an alarm. The structure is described below.
    alarmDescription String
    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, respectively. The default value is 2. Changing this creates a new resource.
    cesAlarmruleId String
    Indicates the alarm rule ID.
    insufficientdataActions List<Property Map>

    Deprecated: Deprecated

    okActions List<Property Map>
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region String
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts Property Map

    Outputs

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

    AlarmState string
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime double
    Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
    AlarmState string
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime float64
    Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
    alarmState String
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime Double
    Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
    alarmState string
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime number
    Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
    alarm_state str
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time float
    Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
    alarmState String
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime Number
    Indicates 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,
            ces_alarmrule_id: Optional[str] = None,
            condition: Optional[CesAlarmruleConditionArgs] = None,
            insufficientdata_actions: Optional[Sequence[CesAlarmruleInsufficientdataActionArgs]] = None,
            metric: Optional[CesAlarmruleMetricArgs] = None,
            ok_actions: Optional[Sequence[CesAlarmruleOkActionArgs]] = None,
            region: Optional[str] = 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: flexibleengine:CesAlarmrule    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:
    AlarmActionEnabled bool

    Specifies whether to enable the action to be triggered by an alarm. The default value is true.

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

    AlarmActions List<CesAlarmruleAlarmAction>
    Specifies the action triggered by an alarm. The structure is described below.
    AlarmDescription string
    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, respectively. The default value is 2. Changing this creates a new resource.
    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
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    CesAlarmruleId string
    Indicates the alarm rule ID.
    Condition CesAlarmruleCondition
    Specifies the alarm triggering condition. The structure is described below.
    InsufficientdataActions List<CesAlarmruleInsufficientdataAction>

    Deprecated: Deprecated

    Metric CesAlarmruleMetric
    Specifies the alarm metrics. The structure is described below.
    OkActions List<CesAlarmruleOkAction>
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    Region string
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Timeouts CesAlarmruleTimeouts
    UpdateTime double
    Indicates 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.

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

    AlarmActions []CesAlarmruleAlarmActionArgs
    Specifies the action triggered by an alarm. The structure is described below.
    AlarmDescription string
    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, respectively. The default value is 2. Changing this creates a new resource.
    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
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    CesAlarmruleId string
    Indicates the alarm rule ID.
    Condition CesAlarmruleConditionArgs
    Specifies the alarm triggering condition. The structure is described below.
    InsufficientdataActions []CesAlarmruleInsufficientdataActionArgs

    Deprecated: Deprecated

    Metric CesAlarmruleMetricArgs
    Specifies the alarm metrics. The structure is described below.
    OkActions []CesAlarmruleOkActionArgs
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    Region string
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    Timeouts CesAlarmruleTimeoutsArgs
    UpdateTime float64
    Indicates 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.

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

    alarmActions List<CesAlarmruleAlarmAction>
    Specifies the action triggered by an alarm. The structure is described below.
    alarmDescription String
    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, respectively. The default value is 2. Changing this creates a new resource.
    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
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    cesAlarmruleId String
    Indicates the alarm rule ID.
    condition CesAlarmruleCondition
    Specifies the alarm triggering condition. The structure is described below.
    insufficientdataActions List<CesAlarmruleInsufficientdataAction>

    Deprecated: Deprecated

    metric CesAlarmruleMetric
    Specifies the alarm metrics. The structure is described below.
    okActions List<CesAlarmruleOkAction>
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region String
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts CesAlarmruleTimeouts
    updateTime Double
    Indicates 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.

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

    alarmActions CesAlarmruleAlarmAction[]
    Specifies the action triggered by an alarm. The structure is described below.
    alarmDescription string
    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, respectively. The default value is 2. Changing this creates a new resource.
    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
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    cesAlarmruleId string
    Indicates the alarm rule ID.
    condition CesAlarmruleCondition
    Specifies the alarm triggering condition. The structure is described below.
    insufficientdataActions CesAlarmruleInsufficientdataAction[]

    Deprecated: Deprecated

    metric CesAlarmruleMetric
    Specifies the alarm metrics. The structure is described below.
    okActions CesAlarmruleOkAction[]
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region string
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts CesAlarmruleTimeouts
    updateTime number
    Indicates 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.

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

    alarm_actions Sequence[CesAlarmruleAlarmActionArgs]
    Specifies the action triggered by an alarm. The structure is described below.
    alarm_description str
    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, respectively. The default value is 2. Changing this creates a new resource.
    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
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    ces_alarmrule_id str
    Indicates the alarm rule ID.
    condition CesAlarmruleConditionArgs
    Specifies the alarm triggering condition. The structure is described below.
    insufficientdata_actions Sequence[CesAlarmruleInsufficientdataActionArgs]

    Deprecated: Deprecated

    metric CesAlarmruleMetricArgs
    Specifies the alarm metrics. The structure is described below.
    ok_actions Sequence[CesAlarmruleOkActionArgs]
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region str
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts CesAlarmruleTimeoutsArgs
    update_time float
    Indicates 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.

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

    alarmActions List<Property Map>
    Specifies the action triggered by an alarm. The structure is described below.
    alarmDescription String
    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, respectively. The default value is 2. Changing this creates a new resource.
    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
    Indicates the alarm status. The value can be:

    • ok: The alarm status is normal;
    • alarm: An alarm is generated;
    • insufficient_data: The required data is insufficient.
    cesAlarmruleId String
    Indicates the alarm rule ID.
    condition Property Map
    Specifies the alarm triggering condition. The structure is described below.
    insufficientdataActions List<Property Map>

    Deprecated: Deprecated

    metric Property Map
    Specifies the alarm metrics. The structure is described below.
    okActions List<Property Map>
    Specifies the action triggered by the clearing of an alarm. The structure is described below.
    region String
    The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
    timeouts Property Map
    updateTime Number
    Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.

    Supporting Types

    CesAlarmruleAlarmAction, CesAlarmruleAlarmActionArgs

    NotificationLists List<string>
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
    Type string
    specifies the type of action triggered by an alarm. the value can be notification or autoscaling.

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    NotificationLists []string
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
    Type string
    specifies the type of action triggered by an alarm. the value can be notification or autoscaling.

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists List<String>
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
    type String
    specifies the type of action triggered by an alarm. the value can be notification or autoscaling.

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists string[]
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
    type string
    specifies the type of action triggered by an alarm. the value can be notification or autoscaling.

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notification_lists Sequence[str]
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
    type str
    specifies the type of action triggered by an alarm. the value can be notification or autoscaling.

    • notification: indicates that a notification will be sent to the user.
    • autoscaling: indicates that a scaling action will be triggered.
    notificationLists List<String>
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
    type String
    specifies the type of action triggered by an alarm. the value can be notification or autoscaling.

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

    CesAlarmruleCondition, CesAlarmruleConditionArgs

    ComparisonOperator string
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
    Count double
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    Filter string
    Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
    Period double
    Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
    Value double
    Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
    SuppressDuration double
    Unit string
    Specifies the data unit.
    ComparisonOperator string
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
    Count float64
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    Filter string
    Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
    Period float64
    Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
    Value float64
    Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
    SuppressDuration float64
    Unit string
    Specifies the data unit.
    comparisonOperator String
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
    count Double
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter String
    Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
    period Double
    Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
    value Double
    Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
    suppressDuration Double
    unit String
    Specifies the data unit.
    comparisonOperator string
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
    count number
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter string
    Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
    period number
    Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
    value number
    Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
    suppressDuration number
    unit string
    Specifies the data unit.
    comparison_operator str
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
    count float
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter str
    Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
    period float
    Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
    value float
    Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
    suppress_duration float
    unit str
    Specifies the data unit.
    comparisonOperator String
    Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
    count Number
    Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
    filter String
    Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
    period Number
    Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
    value Number
    Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
    suppressDuration Number
    unit String
    Specifies the data unit.

    CesAlarmruleInsufficientdataAction, CesAlarmruleInsufficientdataActionArgs

    NotificationLists List<string>
    Type string
    NotificationLists []string
    Type string
    notificationLists List<String>
    type String
    notificationLists string[]
    type string
    notification_lists Sequence[str]
    type str
    notificationLists List<String>
    type String

    CesAlarmruleMetric, CesAlarmruleMetricArgs

    Dimensions List<CesAlarmruleMetricDimension>
    Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
    MetricName 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, or underscores (_).
    Namespace 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 (_). For details, see Services Interconnected with Cloud Eye.
    Dimensions []CesAlarmruleMetricDimension
    Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
    MetricName 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, or underscores (_).
    Namespace 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 (_). For details, see Services Interconnected with Cloud Eye.
    dimensions List<CesAlarmruleMetricDimension>
    Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
    metricName 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, or underscores (_).
    namespace 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 (_). For details, see Services Interconnected with Cloud Eye.
    dimensions CesAlarmruleMetricDimension[]
    Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
    metricName 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, or underscores (_).
    namespace 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 (_). For details, see Services Interconnected with Cloud Eye.
    dimensions Sequence[CesAlarmruleMetricDimension]
    Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
    metric_name str
    Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
    namespace 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 (_). For details, see Services Interconnected with Cloud Eye.
    dimensions List<Property Map>
    Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
    metricName 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, or underscores (_).
    namespace 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 (_). For details, see Services Interconnected with Cloud Eye.

    CesAlarmruleMetricDimension, CesAlarmruleMetricDimensionArgs

    Name 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 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 (-).
    Name 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 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 (-).
    name 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 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 (-).
    name 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 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 (-).
    name 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 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 (-).
    name 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 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 (-).

    CesAlarmruleOkAction, CesAlarmruleOkActionArgs

    NotificationLists List<string>
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
    Type string
    specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
    NotificationLists []string
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
    Type string
    specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
    notificationLists List<String>
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
    type String
    specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
    notificationLists string[]
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
    type string
    specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
    notification_lists Sequence[str]
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
    type str
    specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
    notificationLists List<String>
    specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
    type String
    specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.

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

    $ pulumi import flexibleengine:index/cesAlarmrule:CesAlarmrule alarm_rule al1619678242900OxEaaODM2
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud