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],
}],
});
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],
}])
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
})
}
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,
},
},
},
});
});
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());
}
}
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}
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],
}],
});
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],
}])
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
})
}
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,
},
},
},
});
});
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());
}
}
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}
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 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 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",
},
});
example, err := opentelekomcloud.NewCesAlarmrule(ctx, "cesAlarmruleResource", &opentelekomcloud.CesAlarmruleArgs{
AlarmName: pulumi.String("string"),
Condition: &opentelekomcloud.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: &opentelekomcloud.CesAlarmruleMetricArgs{
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
Dimensions: opentelekomcloud.CesAlarmruleMetricDimensionArray{
&opentelekomcloud.CesAlarmruleMetricDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
AlarmActionEnabled: pulumi.Bool(false),
AlarmActions: opentelekomcloud.CesAlarmruleAlarmActionArray{
&opentelekomcloud.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: opentelekomcloud.CesAlarmruleOkActionArray{
&opentelekomcloud.CesAlarmruleOkActionArgs{
NotificationLists: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
Timeouts: &opentelekomcloud.CesAlarmruleTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
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());
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",
})
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",
},
});
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
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:
- Alarm
Name string - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - Condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- Metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- Alarm
Action boolEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - Alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the actions list triggered by an alarm. The structure is described below.
- Alarm
Description string - Alarm description. The value can be a string of
0
to256
characters. - Alarm
Enabled bool - Specifies whether to enable the alarm. The default
value is
true
. - Alarm
Level double - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - Alarm
Type 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. - Ces
Alarmrule stringId - Specifies the alarm rule ID.
- Ok
Actions List<CesAlarmrule Ok Action> - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- Timeouts
Ces
Alarmrule Timeouts
- Alarm
Name string - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - Condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- Metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- Alarm
Action boolEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - Alarm
Actions []CesAlarmrule Alarm Action Args - Specifies the actions list triggered by an alarm. The structure is described below.
- Alarm
Description string - Alarm description. The value can be a string of
0
to256
characters. - Alarm
Enabled bool - Specifies whether to enable the alarm. The default
value is
true
. - Alarm
Level float64 - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - Alarm
Type 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. - Ces
Alarmrule stringId - Specifies the alarm rule ID.
- Ok
Actions []CesAlarmrule Ok Action Args - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- Timeouts
Ces
Alarmrule Timeouts Args
- alarm
Name String - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- alarm
Action BooleanEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the actions list triggered by an alarm. The structure is described below.
- alarm
Description String - Alarm description. The value can be a string of
0
to256
characters. - alarm
Enabled Boolean - Specifies whether to enable the alarm. The default
value is
true
. - alarm
Level Double - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - alarm
Type 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. - ces
Alarmrule StringId - Specifies the alarm rule ID.
- ok
Actions List<CesAlarmrule Ok Action> - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- timeouts
Ces
Alarmrule Timeouts
- alarm
Name string - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- alarm
Action booleanEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm
Actions CesAlarmrule Alarm Action[] - Specifies the actions list triggered by an alarm. The structure is described below.
- alarm
Description string - Alarm description. The value can be a string of
0
to256
characters. - alarm
Enabled boolean - Specifies whether to enable the alarm. The default
value is
true
. - alarm
Level number - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - alarm
Type 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. - ces
Alarmrule stringId - Specifies the alarm rule ID.
- ok
Actions CesAlarmrule Ok Action[] - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- timeouts
Ces
Alarmrule Timeouts
- alarm_
name str - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- alarm_
action_ boolenabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm_
actions Sequence[CesAlarmrule Alarm Action Args] - 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
to256
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
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - 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_ strid - Specifies the alarm rule ID.
- ok_
actions Sequence[CesAlarmrule Ok Action Args] - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- timeouts
Ces
Alarmrule Timeouts Args
- alarm
Name String - Specifies the name of an alarm rule. The value can
be a string of
1
to128
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.
- alarm
Action BooleanEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm
Actions List<Property Map> - Specifies the actions list triggered by an alarm. The structure is described below.
- alarm
Description String - Alarm description. The value can be a string of
0
to256
characters. - alarm
Enabled Boolean - Specifies whether to enable the alarm. The default
value is
true
. - alarm
Level Number - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - alarm
Type 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. - ces
Alarmrule StringId - Specifies the alarm rule ID.
- ok
Actions 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:
- Alarm
State string - Specifies the alarm status. The value can be:
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time double - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- Alarm
State string - Specifies the alarm status. The value can be:
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time float64 - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
State String - Specifies the alarm status. The value can be:
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time Double - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
State string - Specifies the alarm status. The value can be:
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time 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.
- alarm
State String - Specifies the alarm status. The value can be:
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time 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
- 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.
- Alarm
Action boolEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - Alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the actions list triggered by an alarm. The structure is described below.
- Alarm
Description string - Alarm description. The value can be a string of
0
to256
characters. - Alarm
Enabled bool - Specifies whether to enable the alarm. The default
value is
true
. - Alarm
Level double - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - Alarm
Name string - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - Alarm
State string - Specifies the alarm status. The value can be:
- Alarm
Type 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. - Ces
Alarmrule stringId - Specifies the alarm rule ID.
- Condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- Metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- Ok
Actions List<CesAlarmrule Ok Action> - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- Timeouts
Ces
Alarmrule Timeouts - Update
Time double - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- Alarm
Action boolEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - Alarm
Actions []CesAlarmrule Alarm Action Args - Specifies the actions list triggered by an alarm. The structure is described below.
- Alarm
Description string - Alarm description. The value can be a string of
0
to256
characters. - Alarm
Enabled bool - Specifies whether to enable the alarm. The default
value is
true
. - Alarm
Level float64 - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - Alarm
Name string - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - Alarm
State string - Specifies the alarm status. The value can be:
- Alarm
Type 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. - Ces
Alarmrule stringId - Specifies the alarm rule ID.
- Condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- Metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- Ok
Actions []CesAlarmrule Ok Action Args - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- Timeouts
Ces
Alarmrule Timeouts Args - Update
Time float64 - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
Action BooleanEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the actions list triggered by an alarm. The structure is described below.
- alarm
Description String - Alarm description. The value can be a string of
0
to256
characters. - alarm
Enabled Boolean - Specifies whether to enable the alarm. The default
value is
true
. - alarm
Level Double - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - alarm
Name String - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - alarm
State String - Specifies the alarm status. The value can be:
- alarm
Type 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. - ces
Alarmrule StringId - Specifies the alarm rule ID.
- condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- ok
Actions List<CesAlarmrule Ok Action> - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- timeouts
Ces
Alarmrule Timeouts - update
Time Double - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
Action booleanEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm
Actions CesAlarmrule Alarm Action[] - Specifies the actions list triggered by an alarm. The structure is described below.
- alarm
Description string - Alarm description. The value can be a string of
0
to256
characters. - alarm
Enabled boolean - Specifies whether to enable the alarm. The default
value is
true
. - alarm
Level number - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - alarm
Name string - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - alarm
State string - Specifies the alarm status. The value can be:
- alarm
Type 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. - ces
Alarmrule stringId - Specifies the alarm rule ID.
- condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- ok
Actions CesAlarmrule Ok Action[] - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- timeouts
Ces
Alarmrule Timeouts - update
Time number - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm_
action_ boolenabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm_
actions Sequence[CesAlarmrule Alarm Action Args] - 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
to256
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
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - alarm_
name str - Specifies the name of an alarm rule. The value can
be a string of
1
to128
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_ strid - Specifies the alarm rule ID.
- condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- ok_
actions Sequence[CesAlarmrule Ok Action Args] - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- timeouts
Ces
Alarmrule Timeouts Args - update_
time float - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
Action BooleanEnabled - Specifies whether to enable the action
to be triggered by an alarm. The default value is
true
. - alarm
Actions List<Property Map> - Specifies the actions list triggered by an alarm. The structure is described below.
- alarm
Description String - Alarm description. The value can be a string of
0
to256
characters. - alarm
Enabled Boolean - Specifies whether to enable the alarm. The default
value is
true
. - alarm
Level Number - Specifies the alarm severity. The value can be
1
,2
,3
or4
, which indicatescritical
,major
,minor
, andinformational
. The default value is2
. - alarm
Name String - Specifies the name of an alarm rule. The value can
be a string of
1
to128
characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-). - alarm
State String - Specifies the alarm status. The value can be:
- alarm
Type 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. - ces
Alarmrule StringId - 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.
- ok
Actions List<Property Map> - Specifies the actions list triggered by the clearing of an alarm. The structure is described below.
- timeouts Property Map
- update
Time Number - Specifies the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
Supporting Types
CesAlarmruleAlarmAction, CesAlarmruleAlarmActionArgs
- Notification
Lists 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}
. Iftype
is set tonotification
, the value ofnotification_list
cannot be empty. Iftype
is set toautoscaling
, the value ofnotification_list
must be[]
.To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.
- Type string
- Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
- Notification
Lists []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}
. Iftype
is set tonotification
, the value ofnotification_list
cannot be empty. Iftype
is set toautoscaling
, the value ofnotification_list
must be[]
.To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.
- Type string
- Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
- notification
Lists 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}
. Iftype
is set tonotification
, the value ofnotification_list
cannot be empty. Iftype
is set toautoscaling
, the value ofnotification_list
must be[]
.To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.
- type String
- Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
- notification
Lists 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}
. Iftype
is set tonotification
, the value ofnotification_list
cannot be empty. Iftype
is set toautoscaling
, the value ofnotification_list
must be[]
.To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.
- type string
- Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
- notification_
lists 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}
. Iftype
is set tonotification
, the value ofnotification_list
cannot be empty. Iftype
is set toautoscaling
, the value ofnotification_list
must be[]
.To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.
- type str
- Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
- notification
Lists 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}
. Iftype
is set tonotification
, the value ofnotification_list
cannot be empty. Iftype
is set toautoscaling
, the value ofnotification_list
must be[]
.To enable the AS alarm rules take effect, you must bind scaling policies. For details, see the AutoScaling API Reference.
- type String
- Specifies the type of action triggered by an alarm. The value can be notification or autoscaling.
CesAlarmruleCondition, CesAlarmruleConditionArgs
- Comparison
Operator 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
to5
. - Filter string
- Specifies the data rollup methods. The value can be
max
,min
,average
,sum
, andvariance
. - Period double
Specifies the alarm checking period in seconds. The value can be
0
,1
,300
,1200
,3600
,14400
, and86400
.If
period
is set to1
, 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 double
- Specifies the alarm threshold. The value ranges from
0
toNumber.MAX_VALUE
of1.7976931348623157e+108
. - Alarm
Frequency 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.
- Comparison
Operator 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
to5
. - Filter string
- Specifies the data rollup methods. The value can be
max
,min
,average
,sum
, andvariance
. - Period float64
Specifies the alarm checking period in seconds. The value can be
0
,1
,300
,1200
,3600
,14400
, and86400
.If
period
is set to1
, 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 float64
- Specifies the alarm threshold. The value ranges from
0
toNumber.MAX_VALUE
of1.7976931348623157e+108
. - Alarm
Frequency 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.
- comparison
Operator 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
to5
. - filter String
- Specifies the data rollup methods. The value can be
max
,min
,average
,sum
, andvariance
. - period Double
Specifies the alarm checking period in seconds. The value can be
0
,1
,300
,1200
,3600
,14400
, and86400
.If
period
is set to1
, 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 Double
- Specifies the alarm threshold. The value ranges from
0
toNumber.MAX_VALUE
of1.7976931348623157e+108
. - alarm
Frequency 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.
- comparison
Operator 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
to5
. - filter string
- Specifies the data rollup methods. The value can be
max
,min
,average
,sum
, andvariance
. - period number
Specifies the alarm checking period in seconds. The value can be
0
,1
,300
,1200
,3600
,14400
, and86400
.If
period
is set to1
, 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 number
- Specifies the alarm threshold. The value ranges from
0
toNumber.MAX_VALUE
of1.7976931348623157e+108
. - alarm
Frequency 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 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
to5
. - filter str
- Specifies the data rollup methods. The value can be
max
,min
,average
,sum
, andvariance
. - period float
Specifies the alarm checking period in seconds. The value can be
0
,1
,300
,1200
,3600
,14400
, and86400
.If
period
is set to1
, 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 float
- Specifies the alarm threshold. The value ranges from
0
toNumber.MAX_VALUE
of1.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.
- comparison
Operator 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
to5
. - filter String
- Specifies the data rollup methods. The value can be
max
,min
,average
,sum
, andvariance
. - period Number
Specifies the alarm checking period in seconds. The value can be
0
,1
,300
,1200
,3600
,14400
, and86400
.If
period
is set to1
, 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 Number
- Specifies the alarm threshold. The value ranges from
0
toNumber.MAX_VALUE
of1.7976931348623157e+108
. - alarm
Frequency 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
- Metric
Name string - Specifies the metric name. The value can be a string
of
1
to64
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics. - Namespace string
- Specifies the namespace in
service.item
format.service.item
can be a string of3
to32
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). - Dimensions
List<Ces
Alarmrule Metric Dimension> - Specifies the list of metric dimensions.
If CES
alarm_type
is set toEVENT.SYS
leaving this argument empty will enable monitoring for all service instances. Otherwise, argument isrequired
. Currently, the maximum length of the dimension list that are supported is3
. The structure is described below.
- Metric
Name string - Specifies the metric name. The value can be a string
of
1
to64
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics. - Namespace string
- Specifies the namespace in
service.item
format.service.item
can be a string of3
to32
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). - Dimensions
[]Ces
Alarmrule Metric Dimension - Specifies the list of metric dimensions.
If CES
alarm_type
is set toEVENT.SYS
leaving this argument empty will enable monitoring for all service instances. Otherwise, argument isrequired
. Currently, the maximum length of the dimension list that are supported is3
. The structure is described below.
- metric
Name String - Specifies the metric name. The value can be a string
of
1
to64
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics. - namespace String
- Specifies the namespace in
service.item
format.service.item
can be a string of3
to32
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). - dimensions
List<Ces
Alarmrule Metric Dimension> - Specifies the list of metric dimensions.
If CES
alarm_type
is set toEVENT.SYS
leaving this argument empty will enable monitoring for all service instances. Otherwise, argument isrequired
. Currently, the maximum length of the dimension list that are supported is3
. The structure is described below.
- metric
Name string - Specifies the metric name. The value can be a string
of
1
to64
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics. - namespace string
- Specifies the namespace in
service.item
format.service.item
can be a string of3
to32
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). - dimensions
Ces
Alarmrule Metric Dimension[] - Specifies the list of metric dimensions.
If CES
alarm_type
is set toEVENT.SYS
leaving this argument empty will enable monitoring for all service instances. Otherwise, argument isrequired
. Currently, the maximum length of the dimension list that are supported is3
. The structure is described below.
- metric_
name str - Specifies the metric name. The value can be a string
of
1
to64
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics. - namespace str
- Specifies the namespace in
service.item
format.service.item
can be a string of3
to32
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). - dimensions
Sequence[Ces
Alarmrule Metric Dimension] - Specifies the list of metric dimensions.
If CES
alarm_type
is set toEVENT.SYS
leaving this argument empty will enable monitoring for all service instances. Otherwise, argument isrequired
. Currently, the maximum length of the dimension list that are supported is3
. The structure is described below.
- metric
Name String - Specifies the metric name. The value can be a string
of
1
to64
characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_) or slashes (/). Available metrics. - namespace String
- Specifies the namespace in
service.item
format.service.item
can be a string of3
to32
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 toEVENT.SYS
leaving this argument empty will enable monitoring for all service instances. Otherwise, argument isrequired
. Currently, the maximum length of the dimension list that are supported is3
. The structure is described below.
CesAlarmruleMetricDimension, CesAlarmruleMetricDimensionArgs
- Name string
- Specifies the dimension name. The value can be a string
of
1
to32
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
to64
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 string
- Specifies the dimension name. The value can be a string
of
1
to32
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
to64
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 String
- Specifies the dimension name. The value can be a string
of
1
to32
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
to64
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 string
- Specifies the dimension name. The value can be a string
of
1
to32
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
to64
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 str
- Specifies the dimension name. The value can be a string
of
1
to32
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
to64
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 String
- Specifies the dimension name. The value can be a string
of
1
to32
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
to64
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
- Notification
Lists List<string> - Indicates 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
Lists []string - Indicates 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
Lists List<String> - Indicates 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
Lists string[] - Indicates 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_
lists Sequence[str] - Indicates 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
Lists List<String> - Indicates 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.
CesAlarmruleTimeouts, CesAlarmruleTimeoutsArgs
Import
CES alarms can be imported using alarm rule id
, e.g.
$ pulumi import opentelekomcloud:index/cesAlarmrule:CesAlarmrule alarmrule c1881895-cdcb-4d23-96cb-032e6a3ee667
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.