Up-to-date reference of API arguments for CES alarm rule you can get at documentation portal
Manages a CES Alarm Rule v2 resource within OpenTelekomCloud.
~>
Alarm rule namespaces and dimensions are available on our github link or official documentation.
Example Usage
Basic alarm rule for multiple ECS instances
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId1 = config.requireObject<any>("instanceId1");
const instanceId2 = config.requireObject<any>("instanceId2");
const topicUrn = config.requireObject<any>("topicUrn");
const test = new opentelekomcloud.CesAlarmRuleV2("test", {
name: "alarm-rule-test",
namespace: "SYS.ECS",
type: "MULTI_INSTANCE",
notificationEnabled: true,
alarmEnabled: true,
resources: [
{
dimensions: [{
name: "instance_id",
value: instanceId1,
}],
},
{
dimensions: [{
name: "instance_id",
value: instanceId2,
}],
},
],
policies: [
{
metricName: "network_outgoing_bytes_rate_inband",
period: 1200,
filter: "average",
comparisonOperator: ">",
value: 6.5,
unit: "B/s",
count: 1,
suppressDuration: 300,
level: 4,
},
{
metricName: "network_outgoing_bytes_rate_inband",
period: 3600,
filter: "average",
comparisonOperator: ">=",
value: 20,
unit: "B/s",
count: 1,
suppressDuration: 300,
level: 4,
},
],
alarmActions: [{
type: "notification",
notificationLists: [topicUrn],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id1 = config.require_object("instanceId1")
instance_id2 = config.require_object("instanceId2")
topic_urn = config.require_object("topicUrn")
test = opentelekomcloud.CesAlarmRuleV2("test",
name="alarm-rule-test",
namespace="SYS.ECS",
type="MULTI_INSTANCE",
notification_enabled=True,
alarm_enabled=True,
resources=[
{
"dimensions": [{
"name": "instance_id",
"value": instance_id1,
}],
},
{
"dimensions": [{
"name": "instance_id",
"value": instance_id2,
}],
},
],
policies=[
{
"metric_name": "network_outgoing_bytes_rate_inband",
"period": 1200,
"filter": "average",
"comparison_operator": ">",
"value": 6.5,
"unit": "B/s",
"count": 1,
"suppress_duration": 300,
"level": 4,
},
{
"metric_name": "network_outgoing_bytes_rate_inband",
"period": 3600,
"filter": "average",
"comparison_operator": ">=",
"value": 20,
"unit": "B/s",
"count": 1,
"suppress_duration": 300,
"level": 4,
},
],
alarm_actions=[{
"type": "notification",
"notification_lists": [topic_urn],
}])
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, "")
instanceId1 := cfg.RequireObject("instanceId1")
instanceId2 := cfg.RequireObject("instanceId2")
topicUrn := cfg.RequireObject("topicUrn")
_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
Name: pulumi.String("alarm-rule-test"),
Namespace: pulumi.String("SYS.ECS"),
Type: pulumi.String("MULTI_INSTANCE"),
NotificationEnabled: pulumi.Bool(true),
AlarmEnabled: pulumi.Bool(true),
Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("instance_id"),
Value: pulumi.Any(instanceId1),
},
},
},
&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("instance_id"),
Value: pulumi.Any(instanceId2),
},
},
},
},
Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
MetricName: pulumi.String("network_outgoing_bytes_rate_inband"),
Period: pulumi.Float64(1200),
Filter: pulumi.String("average"),
ComparisonOperator: pulumi.String(">"),
Value: pulumi.Float64(6.5),
Unit: pulumi.String("B/s"),
Count: pulumi.Float64(1),
SuppressDuration: pulumi.Float64(300),
Level: pulumi.Float64(4),
},
&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
MetricName: pulumi.String("network_outgoing_bytes_rate_inband"),
Period: pulumi.Float64(3600),
Filter: pulumi.String("average"),
ComparisonOperator: pulumi.String(">="),
Value: pulumi.Float64(20),
Unit: pulumi.String("B/s"),
Count: pulumi.Float64(1),
SuppressDuration: pulumi.Float64(300),
Level: pulumi.Float64(4),
},
},
AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
Type: pulumi.String("notification"),
NotificationLists: pulumi.StringArray{
topicUrn,
},
},
},
})
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 instanceId1 = config.RequireObject<dynamic>("instanceId1");
var instanceId2 = config.RequireObject<dynamic>("instanceId2");
var topicUrn = config.RequireObject<dynamic>("topicUrn");
var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
{
Name = "alarm-rule-test",
Namespace = "SYS.ECS",
Type = "MULTI_INSTANCE",
NotificationEnabled = true,
AlarmEnabled = true,
Resources = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "instance_id",
Value = instanceId1,
},
},
},
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "instance_id",
Value = instanceId2,
},
},
},
},
Policies = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
{
MetricName = "network_outgoing_bytes_rate_inband",
Period = 1200,
Filter = "average",
ComparisonOperator = ">",
Value = 6.5,
Unit = "B/s",
Count = 1,
SuppressDuration = 300,
Level = 4,
},
new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
{
MetricName = "network_outgoing_bytes_rate_inband",
Period = 3600,
Filter = "average",
ComparisonOperator = ">=",
Value = 20,
Unit = "B/s",
Count = 1,
SuppressDuration = 300,
Level = 4,
},
},
AlarmActions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
{
Type = "notification",
NotificationLists = new[]
{
topicUrn,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
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 instanceId1 = config.get("instanceId1");
final var instanceId2 = config.get("instanceId2");
final var topicUrn = config.get("topicUrn");
var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
.name("alarm-rule-test")
.namespace("SYS.ECS")
.type("MULTI_INSTANCE")
.notificationEnabled(true)
.alarmEnabled(true)
.resources(
CesAlarmRuleV2ResourceArgs.builder()
.dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("instance_id")
.value(instanceId1)
.build())
.build(),
CesAlarmRuleV2ResourceArgs.builder()
.dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("instance_id")
.value(instanceId2)
.build())
.build())
.policies(
CesAlarmRuleV2PolicyArgs.builder()
.metricName("network_outgoing_bytes_rate_inband")
.period(1200.0)
.filter("average")
.comparisonOperator(">")
.value(6.5)
.unit("B/s")
.count(1.0)
.suppressDuration(300.0)
.level(4.0)
.build(),
CesAlarmRuleV2PolicyArgs.builder()
.metricName("network_outgoing_bytes_rate_inband")
.period(3600.0)
.filter("average")
.comparisonOperator(">=")
.value(20.0)
.unit("B/s")
.count(1.0)
.suppressDuration(300.0)
.level(4.0)
.build())
.alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
.type("notification")
.notificationLists(topicUrn)
.build())
.build());
}
}
configuration:
instanceId1:
type: dynamic
instanceId2:
type: dynamic
topicUrn:
type: dynamic
resources:
test:
type: opentelekomcloud:CesAlarmRuleV2
properties:
name: alarm-rule-test
namespace: SYS.ECS
type: MULTI_INSTANCE
notificationEnabled: true
alarmEnabled: true
resources:
- dimensions:
- name: instance_id
value: ${instanceId1}
- dimensions:
- name: instance_id
value: ${instanceId2}
policies:
- metricName: network_outgoing_bytes_rate_inband
period: 1200
filter: average
comparisonOperator: '>'
value: 6.5
unit: B/s
count: 1
suppressDuration: 300
level: 4
- metricName: network_outgoing_bytes_rate_inband
period: 3600
filter: average
comparisonOperator: '>='
value: 20
unit: B/s
count: 1
suppressDuration: 300
level: 4
alarmActions:
- type: notification
notificationLists:
- ${topicUrn}
Alarm rule for all instances
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const topicUrn = config.requireObject<any>("topicUrn");
const test = new opentelekomcloud.CesAlarmRuleV2("test", {
name: "alarm-rule-all-instance",
namespace: "AGT.ECS",
type: "ALL_INSTANCE",
notificationEnabled: true,
alarmEnabled: true,
resources: [{
dimensions: [
{
name: "instance_id",
},
{
name: "mount_point",
},
],
}],
policies: [{
metricName: "disk_usedPercent",
period: 1,
filter: "average",
comparisonOperator: ">",
value: 80,
count: 1,
suppressDuration: 0,
level: 2,
}],
alarmActions: [{
type: "notification",
notificationLists: [topicUrn],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
topic_urn = config.require_object("topicUrn")
test = opentelekomcloud.CesAlarmRuleV2("test",
name="alarm-rule-all-instance",
namespace="AGT.ECS",
type="ALL_INSTANCE",
notification_enabled=True,
alarm_enabled=True,
resources=[{
"dimensions": [
{
"name": "instance_id",
},
{
"name": "mount_point",
},
],
}],
policies=[{
"metric_name": "disk_usedPercent",
"period": 1,
"filter": "average",
"comparison_operator": ">",
"value": 80,
"count": 1,
"suppress_duration": 0,
"level": 2,
}],
alarm_actions=[{
"type": "notification",
"notification_lists": [topic_urn],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
topicUrn := cfg.RequireObject("topicUrn")
_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
Name: pulumi.String("alarm-rule-all-instance"),
Namespace: pulumi.String("AGT.ECS"),
Type: pulumi.String("ALL_INSTANCE"),
NotificationEnabled: pulumi.Bool(true),
AlarmEnabled: pulumi.Bool(true),
Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("instance_id"),
},
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("mount_point"),
},
},
},
},
Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
MetricName: pulumi.String("disk_usedPercent"),
Period: pulumi.Float64(1),
Filter: pulumi.String("average"),
ComparisonOperator: pulumi.String(">"),
Value: pulumi.Float64(80),
Count: pulumi.Float64(1),
SuppressDuration: pulumi.Float64(0),
Level: pulumi.Float64(2),
},
},
AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
Type: pulumi.String("notification"),
NotificationLists: pulumi.StringArray{
topicUrn,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var topicUrn = config.RequireObject<dynamic>("topicUrn");
var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
{
Name = "alarm-rule-all-instance",
Namespace = "AGT.ECS",
Type = "ALL_INSTANCE",
NotificationEnabled = true,
AlarmEnabled = true,
Resources = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "instance_id",
},
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "mount_point",
},
},
},
},
Policies = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
{
MetricName = "disk_usedPercent",
Period = 1,
Filter = "average",
ComparisonOperator = ">",
Value = 80,
Count = 1,
SuppressDuration = 0,
Level = 2,
},
},
AlarmActions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
{
Type = "notification",
NotificationLists = new[]
{
topicUrn,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var topicUrn = config.get("topicUrn");
var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
.name("alarm-rule-all-instance")
.namespace("AGT.ECS")
.type("ALL_INSTANCE")
.notificationEnabled(true)
.alarmEnabled(true)
.resources(CesAlarmRuleV2ResourceArgs.builder()
.dimensions(
CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("instance_id")
.build(),
CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("mount_point")
.build())
.build())
.policies(CesAlarmRuleV2PolicyArgs.builder()
.metricName("disk_usedPercent")
.period(1.0)
.filter("average")
.comparisonOperator(">")
.value(80.0)
.count(1.0)
.suppressDuration(0.0)
.level(2.0)
.build())
.alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
.type("notification")
.notificationLists(topicUrn)
.build())
.build());
}
}
configuration:
topicUrn:
type: dynamic
resources:
test:
type: opentelekomcloud:CesAlarmRuleV2
properties:
name: alarm-rule-all-instance
namespace: AGT.ECS
type: ALL_INSTANCE
notificationEnabled: true
alarmEnabled: true
resources:
- dimensions:
- name: instance_id
- name: mount_point
policies:
- metricName: disk_usedPercent
period: 1
filter: average
comparisonOperator: '>'
value: 80
count: 1
suppressDuration: 0
level: 2
alarmActions:
- type: notification
notificationLists:
- ${topicUrn}
Alarm rule for system event monitoring
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const test = new opentelekomcloud.CesAlarmRuleV2("test", {
name: "alarm-rule-sys-event",
namespace: "SYS.ECS",
type: "EVENT.SYS",
notificationEnabled: false,
alarmEnabled: true,
resources: [{
dimensions: [{
name: "resource_id",
value: "all_instance",
}],
}],
policies: [{
metricName: "stopServer",
period: 0,
filter: "average",
comparisonOperator: ">=",
value: 1,
unit: "count",
count: 1,
suppressDuration: 0,
level: 2,
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
test = opentelekomcloud.CesAlarmRuleV2("test",
name="alarm-rule-sys-event",
namespace="SYS.ECS",
type="EVENT.SYS",
notification_enabled=False,
alarm_enabled=True,
resources=[{
"dimensions": [{
"name": "resource_id",
"value": "all_instance",
}],
}],
policies=[{
"metric_name": "stopServer",
"period": 0,
"filter": "average",
"comparison_operator": ">=",
"value": 1,
"unit": "count",
"count": 1,
"suppress_duration": 0,
"level": 2,
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
Name: pulumi.String("alarm-rule-sys-event"),
Namespace: pulumi.String("SYS.ECS"),
Type: pulumi.String("EVENT.SYS"),
NotificationEnabled: pulumi.Bool(false),
AlarmEnabled: pulumi.Bool(true),
Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("resource_id"),
Value: pulumi.String("all_instance"),
},
},
},
},
Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
MetricName: pulumi.String("stopServer"),
Period: pulumi.Float64(0),
Filter: pulumi.String("average"),
ComparisonOperator: pulumi.String(">="),
Value: pulumi.Float64(1),
Unit: pulumi.String("count"),
Count: pulumi.Float64(1),
SuppressDuration: pulumi.Float64(0),
Level: pulumi.Float64(2),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
{
Name = "alarm-rule-sys-event",
Namespace = "SYS.ECS",
Type = "EVENT.SYS",
NotificationEnabled = false,
AlarmEnabled = true,
Resources = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "resource_id",
Value = "all_instance",
},
},
},
},
Policies = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
{
MetricName = "stopServer",
Period = 0,
Filter = "average",
ComparisonOperator = ">=",
Value = 1,
Unit = "count",
Count = 1,
SuppressDuration = 0,
Level = 2,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
.name("alarm-rule-sys-event")
.namespace("SYS.ECS")
.type("EVENT.SYS")
.notificationEnabled(false)
.alarmEnabled(true)
.resources(CesAlarmRuleV2ResourceArgs.builder()
.dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("resource_id")
.value("all_instance")
.build())
.build())
.policies(CesAlarmRuleV2PolicyArgs.builder()
.metricName("stopServer")
.period(0.0)
.filter("average")
.comparisonOperator(">=")
.value(1.0)
.unit("count")
.count(1.0)
.suppressDuration(0.0)
.level(2.0)
.build())
.build());
}
}
resources:
test:
type: opentelekomcloud:CesAlarmRuleV2
properties:
name: alarm-rule-sys-event
namespace: SYS.ECS
type: EVENT.SYS
notificationEnabled: false
alarmEnabled: true
resources:
- dimensions:
- name: resource_id
value: all_instance
policies:
- metricName: stopServer
period: 0
filter: average
comparisonOperator: '>='
value: 1
unit: count
count: 1
suppressDuration: 0
level: 2
Alarm rule for system event monitoring with notification
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const topicUrn = config.requireObject<any>("topicUrn");
const test = new opentelekomcloud.CesAlarmRuleV2("test", {
name: "alarm-rule-sys-event",
namespace: "SYS.ECS",
type: "EVENT.SYS",
notificationEnabled: true,
alarmEnabled: true,
resources: [{
dimensions: [{
name: "resource_id",
value: "all_instance",
}],
}],
policies: [{
metricName: "stopServer",
period: 0,
filter: "average",
comparisonOperator: ">=",
value: 1,
unit: "count",
count: 1,
suppressDuration: 0,
level: 2,
}],
alarmActions: [{
type: "notification",
notificationLists: [topicUrn],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
topic_urn = config.require_object("topicUrn")
test = opentelekomcloud.CesAlarmRuleV2("test",
name="alarm-rule-sys-event",
namespace="SYS.ECS",
type="EVENT.SYS",
notification_enabled=True,
alarm_enabled=True,
resources=[{
"dimensions": [{
"name": "resource_id",
"value": "all_instance",
}],
}],
policies=[{
"metric_name": "stopServer",
"period": 0,
"filter": "average",
"comparison_operator": ">=",
"value": 1,
"unit": "count",
"count": 1,
"suppress_duration": 0,
"level": 2,
}],
alarm_actions=[{
"type": "notification",
"notification_lists": [topic_urn],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
topicUrn := cfg.RequireObject("topicUrn")
_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
Name: pulumi.String("alarm-rule-sys-event"),
Namespace: pulumi.String("SYS.ECS"),
Type: pulumi.String("EVENT.SYS"),
NotificationEnabled: pulumi.Bool(true),
AlarmEnabled: pulumi.Bool(true),
Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("resource_id"),
Value: pulumi.String("all_instance"),
},
},
},
},
Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
MetricName: pulumi.String("stopServer"),
Period: pulumi.Float64(0),
Filter: pulumi.String("average"),
ComparisonOperator: pulumi.String(">="),
Value: pulumi.Float64(1),
Unit: pulumi.String("count"),
Count: pulumi.Float64(1),
SuppressDuration: pulumi.Float64(0),
Level: pulumi.Float64(2),
},
},
AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
Type: pulumi.String("notification"),
NotificationLists: pulumi.StringArray{
topicUrn,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var topicUrn = config.RequireObject<dynamic>("topicUrn");
var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
{
Name = "alarm-rule-sys-event",
Namespace = "SYS.ECS",
Type = "EVENT.SYS",
NotificationEnabled = true,
AlarmEnabled = true,
Resources = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "resource_id",
Value = "all_instance",
},
},
},
},
Policies = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
{
MetricName = "stopServer",
Period = 0,
Filter = "average",
ComparisonOperator = ">=",
Value = 1,
Unit = "count",
Count = 1,
SuppressDuration = 0,
Level = 2,
},
},
AlarmActions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
{
Type = "notification",
NotificationLists = new[]
{
topicUrn,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var topicUrn = config.get("topicUrn");
var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
.name("alarm-rule-sys-event")
.namespace("SYS.ECS")
.type("EVENT.SYS")
.notificationEnabled(true)
.alarmEnabled(true)
.resources(CesAlarmRuleV2ResourceArgs.builder()
.dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("resource_id")
.value("all_instance")
.build())
.build())
.policies(CesAlarmRuleV2PolicyArgs.builder()
.metricName("stopServer")
.period(0.0)
.filter("average")
.comparisonOperator(">=")
.value(1.0)
.unit("count")
.count(1.0)
.suppressDuration(0.0)
.level(2.0)
.build())
.alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
.type("notification")
.notificationLists(topicUrn)
.build())
.build());
}
}
configuration:
topicUrn:
type: dynamic
resources:
test:
type: opentelekomcloud:CesAlarmRuleV2
properties:
name: alarm-rule-sys-event
namespace: SYS.ECS
type: EVENT.SYS
notificationEnabled: true
alarmEnabled: true
resources:
- dimensions:
- name: resource_id
value: all_instance
policies:
- metricName: stopServer
period: 0
filter: average
comparisonOperator: '>='
value: 1
unit: count
count: 1
suppressDuration: 0
level: 2
alarmActions:
- type: notification
notificationLists:
- ${topicUrn}
Alarm rule with OK actions
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject<any>("instanceId");
const topicUrn = config.requireObject<any>("topicUrn");
const test = new opentelekomcloud.CesAlarmRuleV2("test", {
name: "alarm-rule-with-ok-actions",
namespace: "SYS.ECS",
type: "MULTI_INSTANCE",
notificationEnabled: true,
alarmEnabled: true,
resources: [{
dimensions: [{
name: "instance_id",
value: instanceId,
}],
}],
policies: [{
metricName: "network_outgoing_bytes_rate_inband",
period: 300,
filter: "average",
comparisonOperator: ">",
value: 6.5,
unit: "B/s",
count: 1,
level: 2,
}],
alarmActions: [{
type: "notification",
notificationLists: [topicUrn],
}],
okActions: [{
type: "notification",
notificationLists: [topicUrn],
}],
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
topic_urn = config.require_object("topicUrn")
test = opentelekomcloud.CesAlarmRuleV2("test",
name="alarm-rule-with-ok-actions",
namespace="SYS.ECS",
type="MULTI_INSTANCE",
notification_enabled=True,
alarm_enabled=True,
resources=[{
"dimensions": [{
"name": "instance_id",
"value": instance_id,
}],
}],
policies=[{
"metric_name": "network_outgoing_bytes_rate_inband",
"period": 300,
"filter": "average",
"comparison_operator": ">",
"value": 6.5,
"unit": "B/s",
"count": 1,
"level": 2,
}],
alarm_actions=[{
"type": "notification",
"notification_lists": [topic_urn],
}],
ok_actions=[{
"type": "notification",
"notification_lists": [topic_urn],
}])
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, "")
instanceId := cfg.RequireObject("instanceId")
topicUrn := cfg.RequireObject("topicUrn")
_, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "test", &opentelekomcloud.CesAlarmRuleV2Args{
Name: pulumi.String("alarm-rule-with-ok-actions"),
Namespace: pulumi.String("SYS.ECS"),
Type: pulumi.String("MULTI_INSTANCE"),
NotificationEnabled: pulumi.Bool(true),
AlarmEnabled: pulumi.Bool(true),
Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("instance_id"),
Value: pulumi.Any(instanceId),
},
},
},
},
Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
MetricName: pulumi.String("network_outgoing_bytes_rate_inband"),
Period: pulumi.Float64(300),
Filter: pulumi.String("average"),
ComparisonOperator: pulumi.String(">"),
Value: pulumi.Float64(6.5),
Unit: pulumi.String("B/s"),
Count: pulumi.Float64(1),
Level: pulumi.Float64(2),
},
},
AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
Type: pulumi.String("notification"),
NotificationLists: pulumi.StringArray{
topicUrn,
},
},
},
OkActions: opentelekomcloud.CesAlarmRuleV2OkActionArray{
&opentelekomcloud.CesAlarmRuleV2OkActionArgs{
Type: pulumi.String("notification"),
NotificationLists: pulumi.StringArray{
topicUrn,
},
},
},
})
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 instanceId = config.RequireObject<dynamic>("instanceId");
var topicUrn = config.RequireObject<dynamic>("topicUrn");
var test = new Opentelekomcloud.CesAlarmRuleV2("test", new()
{
Name = "alarm-rule-with-ok-actions",
Namespace = "SYS.ECS",
Type = "MULTI_INSTANCE",
NotificationEnabled = true,
AlarmEnabled = true,
Resources = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "instance_id",
Value = instanceId,
},
},
},
},
Policies = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
{
MetricName = "network_outgoing_bytes_rate_inband",
Period = 300,
Filter = "average",
ComparisonOperator = ">",
Value = 6.5,
Unit = "B/s",
Count = 1,
Level = 2,
},
},
AlarmActions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
{
Type = "notification",
NotificationLists = new[]
{
topicUrn,
},
},
},
OkActions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2OkActionArgs
{
Type = "notification",
NotificationLists = new[]
{
topicUrn,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2;
import com.pulumi.opentelekomcloud.CesAlarmRuleV2Args;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2ResourceArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2PolicyArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2AlarmActionArgs;
import com.pulumi.opentelekomcloud.inputs.CesAlarmRuleV2OkActionArgs;
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 instanceId = config.get("instanceId");
final var topicUrn = config.get("topicUrn");
var test = new CesAlarmRuleV2("test", CesAlarmRuleV2Args.builder()
.name("alarm-rule-with-ok-actions")
.namespace("SYS.ECS")
.type("MULTI_INSTANCE")
.notificationEnabled(true)
.alarmEnabled(true)
.resources(CesAlarmRuleV2ResourceArgs.builder()
.dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("instance_id")
.value(instanceId)
.build())
.build())
.policies(CesAlarmRuleV2PolicyArgs.builder()
.metricName("network_outgoing_bytes_rate_inband")
.period(300.0)
.filter("average")
.comparisonOperator(">")
.value(6.5)
.unit("B/s")
.count(1.0)
.level(2.0)
.build())
.alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
.type("notification")
.notificationLists(topicUrn)
.build())
.okActions(CesAlarmRuleV2OkActionArgs.builder()
.type("notification")
.notificationLists(topicUrn)
.build())
.build());
}
}
configuration:
instanceId:
type: dynamic
topicUrn:
type: dynamic
resources:
test:
type: opentelekomcloud:CesAlarmRuleV2
properties:
name: alarm-rule-with-ok-actions
namespace: SYS.ECS
type: MULTI_INSTANCE
notificationEnabled: true
alarmEnabled: true
resources:
- dimensions:
- name: instance_id
value: ${instanceId}
policies:
- metricName: network_outgoing_bytes_rate_inband
period: 300
filter: average
comparisonOperator: '>'
value: 6.5
unit: B/s
count: 1
level: 2
alarmActions:
- type: notification
notificationLists:
- ${topicUrn}
okActions:
- type: notification
notificationLists:
- ${topicUrn}
Create CesAlarmRuleV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CesAlarmRuleV2(name: string, args: CesAlarmRuleV2Args, opts?: CustomResourceOptions);@overload
def CesAlarmRuleV2(resource_name: str,
args: CesAlarmRuleV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def CesAlarmRuleV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
namespace: Optional[str] = None,
policies: Optional[Sequence[CesAlarmRuleV2PolicyArgs]] = None,
description: Optional[str] = None,
notification_enabled: Optional[bool] = None,
alarm_actions: Optional[Sequence[CesAlarmRuleV2AlarmActionArgs]] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
alarm_template_id: Optional[str] = None,
notification_begin_time: Optional[str] = None,
ces_alarm_rule_v2_id: Optional[str] = None,
notification_end_time: Optional[str] = None,
ok_actions: Optional[Sequence[CesAlarmRuleV2OkActionArgs]] = None,
alarm_enabled: Optional[bool] = None,
resource_group_id: Optional[str] = None,
resources: Optional[Sequence[CesAlarmRuleV2ResourceArgs]] = None,
timeouts: Optional[CesAlarmRuleV2TimeoutsArgs] = None,
type: Optional[str] = None)func NewCesAlarmRuleV2(ctx *Context, name string, args CesAlarmRuleV2Args, opts ...ResourceOption) (*CesAlarmRuleV2, error)public CesAlarmRuleV2(string name, CesAlarmRuleV2Args args, CustomResourceOptions? opts = null)
public CesAlarmRuleV2(String name, CesAlarmRuleV2Args args)
public CesAlarmRuleV2(String name, CesAlarmRuleV2Args args, CustomResourceOptions options)
type: opentelekomcloud:CesAlarmRuleV2
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 CesAlarmRuleV2Args
- 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 CesAlarmRuleV2Args
- 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 CesAlarmRuleV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CesAlarmRuleV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CesAlarmRuleV2Args
- 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 cesAlarmRuleV2Resource = new Opentelekomcloud.CesAlarmRuleV2("cesAlarmRuleV2Resource", new()
{
Namespace = "string",
Policies = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2PolicyArgs
{
ComparisonOperator = "string",
Count = 0,
Filter = "string",
MetricName = "string",
Period = 0,
Level = 0,
SuppressDuration = 0,
Unit = "string",
Value = 0,
},
},
Description = "string",
NotificationEnabled = false,
AlarmActions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2AlarmActionArgs
{
NotificationLists = new[]
{
"string",
},
Type = "string",
},
},
EnterpriseProjectId = "string",
Name = "string",
AlarmTemplateId = "string",
NotificationBeginTime = "string",
CesAlarmRuleV2Id = "string",
NotificationEndTime = "string",
OkActions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2OkActionArgs
{
NotificationLists = new[]
{
"string",
},
Type = "string",
},
},
AlarmEnabled = false,
ResourceGroupId = "string",
Resources = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceArgs
{
Dimensions = new[]
{
new Opentelekomcloud.Inputs.CesAlarmRuleV2ResourceDimensionArgs
{
Name = "string",
Value = "string",
},
},
},
},
Timeouts = new Opentelekomcloud.Inputs.CesAlarmRuleV2TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
Type = "string",
});
example, err := opentelekomcloud.NewCesAlarmRuleV2(ctx, "cesAlarmRuleV2Resource", &opentelekomcloud.CesAlarmRuleV2Args{
Namespace: pulumi.String("string"),
Policies: opentelekomcloud.CesAlarmRuleV2PolicyArray{
&opentelekomcloud.CesAlarmRuleV2PolicyArgs{
ComparisonOperator: pulumi.String("string"),
Count: pulumi.Float64(0),
Filter: pulumi.String("string"),
MetricName: pulumi.String("string"),
Period: pulumi.Float64(0),
Level: pulumi.Float64(0),
SuppressDuration: pulumi.Float64(0),
Unit: pulumi.String("string"),
Value: pulumi.Float64(0),
},
},
Description: pulumi.String("string"),
NotificationEnabled: pulumi.Bool(false),
AlarmActions: opentelekomcloud.CesAlarmRuleV2AlarmActionArray{
&opentelekomcloud.CesAlarmRuleV2AlarmActionArgs{
NotificationLists: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
EnterpriseProjectId: pulumi.String("string"),
Name: pulumi.String("string"),
AlarmTemplateId: pulumi.String("string"),
NotificationBeginTime: pulumi.String("string"),
CesAlarmRuleV2Id: pulumi.String("string"),
NotificationEndTime: pulumi.String("string"),
OkActions: opentelekomcloud.CesAlarmRuleV2OkActionArray{
&opentelekomcloud.CesAlarmRuleV2OkActionArgs{
NotificationLists: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
AlarmEnabled: pulumi.Bool(false),
ResourceGroupId: pulumi.String("string"),
Resources: opentelekomcloud.CesAlarmRuleV2ResourceArray{
&opentelekomcloud.CesAlarmRuleV2ResourceArgs{
Dimensions: opentelekomcloud.CesAlarmRuleV2ResourceDimensionArray{
&opentelekomcloud.CesAlarmRuleV2ResourceDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
Timeouts: &opentelekomcloud.CesAlarmRuleV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
Type: pulumi.String("string"),
})
var cesAlarmRuleV2Resource = new CesAlarmRuleV2("cesAlarmRuleV2Resource", CesAlarmRuleV2Args.builder()
.namespace("string")
.policies(CesAlarmRuleV2PolicyArgs.builder()
.comparisonOperator("string")
.count(0.0)
.filter("string")
.metricName("string")
.period(0.0)
.level(0.0)
.suppressDuration(0.0)
.unit("string")
.value(0.0)
.build())
.description("string")
.notificationEnabled(false)
.alarmActions(CesAlarmRuleV2AlarmActionArgs.builder()
.notificationLists("string")
.type("string")
.build())
.enterpriseProjectId("string")
.name("string")
.alarmTemplateId("string")
.notificationBeginTime("string")
.cesAlarmRuleV2Id("string")
.notificationEndTime("string")
.okActions(CesAlarmRuleV2OkActionArgs.builder()
.notificationLists("string")
.type("string")
.build())
.alarmEnabled(false)
.resourceGroupId("string")
.resources(CesAlarmRuleV2ResourceArgs.builder()
.dimensions(CesAlarmRuleV2ResourceDimensionArgs.builder()
.name("string")
.value("string")
.build())
.build())
.timeouts(CesAlarmRuleV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.type("string")
.build());
ces_alarm_rule_v2_resource = opentelekomcloud.CesAlarmRuleV2("cesAlarmRuleV2Resource",
namespace="string",
policies=[{
"comparison_operator": "string",
"count": 0,
"filter": "string",
"metric_name": "string",
"period": 0,
"level": 0,
"suppress_duration": 0,
"unit": "string",
"value": 0,
}],
description="string",
notification_enabled=False,
alarm_actions=[{
"notification_lists": ["string"],
"type": "string",
}],
enterprise_project_id="string",
name="string",
alarm_template_id="string",
notification_begin_time="string",
ces_alarm_rule_v2_id="string",
notification_end_time="string",
ok_actions=[{
"notification_lists": ["string"],
"type": "string",
}],
alarm_enabled=False,
resource_group_id="string",
resources=[{
"dimensions": [{
"name": "string",
"value": "string",
}],
}],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
type="string")
const cesAlarmRuleV2Resource = new opentelekomcloud.CesAlarmRuleV2("cesAlarmRuleV2Resource", {
namespace: "string",
policies: [{
comparisonOperator: "string",
count: 0,
filter: "string",
metricName: "string",
period: 0,
level: 0,
suppressDuration: 0,
unit: "string",
value: 0,
}],
description: "string",
notificationEnabled: false,
alarmActions: [{
notificationLists: ["string"],
type: "string",
}],
enterpriseProjectId: "string",
name: "string",
alarmTemplateId: "string",
notificationBeginTime: "string",
cesAlarmRuleV2Id: "string",
notificationEndTime: "string",
okActions: [{
notificationLists: ["string"],
type: "string",
}],
alarmEnabled: false,
resourceGroupId: "string",
resources: [{
dimensions: [{
name: "string",
value: "string",
}],
}],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
type: "string",
});
type: opentelekomcloud:CesAlarmRuleV2
properties:
alarmActions:
- notificationLists:
- string
type: string
alarmEnabled: false
alarmTemplateId: string
cesAlarmRuleV2Id: string
description: string
enterpriseProjectId: string
name: string
namespace: string
notificationBeginTime: string
notificationEnabled: false
notificationEndTime: string
okActions:
- notificationLists:
- string
type: string
policies:
- comparisonOperator: string
count: 0
filter: string
level: 0
metricName: string
period: 0
suppressDuration: 0
unit: string
value: 0
resourceGroupId: string
resources:
- dimensions:
- name: string
value: string
timeouts:
create: string
delete: string
update: string
type: string
CesAlarmRuleV2 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 CesAlarmRuleV2 resource accepts the following input properties:
- Namespace string
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - Policies
List<Ces
Alarm Rule V2Policy> - Specifies the alarm policies. The policies structure is documented below.
- Alarm
Actions List<CesAlarm Rule V2Alarm Action> - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- Alarm
Enabled bool - Specifies whether to enable the alarm rule.
The default value is
true. - Alarm
Template stringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- Ces
Alarm stringRule V2Id - The resource ID in UUID format.
- Description string
- The value can be a string of
0to256characters. Changing this creates a new resource. - Enterprise
Project stringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- Name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - Notification
Begin stringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- Notification
Enabled bool - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - Notification
End stringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- Ok
Actions List<CesAlarm Rule V2Ok Action> - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- Resource
Group stringId - Specifies the resource group ID. Changing this creates a new resource.
- Resources
List<Ces
Alarm Rule V2Resource> - Specifies the list of resources to monitor. The resources structure is documented below.
- Timeouts
Ces
Alarm Rule V2Timeouts - Type string
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- Namespace string
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - Policies
[]Ces
Alarm Rule V2Policy Args - Specifies the alarm policies. The policies structure is documented below.
- Alarm
Actions []CesAlarm Rule V2Alarm Action Args - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- Alarm
Enabled bool - Specifies whether to enable the alarm rule.
The default value is
true. - Alarm
Template stringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- Ces
Alarm stringRule V2Id - The resource ID in UUID format.
- Description string
- The value can be a string of
0to256characters. Changing this creates a new resource. - Enterprise
Project stringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- Name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - Notification
Begin stringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- Notification
Enabled bool - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - Notification
End stringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- Ok
Actions []CesAlarm Rule V2Ok Action Args - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- Resource
Group stringId - Specifies the resource group ID. Changing this creates a new resource.
- Resources
[]Ces
Alarm Rule V2Resource Args - Specifies the list of resources to monitor. The resources structure is documented below.
- Timeouts
Ces
Alarm Rule V2Timeouts Args - Type string
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- namespace String
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - policies
List<Ces
Alarm Rule V2Policy> - Specifies the alarm policies. The policies structure is documented below.
- alarm
Actions List<CesAlarm Rule V2Alarm Action> - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm
Enabled Boolean - Specifies whether to enable the alarm rule.
The default value is
true. - alarm
Template StringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces
Alarm StringRule V2Id - The resource ID in UUID format.
- description String
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise
Project StringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name String
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - notification
Begin StringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification
Enabled Boolean - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification
End StringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok
Actions List<CesAlarm Rule V2Ok Action> - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- resource
Group StringId - Specifies the resource group ID. Changing this creates a new resource.
- resources
List<Ces
Alarm Rule V2Resource> - Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts
Ces
Alarm Rule V2Timeouts - type String
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- namespace string
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - policies
Ces
Alarm Rule V2Policy[] - Specifies the alarm policies. The policies structure is documented below.
- alarm
Actions CesAlarm Rule V2Alarm Action[] - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm
Enabled boolean - Specifies whether to enable the alarm rule.
The default value is
true. - alarm
Template stringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces
Alarm stringRule V2Id - The resource ID in UUID format.
- description string
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise
Project stringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - notification
Begin stringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification
Enabled boolean - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification
End stringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok
Actions CesAlarm Rule V2Ok Action[] - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- resource
Group stringId - Specifies the resource group ID. Changing this creates a new resource.
- resources
Ces
Alarm Rule V2Resource[] - Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts
Ces
Alarm Rule V2Timeouts - type string
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- namespace str
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - policies
Sequence[Ces
Alarm Rule V2Policy Args] - Specifies the alarm policies. The policies structure is documented below.
- alarm_
actions Sequence[CesAlarm Rule V2Alarm Action Args] - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm_
enabled bool - Specifies whether to enable the alarm rule.
The default value is
true. - alarm_
template_ strid - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces_
alarm_ strrule_ v2_ id - The resource ID in UUID format.
- description str
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise_
project_ strid Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name str
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - notification_
begin_ strtime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification_
enabled bool - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification_
end_ strtime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok_
actions Sequence[CesAlarm Rule V2Ok Action Args] - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- resource_
group_ strid - Specifies the resource group ID. Changing this creates a new resource.
- resources
Sequence[Ces
Alarm Rule V2Resource Args] - Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts
Ces
Alarm Rule V2Timeouts Args - type str
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- namespace String
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - policies List<Property Map>
- Specifies the alarm policies. The policies structure is documented below.
- alarm
Actions List<Property Map> - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm
Enabled Boolean - Specifies whether to enable the alarm rule.
The default value is
true. - alarm
Template StringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces
Alarm StringRule V2Id - The resource ID in UUID format.
- description String
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise
Project StringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name String
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - notification
Begin StringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification
Enabled Boolean - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification
End StringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok
Actions List<Property Map> - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- resource
Group StringId - Specifies the resource group ID. Changing this creates a new resource.
- resources List<Property Map>
- Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts Property Map
- type String
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
Outputs
All input properties are implicitly available as output properties. Additionally, the CesAlarmRuleV2 resource produces the following output properties:
Look up Existing CesAlarmRuleV2 Resource
Get an existing CesAlarmRuleV2 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?: CesAlarmRuleV2State, opts?: CustomResourceOptions): CesAlarmRuleV2@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alarm_actions: Optional[Sequence[CesAlarmRuleV2AlarmActionArgs]] = None,
alarm_enabled: Optional[bool] = None,
alarm_id: Optional[str] = None,
alarm_template_id: Optional[str] = None,
ces_alarm_rule_v2_id: Optional[str] = None,
description: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
notification_begin_time: Optional[str] = None,
notification_enabled: Optional[bool] = None,
notification_end_time: Optional[str] = None,
ok_actions: Optional[Sequence[CesAlarmRuleV2OkActionArgs]] = None,
policies: Optional[Sequence[CesAlarmRuleV2PolicyArgs]] = None,
resource_group_id: Optional[str] = None,
resources: Optional[Sequence[CesAlarmRuleV2ResourceArgs]] = None,
timeouts: Optional[CesAlarmRuleV2TimeoutsArgs] = None,
type: Optional[str] = None) -> CesAlarmRuleV2func GetCesAlarmRuleV2(ctx *Context, name string, id IDInput, state *CesAlarmRuleV2State, opts ...ResourceOption) (*CesAlarmRuleV2, error)public static CesAlarmRuleV2 Get(string name, Input<string> id, CesAlarmRuleV2State? state, CustomResourceOptions? opts = null)public static CesAlarmRuleV2 get(String name, Output<String> id, CesAlarmRuleV2State state, CustomResourceOptions options)resources: _: type: opentelekomcloud:CesAlarmRuleV2 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
Actions List<CesAlarm Rule V2Alarm Action> - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- Alarm
Enabled bool - Specifies whether to enable the alarm rule.
The default value is
true. - Alarm
Id string - The alarm rule ID.
- Alarm
Template stringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- Ces
Alarm stringRule V2Id - The resource ID in UUID format.
- Description string
- The value can be a string of
0to256characters. Changing this creates a new resource. - Enterprise
Project stringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- Name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - Namespace string
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - Notification
Begin stringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- Notification
Enabled bool - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - Notification
End stringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- Ok
Actions List<CesAlarm Rule V2Ok Action> - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- Policies
List<Ces
Alarm Rule V2Policy> - Specifies the alarm policies. The policies structure is documented below.
- Resource
Group stringId - Specifies the resource group ID. Changing this creates a new resource.
- Resources
List<Ces
Alarm Rule V2Resource> - Specifies the list of resources to monitor. The resources structure is documented below.
- Timeouts
Ces
Alarm Rule V2Timeouts - Type string
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- Alarm
Actions []CesAlarm Rule V2Alarm Action Args - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- Alarm
Enabled bool - Specifies whether to enable the alarm rule.
The default value is
true. - Alarm
Id string - The alarm rule ID.
- Alarm
Template stringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- Ces
Alarm stringRule V2Id - The resource ID in UUID format.
- Description string
- The value can be a string of
0to256characters. Changing this creates a new resource. - Enterprise
Project stringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- Name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - Namespace string
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - Notification
Begin stringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- Notification
Enabled bool - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - Notification
End stringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- Ok
Actions []CesAlarm Rule V2Ok Action Args - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- Policies
[]Ces
Alarm Rule V2Policy Args - Specifies the alarm policies. The policies structure is documented below.
- Resource
Group stringId - Specifies the resource group ID. Changing this creates a new resource.
- Resources
[]Ces
Alarm Rule V2Resource Args - Specifies the list of resources to monitor. The resources structure is documented below.
- Timeouts
Ces
Alarm Rule V2Timeouts Args - Type string
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- alarm
Actions List<CesAlarm Rule V2Alarm Action> - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm
Enabled Boolean - Specifies whether to enable the alarm rule.
The default value is
true. - alarm
Id String - The alarm rule ID.
- alarm
Template StringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces
Alarm StringRule V2Id - The resource ID in UUID format.
- description String
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise
Project StringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name String
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - namespace String
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - notification
Begin StringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification
Enabled Boolean - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification
End StringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok
Actions List<CesAlarm Rule V2Ok Action> - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- policies
List<Ces
Alarm Rule V2Policy> - Specifies the alarm policies. The policies structure is documented below.
- resource
Group StringId - Specifies the resource group ID. Changing this creates a new resource.
- resources
List<Ces
Alarm Rule V2Resource> - Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts
Ces
Alarm Rule V2Timeouts - type String
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- alarm
Actions CesAlarm Rule V2Alarm Action[] - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm
Enabled boolean - Specifies whether to enable the alarm rule.
The default value is
true. - alarm
Id string - The alarm rule ID.
- alarm
Template stringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces
Alarm stringRule V2Id - The resource ID in UUID format.
- description string
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise
Project stringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - namespace string
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - notification
Begin stringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification
Enabled boolean - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification
End stringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok
Actions CesAlarm Rule V2Ok Action[] - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- policies
Ces
Alarm Rule V2Policy[] - Specifies the alarm policies. The policies structure is documented below.
- resource
Group stringId - Specifies the resource group ID. Changing this creates a new resource.
- resources
Ces
Alarm Rule V2Resource[] - Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts
Ces
Alarm Rule V2Timeouts - type string
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- alarm_
actions Sequence[CesAlarm Rule V2Alarm Action Args] - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm_
enabled bool - Specifies whether to enable the alarm rule.
The default value is
true. - alarm_
id str - The alarm rule ID.
- alarm_
template_ strid - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces_
alarm_ strrule_ v2_ id - The resource ID in UUID format.
- description str
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise_
project_ strid Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name str
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - namespace str
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - notification_
begin_ strtime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification_
enabled bool - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification_
end_ strtime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok_
actions Sequence[CesAlarm Rule V2Ok Action Args] - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- policies
Sequence[Ces
Alarm Rule V2Policy Args] - Specifies the alarm policies. The policies structure is documented below.
- resource_
group_ strid - Specifies the resource group ID. Changing this creates a new resource.
- resources
Sequence[Ces
Alarm Rule V2Resource Args] - Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts
Ces
Alarm Rule V2Timeouts Args - type str
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- alarm
Actions List<Property Map> - Specifies the action triggered by an alarm. The alarm_actions structure is documented below. Changing this creates a new resource.
- alarm
Enabled Boolean - Specifies whether to enable the alarm rule.
The default value is
true. - alarm
Id String - The alarm rule ID.
- alarm
Template StringId - Specifies the ID of the alarm template. Changing this creates a new resource.
- ces
Alarm StringRule V2Id - The resource ID in UUID format.
- description String
- The value can be a string of
0to256characters. Changing this creates a new resource. - enterprise
Project StringId Specifies the enterprise project ID of the alarm rule. Changing this creates a new resource.
Note If
notification_enabledis set totrue, eitheralarm_actionsorok_actionscannot be empty. Ifalarm_actionsandok_actionscoexist, their correspondingnotification_listmust be of the same value.<a name=<span pulumi-lang-nodejs=""policiesStruct"" pulumi-lang-dotnet=""PoliciesStruct"" pulumi-lang-go=""policiesStruct"" pulumi-lang-python=""policies_struct"" pulumi-lang-yaml=""policiesStruct"" pulumi-lang-java=""policiesStruct"">"policies_struct"> The
policiesblock supports:- name String
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - namespace String
- Specifies the namespace in
service.itemformat.serviceanditemeach must be a string that starts with a letter and contains only letters, digits, and underscores (_). Changing this creates a new resource. For details, see Services Interconnected with Cloud Eye. - notification
Begin StringTime - Specifies the alarm notification start time, for example: 05:30. Changing this creates a new resource.
- notification
Enabled Boolean - Specifies whether to enable the action to be triggered by an alarm.
The default value is
false. Changing this creates a new resource. - notification
End StringTime - Specifies the alarm notification stop time, for example: 22:10. Changing this creates a new resource.
- ok
Actions List<Property Map> - Specifies the action triggered by the clearing of an alarm. The ok_actions structure is documented below. Changing this creates a new resource.
- policies List<Property Map>
- Specifies the alarm policies. The policies structure is documented below.
- resource
Group StringId - Specifies the resource group ID. Changing this creates a new resource.
- resources List<Property Map>
- Specifies the list of resources to monitor. The resources structure is documented below.
- timeouts Property Map
- type String
- Specifies the type of action triggered by an alarm. The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
Supporting Types
CesAlarmRuleV2AlarmAction, CesAlarmRuleV2AlarmActionArgs
- Notification
Lists List<string> Specifies the list of objects to be notified if the alarm status changes. The maximum length is
5. Iftypeis set to notification, the value ofnotification_listcannot be empty. Iftypeis set to autoscaling, the value ofnotification_listmust be[]and the value ofnamespacemust be SYS.AS.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: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- Notification
Lists []string Specifies the list of objects to be notified if the alarm status changes. The maximum length is
5. Iftypeis set to notification, the value ofnotification_listcannot be empty. Iftypeis set to autoscaling, the value ofnotification_listmust be[]and the value ofnamespacemust be SYS.AS.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: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists List<String> Specifies the list of objects to be notified if the alarm status changes. The maximum length is
5. Iftypeis set to notification, the value ofnotification_listcannot be empty. Iftypeis set to autoscaling, the value ofnotification_listmust be[]and the value ofnamespacemust be SYS.AS.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: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists string[] Specifies the list of objects to be notified if the alarm status changes. The maximum length is
5. Iftypeis set to notification, the value ofnotification_listcannot be empty. Iftypeis set to autoscaling, the value ofnotification_listmust be[]and the value ofnamespacemust be SYS.AS.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: 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. Iftypeis set to notification, the value ofnotification_listcannot be empty. Iftypeis set to autoscaling, the value ofnotification_listmust be[]and the value ofnamespacemust be SYS.AS.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: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists List<String> Specifies the list of objects to be notified if the alarm status changes. The maximum length is
5. Iftypeis set to notification, the value ofnotification_listcannot be empty. Iftypeis set to autoscaling, the value ofnotification_listmust be[]and the value ofnamespacemust be SYS.AS.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: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
CesAlarmRuleV2OkAction, CesAlarmRuleV2OkActionArgs
- Notification
Lists 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 the clearing of an alarm.
The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- Notification
Lists []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 the clearing of an alarm.
The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists 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 the clearing of an alarm.
The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists 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 the clearing of an alarm.
The value can be:
- 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. - type str
- Specifies the type of action triggered by the clearing of an alarm.
The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists 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 the clearing of an alarm.
The value can be:
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
CesAlarmRuleV2Policy, CesAlarmRuleV2PolicyArgs
- 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
1to5. - Filter string
- Specifies the data rollup method. The value can be
max,min,average,sum, andvariance. - Metric
Name string - Specifies the metric name. The value can be a string of
1to64characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye. - Period double
Specifies the alarm checking period in seconds. The value can be
0,1,300,1200,3600,14400, and86400.If
periodis set to1, the raw metric data is used to determine whether to generate an alarm. When the value oftypeis EVENT.SYS or EVENT.CUSTOM,periodcan be set to0.- Level double
Specifies the alarm severity. The value can be
1,2,3, or4, which indicates critical, major, minor, and informational, respectively. The default value is2.<a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The
resourcesblock supports:- Suppress
Duration double Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:
- 0: Cloud Eye triggers the alarm only 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.
The default value is
0.- Unit string
- Specifies the data unit. The value can be a string of
0to32characters. - Value double
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- 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
1to5. - Filter string
- Specifies the data rollup method. The value can be
max,min,average,sum, andvariance. - Metric
Name string - Specifies the metric name. The value can be a string of
1to64characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye. - Period float64
Specifies the alarm checking period in seconds. The value can be
0,1,300,1200,3600,14400, and86400.If
periodis set to1, the raw metric data is used to determine whether to generate an alarm. When the value oftypeis EVENT.SYS or EVENT.CUSTOM,periodcan be set to0.- Level float64
Specifies the alarm severity. The value can be
1,2,3, or4, which indicates critical, major, minor, and informational, respectively. The default value is2.<a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The
resourcesblock supports:- Suppress
Duration float64 Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:
- 0: Cloud Eye triggers the alarm only 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.
The default value is
0.- Unit string
- Specifies the data unit. The value can be a string of
0to32characters. - Value float64
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- 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
1to5. - filter String
- Specifies the data rollup method. The value can be
max,min,average,sum, andvariance. - metric
Name String - Specifies the metric name. The value can be a string of
1to64characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye. - period Double
Specifies the alarm checking period in seconds. The value can be
0,1,300,1200,3600,14400, and86400.If
periodis set to1, the raw metric data is used to determine whether to generate an alarm. When the value oftypeis EVENT.SYS or EVENT.CUSTOM,periodcan be set to0.- level Double
Specifies the alarm severity. The value can be
1,2,3, or4, which indicates critical, major, minor, and informational, respectively. The default value is2.<a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The
resourcesblock supports:- suppress
Duration Double Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:
- 0: Cloud Eye triggers the alarm only 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.
The default value is
0.- unit String
- Specifies the data unit. The value can be a string of
0to32characters. - value Double
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- 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
1to5. - filter string
- Specifies the data rollup method. The value can be
max,min,average,sum, andvariance. - metric
Name string - Specifies the metric name. The value can be a string of
1to64characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye. - period number
Specifies the alarm checking period in seconds. The value can be
0,1,300,1200,3600,14400, and86400.If
periodis set to1, the raw metric data is used to determine whether to generate an alarm. When the value oftypeis EVENT.SYS or EVENT.CUSTOM,periodcan be set to0.- level number
Specifies the alarm severity. The value can be
1,2,3, or4, which indicates critical, major, minor, and informational, respectively. The default value is2.<a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The
resourcesblock supports:- suppress
Duration number Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:
- 0: Cloud Eye triggers the alarm only 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.
The default value is
0.- unit string
- Specifies the data unit. The value can be a string of
0to32characters. - value number
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- 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
1to5. - filter str
- Specifies the data rollup method. The value can be
max,min,average,sum, andvariance. - metric_
name str - Specifies the metric name. The value can be a string of
1to64characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye. - period float
Specifies the alarm checking period in seconds. The value can be
0,1,300,1200,3600,14400, and86400.If
periodis set to1, the raw metric data is used to determine whether to generate an alarm. When the value oftypeis EVENT.SYS or EVENT.CUSTOM,periodcan be set to0.- level float
Specifies the alarm severity. The value can be
1,2,3, or4, which indicates critical, major, minor, and informational, respectively. The default value is2.<a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The
resourcesblock supports:- suppress_
duration float Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:
- 0: Cloud Eye triggers the alarm only 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.
The default value is
0.- unit str
- Specifies the data unit. The value can be a string of
0to32characters. - value float
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- 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
1to5. - filter String
- Specifies the data rollup method. The value can be
max,min,average,sum, andvariance. - metric
Name String - Specifies the metric name. The value can be a string of
1to64characters that must start with a letter and contain only letters, digits, and underscores (_). For details, see Services Interconnected with Cloud Eye. - period Number
Specifies the alarm checking period in seconds. The value can be
0,1,300,1200,3600,14400, and86400.If
periodis set to1, the raw metric data is used to determine whether to generate an alarm. When the value oftypeis EVENT.SYS or EVENT.CUSTOM,periodcan be set to0.- level Number
Specifies the alarm severity. The value can be
1,2,3, or4, which indicates critical, major, minor, and informational, respectively. The default value is2.<a name=<span pulumi-lang-nodejs=""resourcesStruct"" pulumi-lang-dotnet=""ResourcesStruct"" pulumi-lang-go=""resourcesStruct"" pulumi-lang-python=""resources_struct"" pulumi-lang-yaml=""resourcesStruct"" pulumi-lang-java=""resourcesStruct"">"resources_struct"> The
resourcesblock supports:- suppress
Duration Number Specifies the interval for triggering an alarm if the alarm persists. Possible values are as follows:
- 0: Cloud Eye triggers the alarm only 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.
The default value is
0.- unit String
- Specifies the data unit. The value can be a string of
0to32characters. - value Number
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
CesAlarmRuleV2Resource, CesAlarmRuleV2ResourceArgs
- Dimensions
List<Ces
Alarm Rule V2Resource Dimension> Specifies the list of metric dimensions. The dimensions structure is documented below.
<a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The
dimensionsblock supports:
- Dimensions
[]Ces
Alarm Rule V2Resource Dimension Specifies the list of metric dimensions. The dimensions structure is documented below.
<a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The
dimensionsblock supports:
- dimensions
List<Ces
Alarm Rule V2Resource Dimension> Specifies the list of metric dimensions. The dimensions structure is documented below.
<a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The
dimensionsblock supports:
- dimensions
Ces
Alarm Rule V2Resource Dimension[] Specifies the list of metric dimensions. The dimensions structure is documented below.
<a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The
dimensionsblock supports:
- dimensions
Sequence[Ces
Alarm Rule V2Resource Dimension] Specifies the list of metric dimensions. The dimensions structure is documented below.
<a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The
dimensionsblock supports:
- dimensions List<Property Map>
Specifies the list of metric dimensions. The dimensions structure is documented below.
<a name=<span pulumi-lang-nodejs=""dimensionsStruct"" pulumi-lang-dotnet=""DimensionsStruct"" pulumi-lang-go=""dimensionsStruct"" pulumi-lang-python=""dimensions_struct"" pulumi-lang-yaml=""dimensionsStruct"" pulumi-lang-java=""dimensionsStruct"">"dimensions_struct"> The
dimensionsblock supports:
CesAlarmRuleV2ResourceDimension, CesAlarmRuleV2ResourceDimensionArgs
- Name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - Value string
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- Name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - Value string
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- name String
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - value String
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- name string
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - value string
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- name str
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - value str
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
- name String
- Specifies the dimension name. The value can be a string of
1to32characters that must start with a letter and contain only letters, digits, underscores (_), and hyphens (-). - value String
Specifies the dimension value. The value can be a string of
1to64characters that must start with a letter or a number and contain only letters, digits, underscores (_), and hyphens (-). For ALL_INSTANCE type alarms, this field can be left empty.<a name=<span pulumi-lang-nodejs=""actionsStruct"" pulumi-lang-dotnet=""ActionsStruct"" pulumi-lang-go=""actionsStruct"" pulumi-lang-python=""actions_struct"" pulumi-lang-yaml=""actionsStruct"" pulumi-lang-java=""actionsStruct"">"actions_struct"> The
alarm_actionsblock supports:
CesAlarmRuleV2Timeouts, CesAlarmRuleV2TimeoutsArgs
Import
CES alarm rules v2 can be imported using the id, e.g.
bash
$ pulumi import opentelekomcloud:index/cesAlarmRuleV2:CesAlarmRuleV2 alarm_rule al1619578509719Ga0X1RGWv
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
opentelekomcloudTerraform Provider.
