flexibleengine.CesAlarmrule
Explore with Pulumi AI
Manages a Cloud Eye alarm rule resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const alarmRule = new flexibleengine.CesAlarmrule("alarmRule", {
alarmName: "alarm_rule",
metric: {
namespace: "SYS.ECS",
metricName: "network_outgoing_bytes_rate_inband",
dimensions: [{
name: "instance_id",
value: _var.instance_id,
}],
},
condition: {
period: 300,
filter: "average",
comparisonOperator: ">",
value: 6,
unit: "B/s",
count: 1,
},
alarmActions: [{
type: "notification",
notificationLists: [_var.topic_id],
}],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
alarm_rule = flexibleengine.CesAlarmrule("alarmRule",
alarm_name="alarm_rule",
metric={
"namespace": "SYS.ECS",
"metric_name": "network_outgoing_bytes_rate_inband",
"dimensions": [{
"name": "instance_id",
"value": var["instance_id"],
}],
},
condition={
"period": 300,
"filter": "average",
"comparison_operator": ">",
"value": 6,
"unit": "B/s",
"count": 1,
},
alarm_actions=[{
"type": "notification",
"notification_lists": [var["topic_id"]],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewCesAlarmrule(ctx, "alarmRule", &flexibleengine.CesAlarmruleArgs{
AlarmName: pulumi.String("alarm_rule"),
Metric: &flexibleengine.CesAlarmruleMetricArgs{
Namespace: pulumi.String("SYS.ECS"),
MetricName: pulumi.String("network_outgoing_bytes_rate_inband"),
Dimensions: flexibleengine.CesAlarmruleMetricDimensionArray{
&flexibleengine.CesAlarmruleMetricDimensionArgs{
Name: pulumi.String("instance_id"),
Value: pulumi.Any(_var.Instance_id),
},
},
},
Condition: &flexibleengine.CesAlarmruleConditionArgs{
Period: pulumi.Float64(300),
Filter: pulumi.String("average"),
ComparisonOperator: pulumi.String(">"),
Value: pulumi.Float64(6),
Unit: pulumi.String("B/s"),
Count: pulumi.Float64(1),
},
AlarmActions: flexibleengine.CesAlarmruleAlarmActionArray{
&flexibleengine.CesAlarmruleAlarmActionArgs{
Type: pulumi.String("notification"),
NotificationLists: pulumi.StringArray{
_var.Topic_id,
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var alarmRule = new Flexibleengine.CesAlarmrule("alarmRule", new()
{
AlarmName = "alarm_rule",
Metric = new Flexibleengine.Inputs.CesAlarmruleMetricArgs
{
Namespace = "SYS.ECS",
MetricName = "network_outgoing_bytes_rate_inband",
Dimensions = new[]
{
new Flexibleengine.Inputs.CesAlarmruleMetricDimensionArgs
{
Name = "instance_id",
Value = @var.Instance_id,
},
},
},
Condition = new Flexibleengine.Inputs.CesAlarmruleConditionArgs
{
Period = 300,
Filter = "average",
ComparisonOperator = ">",
Value = 6,
Unit = "B/s",
Count = 1,
},
AlarmActions = new[]
{
new Flexibleengine.Inputs.CesAlarmruleAlarmActionArgs
{
Type = "notification",
NotificationLists = new[]
{
@var.Topic_id,
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.CesAlarmrule;
import com.pulumi.flexibleengine.CesAlarmruleArgs;
import com.pulumi.flexibleengine.inputs.CesAlarmruleMetricArgs;
import com.pulumi.flexibleengine.inputs.CesAlarmruleConditionArgs;
import com.pulumi.flexibleengine.inputs.CesAlarmruleAlarmActionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var alarmRule = new CesAlarmrule("alarmRule", CesAlarmruleArgs.builder()
.alarmName("alarm_rule")
.metric(CesAlarmruleMetricArgs.builder()
.namespace("SYS.ECS")
.metricName("network_outgoing_bytes_rate_inband")
.dimensions(CesAlarmruleMetricDimensionArgs.builder()
.name("instance_id")
.value(var_.instance_id())
.build())
.build())
.condition(CesAlarmruleConditionArgs.builder()
.period(300)
.filter("average")
.comparisonOperator(">")
.value(6)
.unit("B/s")
.count(1)
.build())
.alarmActions(CesAlarmruleAlarmActionArgs.builder()
.type("notification")
.notificationLists(var_.topic_id())
.build())
.build());
}
}
resources:
alarmRule:
type: flexibleengine:CesAlarmrule
properties:
alarmName: alarm_rule
metric:
namespace: SYS.ECS
metricName: network_outgoing_bytes_rate_inband
dimensions:
- name: instance_id
value: ${var.instance_id}
condition:
period: 300
filter: average
comparisonOperator: '>'
value: 6
unit: B/s
count: 1
alarmActions:
- type: notification
notificationLists:
- ${var.topic_id}
Create CesAlarmrule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CesAlarmrule(name: string, args: CesAlarmruleArgs, opts?: CustomResourceOptions);
@overload
def CesAlarmrule(resource_name: str,
args: CesAlarmruleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CesAlarmrule(resource_name: str,
opts: Optional[ResourceOptions] = None,
alarm_name: Optional[str] = None,
metric: Optional[CesAlarmruleMetricArgs] = None,
condition: Optional[CesAlarmruleConditionArgs] = None,
alarm_enabled: Optional[bool] = None,
alarm_level: Optional[float] = None,
alarm_action_enabled: Optional[bool] = None,
ces_alarmrule_id: Optional[str] = None,
alarm_description: Optional[str] = None,
insufficientdata_actions: Optional[Sequence[CesAlarmruleInsufficientdataActionArgs]] = None,
alarm_actions: Optional[Sequence[CesAlarmruleAlarmActionArgs]] = None,
ok_actions: Optional[Sequence[CesAlarmruleOkActionArgs]] = None,
region: Optional[str] = None,
timeouts: Optional[CesAlarmruleTimeoutsArgs] = None)
func NewCesAlarmrule(ctx *Context, name string, args CesAlarmruleArgs, opts ...ResourceOption) (*CesAlarmrule, error)
public CesAlarmrule(string name, CesAlarmruleArgs args, CustomResourceOptions? opts = null)
public CesAlarmrule(String name, CesAlarmruleArgs args)
public CesAlarmrule(String name, CesAlarmruleArgs args, CustomResourceOptions options)
type: flexibleengine:CesAlarmrule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CesAlarmruleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CesAlarmruleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CesAlarmruleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CesAlarmruleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CesAlarmruleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var cesAlarmruleResource = new Flexibleengine.CesAlarmrule("cesAlarmruleResource", new()
{
AlarmName = "string",
Metric = new Flexibleengine.Inputs.CesAlarmruleMetricArgs
{
Dimensions = new[]
{
new Flexibleengine.Inputs.CesAlarmruleMetricDimensionArgs
{
Name = "string",
Value = "string",
},
},
MetricName = "string",
Namespace = "string",
},
Condition = new Flexibleengine.Inputs.CesAlarmruleConditionArgs
{
ComparisonOperator = "string",
Count = 0,
Filter = "string",
Period = 0,
Value = 0,
SuppressDuration = 0,
Unit = "string",
},
AlarmEnabled = false,
AlarmLevel = 0,
AlarmActionEnabled = false,
CesAlarmruleId = "string",
AlarmDescription = "string",
AlarmActions = new[]
{
new Flexibleengine.Inputs.CesAlarmruleAlarmActionArgs
{
NotificationLists = new[]
{
"string",
},
Type = "string",
},
},
OkActions = new[]
{
new Flexibleengine.Inputs.CesAlarmruleOkActionArgs
{
NotificationLists = new[]
{
"string",
},
Type = "string",
},
},
Region = "string",
Timeouts = new Flexibleengine.Inputs.CesAlarmruleTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := flexibleengine.NewCesAlarmrule(ctx, "cesAlarmruleResource", &flexibleengine.CesAlarmruleArgs{
AlarmName: pulumi.String("string"),
Metric: &flexibleengine.CesAlarmruleMetricArgs{
Dimensions: flexibleengine.CesAlarmruleMetricDimensionArray{
&flexibleengine.CesAlarmruleMetricDimensionArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MetricName: pulumi.String("string"),
Namespace: pulumi.String("string"),
},
Condition: &flexibleengine.CesAlarmruleConditionArgs{
ComparisonOperator: pulumi.String("string"),
Count: pulumi.Float64(0),
Filter: pulumi.String("string"),
Period: pulumi.Float64(0),
Value: pulumi.Float64(0),
SuppressDuration: pulumi.Float64(0),
Unit: pulumi.String("string"),
},
AlarmEnabled: pulumi.Bool(false),
AlarmLevel: pulumi.Float64(0),
AlarmActionEnabled: pulumi.Bool(false),
CesAlarmruleId: pulumi.String("string"),
AlarmDescription: pulumi.String("string"),
AlarmActions: flexibleengine.CesAlarmruleAlarmActionArray{
&flexibleengine.CesAlarmruleAlarmActionArgs{
NotificationLists: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
OkActions: flexibleengine.CesAlarmruleOkActionArray{
&flexibleengine.CesAlarmruleOkActionArgs{
NotificationLists: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
},
Region: pulumi.String("string"),
Timeouts: &flexibleengine.CesAlarmruleTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var cesAlarmruleResource = new CesAlarmrule("cesAlarmruleResource", CesAlarmruleArgs.builder()
.alarmName("string")
.metric(CesAlarmruleMetricArgs.builder()
.dimensions(CesAlarmruleMetricDimensionArgs.builder()
.name("string")
.value("string")
.build())
.metricName("string")
.namespace("string")
.build())
.condition(CesAlarmruleConditionArgs.builder()
.comparisonOperator("string")
.count(0)
.filter("string")
.period(0)
.value(0)
.suppressDuration(0)
.unit("string")
.build())
.alarmEnabled(false)
.alarmLevel(0)
.alarmActionEnabled(false)
.cesAlarmruleId("string")
.alarmDescription("string")
.alarmActions(CesAlarmruleAlarmActionArgs.builder()
.notificationLists("string")
.type("string")
.build())
.okActions(CesAlarmruleOkActionArgs.builder()
.notificationLists("string")
.type("string")
.build())
.region("string")
.timeouts(CesAlarmruleTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
ces_alarmrule_resource = flexibleengine.CesAlarmrule("cesAlarmruleResource",
alarm_name="string",
metric={
"dimensions": [{
"name": "string",
"value": "string",
}],
"metric_name": "string",
"namespace": "string",
},
condition={
"comparison_operator": "string",
"count": 0,
"filter": "string",
"period": 0,
"value": 0,
"suppress_duration": 0,
"unit": "string",
},
alarm_enabled=False,
alarm_level=0,
alarm_action_enabled=False,
ces_alarmrule_id="string",
alarm_description="string",
alarm_actions=[{
"notification_lists": ["string"],
"type": "string",
}],
ok_actions=[{
"notification_lists": ["string"],
"type": "string",
}],
region="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const cesAlarmruleResource = new flexibleengine.CesAlarmrule("cesAlarmruleResource", {
alarmName: "string",
metric: {
dimensions: [{
name: "string",
value: "string",
}],
metricName: "string",
namespace: "string",
},
condition: {
comparisonOperator: "string",
count: 0,
filter: "string",
period: 0,
value: 0,
suppressDuration: 0,
unit: "string",
},
alarmEnabled: false,
alarmLevel: 0,
alarmActionEnabled: false,
cesAlarmruleId: "string",
alarmDescription: "string",
alarmActions: [{
notificationLists: ["string"],
type: "string",
}],
okActions: [{
notificationLists: ["string"],
type: "string",
}],
region: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: flexibleengine:CesAlarmrule
properties:
alarmActionEnabled: false
alarmActions:
- notificationLists:
- string
type: string
alarmDescription: string
alarmEnabled: false
alarmLevel: 0
alarmName: string
cesAlarmruleId: string
condition:
comparisonOperator: string
count: 0
filter: string
period: 0
suppressDuration: 0
unit: string
value: 0
metric:
dimensions:
- name: string
value: string
metricName: string
namespace: string
okActions:
- notificationLists:
- string
type: string
region: string
timeouts:
create: string
delete: string
update: string
CesAlarmrule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CesAlarmrule resource accepts the following input properties:
- Alarm
Name string - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- Condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- Metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- Alarm
Action boolEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- Alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the action triggered by an alarm. The structure is described below.
- Alarm
Description string - The value can be a string of 0 to 256 characters.
- Alarm
Enabled bool - Specifies whether to enable the alarm. The default value is true.
- Alarm
Level double - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- Ces
Alarmrule stringId - Indicates the alarm rule ID.
- Insufficientdata
Actions List<CesAlarmrule Insufficientdata Action> - Ok
Actions List<CesAlarmrule Ok Action> - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- Region string
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Timeouts
Ces
Alarmrule Timeouts
- Alarm
Name string - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- Condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- Metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- Alarm
Action boolEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- Alarm
Actions []CesAlarmrule Alarm Action Args - Specifies the action triggered by an alarm. The structure is described below.
- Alarm
Description string - The value can be a string of 0 to 256 characters.
- Alarm
Enabled bool - Specifies whether to enable the alarm. The default value is true.
- Alarm
Level float64 - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- Ces
Alarmrule stringId - Indicates the alarm rule ID.
- Insufficientdata
Actions []CesAlarmrule Insufficientdata Action Args - Ok
Actions []CesAlarmrule Ok Action Args - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- Region string
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Timeouts
Ces
Alarmrule Timeouts Args
- alarm
Name String - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- alarm
Action BooleanEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the action triggered by an alarm. The structure is described below.
- alarm
Description String - The value can be a string of 0 to 256 characters.
- alarm
Enabled Boolean - Specifies whether to enable the alarm. The default value is true.
- alarm
Level Double - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- ces
Alarmrule StringId - Indicates the alarm rule ID.
- insufficientdata
Actions List<CesAlarmrule Insufficientdata Action> - ok
Actions List<CesAlarmrule Ok Action> - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region String
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
Ces
Alarmrule Timeouts
- alarm
Name string - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- alarm
Action booleanEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm
Actions CesAlarmrule Alarm Action[] - Specifies the action triggered by an alarm. The structure is described below.
- alarm
Description string - The value can be a string of 0 to 256 characters.
- alarm
Enabled boolean - Specifies whether to enable the alarm. The default value is true.
- alarm
Level number - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- ces
Alarmrule stringId - Indicates the alarm rule ID.
- insufficientdata
Actions CesAlarmrule Insufficientdata Action[] - ok
Actions CesAlarmrule Ok Action[] - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region string
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
Ces
Alarmrule Timeouts
- alarm_
name str - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- alarm_
action_ boolenabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm_
actions Sequence[CesAlarmrule Alarm Action Args] - Specifies the action triggered by an alarm. The structure is described below.
- alarm_
description str - The value can be a string of 0 to 256 characters.
- alarm_
enabled bool - Specifies whether to enable the alarm. The default value is true.
- alarm_
level float - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- ces_
alarmrule_ strid - Indicates the alarm rule ID.
- insufficientdata_
actions Sequence[CesAlarmrule Insufficientdata Action Args] - ok_
actions Sequence[CesAlarmrule Ok Action Args] - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region str
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
Ces
Alarmrule Timeouts Args
- alarm
Name String - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- condition Property Map
- Specifies the alarm triggering condition. The structure is described below.
- metric Property Map
- Specifies the alarm metrics. The structure is described below.
- alarm
Action BooleanEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm
Actions List<Property Map> - Specifies the action triggered by an alarm. The structure is described below.
- alarm
Description String - The value can be a string of 0 to 256 characters.
- alarm
Enabled Boolean - Specifies whether to enable the alarm. The default value is true.
- alarm
Level Number - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- ces
Alarmrule StringId - Indicates the alarm rule ID.
- insufficientdata
Actions List<Property Map> - ok
Actions List<Property Map> - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region String
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the CesAlarmrule resource produces the following output properties:
- Alarm
State string - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time double - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- Alarm
State string - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time float64 - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
State String - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time Double - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
State string - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time number - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm_
state str - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time float - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
State String - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time Number - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
Look up Existing CesAlarmrule Resource
Get an existing CesAlarmrule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CesAlarmruleState, opts?: CustomResourceOptions): CesAlarmrule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alarm_action_enabled: Optional[bool] = None,
alarm_actions: Optional[Sequence[CesAlarmruleAlarmActionArgs]] = None,
alarm_description: Optional[str] = None,
alarm_enabled: Optional[bool] = None,
alarm_level: Optional[float] = None,
alarm_name: Optional[str] = None,
alarm_state: Optional[str] = None,
ces_alarmrule_id: Optional[str] = None,
condition: Optional[CesAlarmruleConditionArgs] = None,
insufficientdata_actions: Optional[Sequence[CesAlarmruleInsufficientdataActionArgs]] = None,
metric: Optional[CesAlarmruleMetricArgs] = None,
ok_actions: Optional[Sequence[CesAlarmruleOkActionArgs]] = None,
region: Optional[str] = None,
timeouts: Optional[CesAlarmruleTimeoutsArgs] = None,
update_time: Optional[float] = None) -> CesAlarmrule
func GetCesAlarmrule(ctx *Context, name string, id IDInput, state *CesAlarmruleState, opts ...ResourceOption) (*CesAlarmrule, error)
public static CesAlarmrule Get(string name, Input<string> id, CesAlarmruleState? state, CustomResourceOptions? opts = null)
public static CesAlarmrule get(String name, Output<String> id, CesAlarmruleState state, CustomResourceOptions options)
resources: _: type: flexibleengine:CesAlarmrule get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alarm
Action boolEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- Alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the action triggered by an alarm. The structure is described below.
- Alarm
Description string - The value can be a string of 0 to 256 characters.
- Alarm
Enabled bool - Specifies whether to enable the alarm. The default value is true.
- Alarm
Level double - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- Alarm
Name string - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- Alarm
State string - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- Ces
Alarmrule stringId - Indicates the alarm rule ID.
- Condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- Insufficientdata
Actions List<CesAlarmrule Insufficientdata Action> - Metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- Ok
Actions List<CesAlarmrule Ok Action> - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- Region string
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Timeouts
Ces
Alarmrule Timeouts - Update
Time double - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- Alarm
Action boolEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- Alarm
Actions []CesAlarmrule Alarm Action Args - Specifies the action triggered by an alarm. The structure is described below.
- Alarm
Description string - The value can be a string of 0 to 256 characters.
- Alarm
Enabled bool - Specifies whether to enable the alarm. The default value is true.
- Alarm
Level float64 - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- Alarm
Name string - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- Alarm
State string - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- Ces
Alarmrule stringId - Indicates the alarm rule ID.
- Condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- Insufficientdata
Actions []CesAlarmrule Insufficientdata Action Args - Metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- Ok
Actions []CesAlarmrule Ok Action Args - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- Region string
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- Timeouts
Ces
Alarmrule Timeouts Args - Update
Time float64 - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
Action BooleanEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm
Actions List<CesAlarmrule Alarm Action> - Specifies the action triggered by an alarm. The structure is described below.
- alarm
Description String - The value can be a string of 0 to 256 characters.
- alarm
Enabled Boolean - Specifies whether to enable the alarm. The default value is true.
- alarm
Level Double - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- alarm
Name String - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- alarm
State String - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- ces
Alarmrule StringId - Indicates the alarm rule ID.
- condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- insufficientdata
Actions List<CesAlarmrule Insufficientdata Action> - metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- ok
Actions List<CesAlarmrule Ok Action> - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region String
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
Ces
Alarmrule Timeouts - update
Time Double - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
Action booleanEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm
Actions CesAlarmrule Alarm Action[] - Specifies the action triggered by an alarm. The structure is described below.
- alarm
Description string - The value can be a string of 0 to 256 characters.
- alarm
Enabled boolean - Specifies whether to enable the alarm. The default value is true.
- alarm
Level number - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- alarm
Name string - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- alarm
State string - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- ces
Alarmrule stringId - Indicates the alarm rule ID.
- condition
Ces
Alarmrule Condition - Specifies the alarm triggering condition. The structure is described below.
- insufficientdata
Actions CesAlarmrule Insufficientdata Action[] - metric
Ces
Alarmrule Metric - Specifies the alarm metrics. The structure is described below.
- ok
Actions CesAlarmrule Ok Action[] - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region string
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
Ces
Alarmrule Timeouts - update
Time number - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm_
action_ boolenabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm_
actions Sequence[CesAlarmrule Alarm Action Args] - Specifies the action triggered by an alarm. The structure is described below.
- alarm_
description str - The value can be a string of 0 to 256 characters.
- alarm_
enabled bool - Specifies whether to enable the alarm. The default value is true.
- alarm_
level float - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- alarm_
name str - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- alarm_
state str - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- ces_
alarmrule_ strid - Indicates the alarm rule ID.
- condition
Ces
Alarmrule Condition Args - Specifies the alarm triggering condition. The structure is described below.
- insufficientdata_
actions Sequence[CesAlarmrule Insufficientdata Action Args] - metric
Ces
Alarmrule Metric Args - Specifies the alarm metrics. The structure is described below.
- ok_
actions Sequence[CesAlarmrule Ok Action Args] - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region str
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts
Ces
Alarmrule Timeouts Args - update_
time float - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
- alarm
Action BooleanEnabled Specifies whether to enable the action to be triggered by an alarm. The default value is true.
Note If alarm_action_enabled is set to true, either alarm_actions or ok_actions cannot be empty. If alarm_actions and ok_actions coexist, their corresponding notification_list must be of the same value.
- alarm
Actions List<Property Map> - Specifies the action triggered by an alarm. The structure is described below.
- alarm
Description String - The value can be a string of 0 to 256 characters.
- alarm
Enabled Boolean - Specifies whether to enable the alarm. The default value is true.
- alarm
Level Number - Specifies the alarm severity. The value can be 1, 2, 3 or 4, which indicates critical, major, minor, and informational, respectively. The default value is 2. Changing this creates a new resource.
- alarm
Name String - Specifies the name of an alarm rule. The value can be a string of 1 to 128 characters that can consist of numbers, lowercase letters, uppercase letters, underscores (_), or hyphens (-).
- alarm
State String - Indicates the alarm status. The value can be:
- ok: The alarm status is normal;
- alarm: An alarm is generated;
- insufficient_data: The required data is insufficient.
- ces
Alarmrule StringId - Indicates the alarm rule ID.
- condition Property Map
- Specifies the alarm triggering condition. The structure is described below.
- insufficientdata
Actions List<Property Map> - metric Property Map
- Specifies the alarm metrics. The structure is described below.
- ok
Actions List<Property Map> - Specifies the action triggered by the clearing of an alarm. The structure is described below.
- region String
- The region in which to create the alarm rule resource. If omitted, the provider-level region will be used. Changing this creates a new resource.
- timeouts Property Map
- update
Time Number - Indicates the time when the alarm status changed. The value is a UNIX timestamp and the unit is ms.
Supporting Types
CesAlarmruleAlarmAction, CesAlarmruleAlarmActionArgs
- Notification
Lists List<string> - specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
- Type string
- specifies the type of action triggered by an alarm. the
value can be notification or autoscaling.
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- Notification
Lists []string - specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
- Type string
- specifies the type of action triggered by an alarm. the
value can be notification or autoscaling.
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists List<String> - specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
- type String
- specifies the type of action triggered by an alarm. the
value can be notification or autoscaling.
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists string[] - specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
- type string
- specifies the type of action triggered by an alarm. the
value can be notification or autoscaling.
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification_
lists Sequence[str] - specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
- type str
- specifies the type of action triggered by an alarm. the
value can be notification or autoscaling.
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
- notification
Lists List<String> - specifies the list of objects to be notified if the alarm status changes, the maximum length is 5. if type is set to notification, the value of notification_list cannot be empty. if type is set to autoscaling, the value of notification_list must be [] and the value of namespace must be SYS.AS. Note: to enable the autoscaling alarm rules take effect, you must bind scaling policies.
- type String
- specifies the type of action triggered by an alarm. the
value can be notification or autoscaling.
- notification: indicates that a notification will be sent to the user.
- autoscaling: indicates that a scaling action will be triggered.
CesAlarmruleCondition, CesAlarmruleConditionArgs
- Comparison
Operator string - Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
- Count double
- Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
- Filter string
- Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
- Period double
- Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
- Value double
- Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
- Suppress
Duration double - Unit string
- Specifies the data unit.
- Comparison
Operator string - Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
- Count float64
- Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
- Filter string
- Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
- Period float64
- Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
- Value float64
- Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
- Suppress
Duration float64 - Unit string
- Specifies the data unit.
- comparison
Operator String - Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
- count Double
- Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
- filter String
- Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
- period Double
- Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
- value Double
- Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
- suppress
Duration Double - unit String
- Specifies the data unit.
- comparison
Operator string - Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
- count number
- Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
- filter string
- Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
- period number
- Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
- value number
- Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
- suppress
Duration number - unit string
- Specifies the data unit.
- comparison_
operator str - Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
- count float
- Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
- filter str
- Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
- period float
- Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
- value float
- Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
- suppress_
duration float - unit str
- Specifies the data unit.
- comparison
Operator String - Specifies the comparison condition of alarm thresholds. The value can be >, =, <, >=, or <=.
- count Number
- Specifies the number of consecutive occurrence times. The value ranges from 1 to 5.
- filter String
- Specifies the data rollup methods. The value can be max, min, average, sum, and vaiance.
- period Number
- Specifies the alarm checking period in seconds. The value can be 1, 300, 1200, 3600, 14400, and 86400. Note: If period is set to 1, the raw metric data is used to determine whether to generate an alarm.
- value Number
- Specifies the alarm threshold. The value ranges from 0 to Number of 1.7976931348623157e+308.
- suppress
Duration Number - unit String
- Specifies the data unit.
CesAlarmruleInsufficientdataAction, CesAlarmruleInsufficientdataActionArgs
- Notification
Lists List<string> - Type string
- Notification
Lists []string - Type string
- notification
Lists List<String> - type String
- notification
Lists string[] - type string
- notification_
lists Sequence[str] - type str
- notification
Lists List<String> - type String
CesAlarmruleMetric, CesAlarmruleMetricArgs
- Dimensions
List<Ces
Alarmrule Metric Dimension> - Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
- Metric
Name string - Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
- Namespace string
- Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). For details, see Services Interconnected with Cloud Eye.
- Dimensions
[]Ces
Alarmrule Metric Dimension - Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
- Metric
Name string - Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
- Namespace string
- Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions
List<Ces
Alarmrule Metric Dimension> - Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
- metric
Name String - Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
- namespace String
- Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions
Ces
Alarmrule Metric Dimension[] - Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
- metric
Name string - Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
- namespace string
- Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions
Sequence[Ces
Alarmrule Metric Dimension] - Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
- metric_
name str - Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
- namespace str
- Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). For details, see Services Interconnected with Cloud Eye.
- dimensions List<Property Map>
- Specifies the list of metric dimensions. Currently, the maximum length of the dimesion list that are supported is 3. The structure is described below.
- metric
Name String - Specifies the metric name. The value can be a string of 1 to 64 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_).
- namespace String
- Specifies the namespace in service.item format. service.item can be a string of 3 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, or underscores (_). For details, see Services Interconnected with Cloud Eye.
CesAlarmruleMetricDimension, CesAlarmruleMetricDimensionArgs
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- Value string
- Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- Name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- Value string
- Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- value String
- Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- name string
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- value string
- Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- name str
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- value str
- Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- name String
- Specifies the dimension name. The value can be a string of 1 to 32 characters that must start with a letter and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
- value String
- Specifies the dimension value. The value can be a string of 1 to 64 characters that must start with a letter or a number and can consists of uppercase letters, lowercase letters, numbers, underscores (_), or hyphens (-).
CesAlarmruleOkAction, CesAlarmruleOkActionArgs
- 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 an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
- 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 an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
- 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 an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
- 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 an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
- notification_
lists Sequence[str] - specifies the list of objects to be notified if the alarm status changes, the maximum length is 5.
- type str
- specifies the type of action triggered by an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
- 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 an alarm. the value is notification. notification: indicates that a notification will be sent to the user.
CesAlarmruleTimeouts, CesAlarmruleTimeoutsArgs
Import
CES alarm rules can be imported using the id
, e.g.
$ pulumi import flexibleengine:index/cesAlarmrule:CesAlarmrule alarm_rule al1619678242900OxEaaODM2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.