published on Monday, Jul 27, 2026 by Byteplus
published on Monday, Jul 27, 2026 by Byteplus
If you need to monitor the data status of a cloud product resource, you can create a cloud monitoring alert policy. When the monitored resource data meets the alert trigger conditions, the system will send alert notifications using your specified method, helping you quickly identify resources with abnormal data.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bytepluscc from "@byteplus/pulumi-bytepluscc";
const cloudMonitorRuleDemo = new bytepluscc.cloudmonitor.Rule("CloudMonitorRuleDemo", {
ruleName: "CloudMonitorRuleDemo",
description: "this is a description",
ruleType: "static",
namespace: "VCM_AgentKitMcp",
subNamespace: "MCP_Service",
originalDimensions: {
key: "ResourceID",
values: ["*"],
},
level: "warning",
evaluationCount: 1,
enableState: "enable",
regions: ["cn-beijing"],
multipleConditions: false,
noData: {
enable: false,
evaluation_count: 4,
},
levelConditions: [{
level: "warning",
conditions: [{
metricName: "istio_requests_total",
statistics: "sum",
comparisonOperator: ">",
threshold: "100000",
metricUnit: "Count",
}],
}],
conditions: [{
metric_name: "istio_requests_total",
statistics: "sum",
comparison_operator: ">",
threshold: "100000",
metric_unit: "Count",
}],
conditionOperator: "&&",
silenceTime: 5,
recoveryNotify: {
enable: true,
},
projectName: "default",
tags: [{
key: "env",
value: "test",
}],
alertMethods: [
"Email",
"Webhook",
],
webhookIds: ["2005838xxxxx67xxxxx"],
contactGroupIds: ["20041xxxxxx06xxxxx"],
effectStartAt: "00:00",
effectEndAt: "23:59",
});
import pulumi
import pulumi_bytepluscc as bytepluscc
cloud_monitor_rule_demo = bytepluscc.cloudmonitor.Rule("CloudMonitorRuleDemo",
rule_name="CloudMonitorRuleDemo",
description="this is a description",
rule_type="static",
namespace="VCM_AgentKitMcp",
sub_namespace="MCP_Service",
original_dimensions={
"key": "ResourceID",
"values": ["*"],
},
level="warning",
evaluation_count=1,
enable_state="enable",
regions=["cn-beijing"],
multiple_conditions=False,
no_data={
"enable": False,
"evaluation_count": 4,
},
level_conditions=[{
"level": "warning",
"conditions": [{
"metric_name": "istio_requests_total",
"statistics": "sum",
"comparison_operator": ">",
"threshold": "100000",
"metric_unit": "Count",
}],
}],
conditions=[{
"metric_name": "istio_requests_total",
"statistics": "sum",
"comparison_operator": ">",
"threshold": "100000",
"metric_unit": "Count",
}],
condition_operator="&&",
silence_time=5,
recovery_notify={
"enable": True,
},
project_name="default",
tags=[{
"key": "env",
"value": "test",
}],
alert_methods=[
"Email",
"Webhook",
],
webhook_ids=["2005838xxxxx67xxxxx"],
contact_group_ids=["20041xxxxxx06xxxxx"],
effect_start_at="00:00",
effect_end_at="23:59")
package main
import (
"github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc/cloudmonitor"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudmonitor.NewRule(ctx, "CloudMonitorRuleDemo", &cloudmonitor.RuleArgs{
RuleName: pulumi.String("CloudMonitorRuleDemo"),
Description: pulumi.String("this is a description"),
RuleType: pulumi.String("static"),
Namespace: pulumi.String("VCM_AgentKitMcp"),
SubNamespace: pulumi.String("MCP_Service"),
OriginalDimensions: &cloudmonitor.RuleOriginalDimensionsArgs{
Key: pulumi.String("ResourceID"),
Values: pulumi.StringArray{
pulumi.String("*"),
},
},
Level: pulumi.String("warning"),
EvaluationCount: pulumi.Int(1),
EnableState: pulumi.String("enable"),
Regions: pulumi.StringArray{
pulumi.String("cn-beijing"),
},
MultipleConditions: pulumi.Bool(false),
NoData: &cloudmonitor.RuleNoDataArgs{
Enable: pulumi.Bool(false),
Evaluation_count: 4,
},
LevelConditions: cloudmonitor.RuleLevelConditionArray{
&cloudmonitor.RuleLevelConditionArgs{
Level: pulumi.String("warning"),
Conditions: cloudmonitor.RuleLevelConditionConditionArray{
&cloudmonitor.RuleLevelConditionConditionArgs{
MetricName: pulumi.String("istio_requests_total"),
Statistics: pulumi.String("sum"),
ComparisonOperator: pulumi.String(">"),
Threshold: pulumi.String("100000"),
MetricUnit: pulumi.String("Count"),
},
},
},
},
Conditions: cloudmonitor.RuleConditionArray{
&cloudmonitor.RuleConditionArgs{
Metric_name: "istio_requests_total",
Statistics: pulumi.String("sum"),
Comparison_operator: ">",
Threshold: pulumi.String("100000"),
Metric_unit: "Count",
},
},
ConditionOperator: pulumi.String("&&"),
SilenceTime: pulumi.Int(5),
RecoveryNotify: &cloudmonitor.RuleRecoveryNotifyArgs{
Enable: pulumi.Bool(true),
},
ProjectName: pulumi.String("default"),
Tags: cloudmonitor.RuleTagArray{
&cloudmonitor.RuleTagArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
AlertMethods: pulumi.StringArray{
pulumi.String("Email"),
pulumi.String("Webhook"),
},
WebhookIds: pulumi.StringArray{
pulumi.String("2005838xxxxx67xxxxx"),
},
ContactGroupIds: pulumi.StringArray{
pulumi.String("20041xxxxxx06xxxxx"),
},
EffectStartAt: pulumi.String("00:00"),
EffectEndAt: pulumi.String("23:59"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bytepluscc = Byteplus.Pulumi.Bytepluscc;
return await Deployment.RunAsync(() =>
{
var cloudMonitorRuleDemo = new Bytepluscc.Cloudmonitor.Rule("CloudMonitorRuleDemo", new()
{
RuleName = "CloudMonitorRuleDemo",
Description = "this is a description",
RuleType = "static",
Namespace = "VCM_AgentKitMcp",
SubNamespace = "MCP_Service",
OriginalDimensions = new Bytepluscc.Cloudmonitor.Inputs.RuleOriginalDimensionsArgs
{
Key = "ResourceID",
Values = new[]
{
"*",
},
},
Level = "warning",
EvaluationCount = 1,
EnableState = "enable",
Regions = new[]
{
"cn-beijing",
},
MultipleConditions = false,
NoData = new Bytepluscc.Cloudmonitor.Inputs.RuleNoDataArgs
{
Enable = false,
Evaluation_count = 4,
},
LevelConditions = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionArgs
{
Level = "warning",
Conditions = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionConditionArgs
{
MetricName = "istio_requests_total",
Statistics = "sum",
ComparisonOperator = ">",
Threshold = "100000",
MetricUnit = "Count",
},
},
},
},
Conditions = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleConditionArgs
{
Metric_name = "istio_requests_total",
Statistics = "sum",
Comparison_operator = ">",
Threshold = "100000",
Metric_unit = "Count",
},
},
ConditionOperator = "&&",
SilenceTime = 5,
RecoveryNotify = new Bytepluscc.Cloudmonitor.Inputs.RuleRecoveryNotifyArgs
{
Enable = true,
},
ProjectName = "default",
Tags = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleTagArgs
{
Key = "env",
Value = "test",
},
},
AlertMethods = new[]
{
"Email",
"Webhook",
},
WebhookIds = new[]
{
"2005838xxxxx67xxxxx",
},
ContactGroupIds = new[]
{
"20041xxxxxx06xxxxx",
},
EffectStartAt = "00:00",
EffectEndAt = "23:59",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.byteplus.bytepluscc.cloudmonitor.Rule;
import com.byteplus.bytepluscc.cloudmonitor.RuleArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleOriginalDimensionsArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleNoDataArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleLevelConditionArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleLevelConditionConditionArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleConditionArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleRecoveryNotifyArgs;
import com.pulumi.bytepluscc.cloudmonitor.inputs.RuleTagArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 cloudMonitorRuleDemo = new Rule("cloudMonitorRuleDemo", RuleArgs.builder()
.ruleName("CloudMonitorRuleDemo")
.description("this is a description")
.ruleType("static")
.namespace("VCM_AgentKitMcp")
.subNamespace("MCP_Service")
.originalDimensions(RuleOriginalDimensionsArgs.builder()
.key("ResourceID")
.values("*")
.build())
.level("warning")
.evaluationCount(1)
.enableState("enable")
.regions("cn-beijing")
.multipleConditions(false)
.noData(RuleNoDataArgs.builder()
.enable(false)
.evaluation_count(4)
.build())
.levelConditions(RuleLevelConditionArgs.builder()
.level("warning")
.conditions(RuleLevelConditionConditionArgs.builder()
.metricName("istio_requests_total")
.statistics("sum")
.comparisonOperator(">")
.threshold("100000")
.metricUnit("Count")
.build())
.build())
.conditions(RuleConditionArgs.builder()
.metric_name("istio_requests_total")
.statistics("sum")
.comparison_operator(">")
.threshold("100000")
.metric_unit("Count")
.build())
.conditionOperator("&&")
.silenceTime(5)
.recoveryNotify(RuleRecoveryNotifyArgs.builder()
.enable(true)
.build())
.projectName("default")
.tags(RuleTagArgs.builder()
.key("env")
.value("test")
.build())
.alertMethods(
"Email",
"Webhook")
.webhookIds("2005838xxxxx67xxxxx")
.contactGroupIds("20041xxxxxx06xxxxx")
.effectStartAt("00:00")
.effectEndAt("23:59")
.build());
}
}
resources:
cloudMonitorRuleDemo:
type: bytepluscc:cloudmonitor:Rule
name: CloudMonitorRuleDemo
properties:
ruleName: CloudMonitorRuleDemo
description: this is a description
ruleType: static
namespace: VCM_AgentKitMcp
subNamespace: MCP_Service
originalDimensions:
key: ResourceID
values:
- '*'
level: warning
evaluationCount: 1
enableState: enable
regions:
- cn-beijing
multipleConditions: false
noData:
enable: false
evaluation_count: 4
levelConditions:
- level: warning
conditions:
- metricName: istio_requests_total
statistics: sum
comparisonOperator: '>'
threshold: '100000'
metricUnit: Count
conditions:
- metric_name: istio_requests_total
statistics: sum
comparison_operator: '>'
threshold: '100000'
metric_unit: Count
conditionOperator: '&&'
silenceTime: 5
recoveryNotify:
enable: true
projectName: default
tags:
- key: env
value: test
alertMethods:
- Email
- Webhook
webhookIds:
- 2005838xxxxx67xxxxx
contactGroupIds:
- 20041xxxxxx06xxxxx
effectStartAt: 00:00
effectEndAt: 23:59
pulumi {
required_providers {
bytepluscc = {
source = "pulumi/bytepluscc"
}
}
}
resource "bytepluscc_cloudmonitor_rule" "CloudMonitorRuleDemo" {
rule_name = "CloudMonitorRuleDemo"
description = "this is a description"
rule_type = "static"
namespace = "VCM_AgentKitMcp"
sub_namespace = "MCP_Service"
original_dimensions = {
key = "ResourceID"
values = ["*"]
}
level = "warning"
evaluation_count = 1
enable_state = "enable"
regions = ["cn-beijing"]
multiple_conditions = false
no_data = {
enable = false
evaluation_count = 4
}
level_conditions {
level = "warning"
conditions {
metric_name = "istio_requests_total"
statistics = "sum"
comparison_operator = ">"
threshold = "100000"
metric_unit = "Count"
}
}
conditions {
metric_name = "istio_requests_total"
statistics = "sum"
comparison_operator = ">"
threshold = "100000"
metric_unit = "Count"
}
condition_operator = "&&"
silence_time = 5
recovery_notify = {
enable = true
}
project_name = "default"
tags {
key = "env"
value = "test"
}
alert_methods = ["Email", "Webhook"]
webhook_ids = ["2005838xxxxx67xxxxx"]
contact_group_ids = ["20041xxxxxx06xxxxx"]
effect_start_at = "00:00"
effect_end_at = "23:59"
}
Create Rule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Rule(name: string, args: RuleArgs, opts?: CustomResourceOptions);@overload
def Rule(resource_name: str,
args: RuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Rule(resource_name: str,
opts: Optional[ResourceOptions] = None,
rule_name: Optional[str] = None,
silence_time: Optional[int] = None,
sub_namespace: Optional[str] = None,
namespace: Optional[str] = None,
rule_type: Optional[str] = None,
level: Optional[str] = None,
effect_end_at: Optional[str] = None,
effect_start_at: Optional[str] = None,
enable_state: Optional[str] = None,
evaluation_count: Optional[int] = None,
recovery_notify: Optional[RuleRecoveryNotifyArgs] = None,
regions: Optional[Sequence[str]] = None,
project_name: Optional[str] = None,
multiple_conditions: Optional[bool] = None,
description: Optional[str] = None,
notification_id: Optional[str] = None,
notify_templates: Optional[Sequence[RuleNotifyTemplateArgs]] = None,
dimension_conditions: Optional[RuleDimensionConditionsArgs] = None,
level_conditions: Optional[Sequence[RuleLevelConditionArgs]] = None,
original_dimensions: Optional[RuleOriginalDimensionsArgs] = None,
condition_operator: Optional[str] = None,
alert_methods: Optional[Sequence[str]] = None,
no_data: Optional[RuleNoDataArgs] = None,
contact_group_ids: Optional[Sequence[str]] = None,
conditions: Optional[Sequence[RuleConditionArgs]] = None,
tags: Optional[Sequence[RuleTagArgs]] = None,
webhook: Optional[str] = None,
webhook_ids: Optional[Sequence[str]] = None)func NewRule(ctx *Context, name string, args RuleArgs, opts ...ResourceOption) (*Rule, error)public Rule(string name, RuleArgs args, CustomResourceOptions? opts = null)type: bytepluscc:cloudmonitor:Rule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "bytepluscc_cloudmonitor_rule" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args RuleArgs
- 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 RuleArgs
- 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 RuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RuleArgs
- 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 exampleruleResourceResourceFromCloudmonitorrule = new Bytepluscc.Cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule", new()
{
RuleName = "string",
SilenceTime = 0,
SubNamespace = "string",
Namespace = "string",
RuleType = "string",
Level = "string",
EffectEndAt = "string",
EffectStartAt = "string",
EnableState = "string",
EvaluationCount = 0,
RecoveryNotify = new Bytepluscc.Cloudmonitor.Inputs.RuleRecoveryNotifyArgs
{
Enable = false,
},
Regions = new[]
{
"string",
},
ProjectName = "string",
MultipleConditions = false,
Description = "string",
NotificationId = "string",
NotifyTemplates = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleNotifyTemplateArgs
{
Channel = "string",
NotifyTemplateId = "string",
},
},
DimensionConditions = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsArgs
{
MetaCondition = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsMetaConditionArgs
{
AllDimensions = false,
Condition = "string",
Metas = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsMetaConditionMetaArgs
{
Comparator = "string",
Key = "string",
Values = new[]
{
"string",
},
},
},
},
ProjectCondition = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsProjectConditionArgs
{
Projects = new[]
{
"string",
},
},
TagCondition = new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsTagConditionArgs
{
Condition = "string",
Tags = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleDimensionConditionsTagConditionTagArgs
{
Comparator = "string",
Key = "string",
Values = new[]
{
"string",
},
},
},
},
Type = "string",
},
LevelConditions = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionArgs
{
Conditions = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleLevelConditionConditionArgs
{
ComparisonOperator = "string",
DisplayName = "string",
MetricName = "string",
MetricUnit = "string",
Period = "string",
Statistics = "string",
Threshold = "string",
},
},
Level = "string",
},
},
OriginalDimensions = new Bytepluscc.Cloudmonitor.Inputs.RuleOriginalDimensionsArgs
{
Key = "string",
Values = new[]
{
"string",
},
},
ConditionOperator = "string",
AlertMethods = new[]
{
"string",
},
NoData = new Bytepluscc.Cloudmonitor.Inputs.RuleNoDataArgs
{
Enable = false,
EvaluationCount = 0,
},
ContactGroupIds = new[]
{
"string",
},
Conditions = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleConditionArgs
{
ComparisonOperator = "string",
MetricName = "string",
MetricUnit = "string",
Period = "string",
Statistics = "string",
Threshold = "string",
},
},
Tags = new[]
{
new Bytepluscc.Cloudmonitor.Inputs.RuleTagArgs
{
Key = "string",
Value = "string",
},
},
Webhook = "string",
WebhookIds = new[]
{
"string",
},
});
example, err := cloudmonitor.NewRule(ctx, "exampleruleResourceResourceFromCloudmonitorrule", &cloudmonitor.RuleArgs{
RuleName: pulumi.String("string"),
SilenceTime: pulumi.Int(0),
SubNamespace: pulumi.String("string"),
Namespace: pulumi.String("string"),
RuleType: pulumi.String("string"),
Level: pulumi.String("string"),
EffectEndAt: pulumi.String("string"),
EffectStartAt: pulumi.String("string"),
EnableState: pulumi.String("string"),
EvaluationCount: pulumi.Int(0),
RecoveryNotify: &cloudmonitor.RuleRecoveryNotifyArgs{
Enable: pulumi.Bool(false),
},
Regions: pulumi.StringArray{
pulumi.String("string"),
},
ProjectName: pulumi.String("string"),
MultipleConditions: pulumi.Bool(false),
Description: pulumi.String("string"),
NotificationId: pulumi.String("string"),
NotifyTemplates: cloudmonitor.RuleNotifyTemplateArray{
&cloudmonitor.RuleNotifyTemplateArgs{
Channel: pulumi.String("string"),
NotifyTemplateId: pulumi.String("string"),
},
},
DimensionConditions: &cloudmonitor.RuleDimensionConditionsArgs{
MetaCondition: &cloudmonitor.RuleDimensionConditionsMetaConditionArgs{
AllDimensions: pulumi.Bool(false),
Condition: pulumi.String("string"),
Metas: cloudmonitor.RuleDimensionConditionsMetaConditionMetaArray{
&cloudmonitor.RuleDimensionConditionsMetaConditionMetaArgs{
Comparator: pulumi.String("string"),
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
ProjectCondition: &cloudmonitor.RuleDimensionConditionsProjectConditionArgs{
Projects: pulumi.StringArray{
pulumi.String("string"),
},
},
TagCondition: &cloudmonitor.RuleDimensionConditionsTagConditionArgs{
Condition: pulumi.String("string"),
Tags: cloudmonitor.RuleDimensionConditionsTagConditionTagArray{
&cloudmonitor.RuleDimensionConditionsTagConditionTagArgs{
Comparator: pulumi.String("string"),
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
Type: pulumi.String("string"),
},
LevelConditions: cloudmonitor.RuleLevelConditionArray{
&cloudmonitor.RuleLevelConditionArgs{
Conditions: cloudmonitor.RuleLevelConditionConditionArray{
&cloudmonitor.RuleLevelConditionConditionArgs{
ComparisonOperator: pulumi.String("string"),
DisplayName: pulumi.String("string"),
MetricName: pulumi.String("string"),
MetricUnit: pulumi.String("string"),
Period: pulumi.String("string"),
Statistics: pulumi.String("string"),
Threshold: pulumi.String("string"),
},
},
Level: pulumi.String("string"),
},
},
OriginalDimensions: &cloudmonitor.RuleOriginalDimensionsArgs{
Key: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
ConditionOperator: pulumi.String("string"),
AlertMethods: pulumi.StringArray{
pulumi.String("string"),
},
NoData: &cloudmonitor.RuleNoDataArgs{
Enable: pulumi.Bool(false),
EvaluationCount: pulumi.Int(0),
},
ContactGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Conditions: cloudmonitor.RuleConditionArray{
&cloudmonitor.RuleConditionArgs{
ComparisonOperator: pulumi.String("string"),
MetricName: pulumi.String("string"),
MetricUnit: pulumi.String("string"),
Period: pulumi.String("string"),
Statistics: pulumi.String("string"),
Threshold: pulumi.String("string"),
},
},
Tags: cloudmonitor.RuleTagArray{
&cloudmonitor.RuleTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Webhook: pulumi.String("string"),
WebhookIds: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "bytepluscc_cloudmonitor_rule" "exampleruleResourceResourceFromCloudmonitorrule" {
lifecycle {
create_before_destroy = true
}
rule_name = "string"
silence_time = 0
sub_namespace = "string"
namespace = "string"
rule_type = "string"
level = "string"
effect_end_at = "string"
effect_start_at = "string"
enable_state = "string"
evaluation_count = 0
recovery_notify = {
enable = false
}
regions = ["string"]
project_name = "string"
multiple_conditions = false
description = "string"
notification_id = "string"
notify_templates {
channel = "string"
notify_template_id = "string"
}
dimension_conditions = {
meta_condition = {
all_dimensions = false
condition = "string"
metas = [{
comparator = "string"
key = "string"
values = ["string"]
}]
}
project_condition = {
projects = ["string"]
}
tag_condition = {
condition = "string"
tags = [{
comparator = "string"
key = "string"
values = ["string"]
}]
}
type = "string"
}
level_conditions {
conditions {
comparison_operator = "string"
display_name = "string"
metric_name = "string"
metric_unit = "string"
period = "string"
statistics = "string"
threshold = "string"
}
level = "string"
}
original_dimensions = {
key = "string"
values = ["string"]
}
condition_operator = "string"
alert_methods = ["string"]
no_data = {
enable = false
evaluation_count = 0
}
contact_group_ids = ["string"]
conditions {
comparison_operator = "string"
metric_name = "string"
metric_unit = "string"
period = "string"
statistics = "string"
threshold = "string"
}
tags {
key = "string"
value = "string"
}
webhook = "string"
webhook_ids = ["string"]
}
var exampleruleResourceResourceFromCloudmonitorrule = new com.byteplus.bytepluscc.cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule", com.byteplus.bytepluscc.cloudmonitor.RuleArgs.builder()
.ruleName("string")
.silenceTime(0)
.subNamespace("string")
.namespace("string")
.ruleType("string")
.level("string")
.effectEndAt("string")
.effectStartAt("string")
.enableState("string")
.evaluationCount(0)
.recoveryNotify(RuleRecoveryNotifyArgs.builder()
.enable(false)
.build())
.regions("string")
.projectName("string")
.multipleConditions(false)
.description("string")
.notificationId("string")
.notifyTemplates(RuleNotifyTemplateArgs.builder()
.channel("string")
.notifyTemplateId("string")
.build())
.dimensionConditions(RuleDimensionConditionsArgs.builder()
.metaCondition(RuleDimensionConditionsMetaConditionArgs.builder()
.allDimensions(false)
.condition("string")
.metas(RuleDimensionConditionsMetaConditionMetaArgs.builder()
.comparator("string")
.key("string")
.values("string")
.build())
.build())
.projectCondition(RuleDimensionConditionsProjectConditionArgs.builder()
.projects("string")
.build())
.tagCondition(RuleDimensionConditionsTagConditionArgs.builder()
.condition("string")
.tags(RuleDimensionConditionsTagConditionTagArgs.builder()
.comparator("string")
.key("string")
.values("string")
.build())
.build())
.type("string")
.build())
.levelConditions(RuleLevelConditionArgs.builder()
.conditions(RuleLevelConditionConditionArgs.builder()
.comparisonOperator("string")
.displayName("string")
.metricName("string")
.metricUnit("string")
.period("string")
.statistics("string")
.threshold("string")
.build())
.level("string")
.build())
.originalDimensions(RuleOriginalDimensionsArgs.builder()
.key("string")
.values("string")
.build())
.conditionOperator("string")
.alertMethods("string")
.noData(RuleNoDataArgs.builder()
.enable(false)
.evaluationCount(0)
.build())
.contactGroupIds("string")
.conditions(RuleConditionArgs.builder()
.comparisonOperator("string")
.metricName("string")
.metricUnit("string")
.period("string")
.statistics("string")
.threshold("string")
.build())
.tags(com.pulumi.bytepluscc.cloudmonitor.inputs.RuleTagArgs.builder()
.key("string")
.value("string")
.build())
.webhook("string")
.webhookIds("string")
.build());
examplerule_resource_resource_from_cloudmonitorrule = bytepluscc.cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule",
rule_name="string",
silence_time=0,
sub_namespace="string",
namespace="string",
rule_type="string",
level="string",
effect_end_at="string",
effect_start_at="string",
enable_state="string",
evaluation_count=0,
recovery_notify={
"enable": False,
},
regions=["string"],
project_name="string",
multiple_conditions=False,
description="string",
notification_id="string",
notify_templates=[{
"channel": "string",
"notify_template_id": "string",
}],
dimension_conditions={
"meta_condition": {
"all_dimensions": False,
"condition": "string",
"metas": [{
"comparator": "string",
"key": "string",
"values": ["string"],
}],
},
"project_condition": {
"projects": ["string"],
},
"tag_condition": {
"condition": "string",
"tags": [{
"comparator": "string",
"key": "string",
"values": ["string"],
}],
},
"type": "string",
},
level_conditions=[{
"conditions": [{
"comparison_operator": "string",
"display_name": "string",
"metric_name": "string",
"metric_unit": "string",
"period": "string",
"statistics": "string",
"threshold": "string",
}],
"level": "string",
}],
original_dimensions={
"key": "string",
"values": ["string"],
},
condition_operator="string",
alert_methods=["string"],
no_data={
"enable": False,
"evaluation_count": 0,
},
contact_group_ids=["string"],
conditions=[{
"comparison_operator": "string",
"metric_name": "string",
"metric_unit": "string",
"period": "string",
"statistics": "string",
"threshold": "string",
}],
tags=[{
"key": "string",
"value": "string",
}],
webhook="string",
webhook_ids=["string"])
const exampleruleResourceResourceFromCloudmonitorrule = new bytepluscc.cloudmonitor.Rule("exampleruleResourceResourceFromCloudmonitorrule", {
ruleName: "string",
silenceTime: 0,
subNamespace: "string",
namespace: "string",
ruleType: "string",
level: "string",
effectEndAt: "string",
effectStartAt: "string",
enableState: "string",
evaluationCount: 0,
recoveryNotify: {
enable: false,
},
regions: ["string"],
projectName: "string",
multipleConditions: false,
description: "string",
notificationId: "string",
notifyTemplates: [{
channel: "string",
notifyTemplateId: "string",
}],
dimensionConditions: {
metaCondition: {
allDimensions: false,
condition: "string",
metas: [{
comparator: "string",
key: "string",
values: ["string"],
}],
},
projectCondition: {
projects: ["string"],
},
tagCondition: {
condition: "string",
tags: [{
comparator: "string",
key: "string",
values: ["string"],
}],
},
type: "string",
},
levelConditions: [{
conditions: [{
comparisonOperator: "string",
displayName: "string",
metricName: "string",
metricUnit: "string",
period: "string",
statistics: "string",
threshold: "string",
}],
level: "string",
}],
originalDimensions: {
key: "string",
values: ["string"],
},
conditionOperator: "string",
alertMethods: ["string"],
noData: {
enable: false,
evaluationCount: 0,
},
contactGroupIds: ["string"],
conditions: [{
comparisonOperator: "string",
metricName: "string",
metricUnit: "string",
period: "string",
statistics: "string",
threshold: "string",
}],
tags: [{
key: "string",
value: "string",
}],
webhook: "string",
webhookIds: ["string"],
});
type: bytepluscc:cloudmonitor:Rule
properties:
alertMethods:
- string
conditionOperator: string
conditions:
- comparisonOperator: string
metricName: string
metricUnit: string
period: string
statistics: string
threshold: string
contactGroupIds:
- string
description: string
dimensionConditions:
metaCondition:
allDimensions: false
condition: string
metas:
- comparator: string
key: string
values:
- string
projectCondition:
projects:
- string
tagCondition:
condition: string
tags:
- comparator: string
key: string
values:
- string
type: string
effectEndAt: string
effectStartAt: string
enableState: string
evaluationCount: 0
level: string
levelConditions:
- conditions:
- comparisonOperator: string
displayName: string
metricName: string
metricUnit: string
period: string
statistics: string
threshold: string
level: string
multipleConditions: false
namespace: string
noData:
enable: false
evaluationCount: 0
notificationId: string
notifyTemplates:
- channel: string
notifyTemplateId: string
originalDimensions:
key: string
values:
- string
projectName: string
recoveryNotify:
enable: false
regions:
- string
ruleName: string
ruleType: string
silenceTime: 0
subNamespace: string
tags:
- key: string
value: string
webhook: string
webhookIds:
- string
Rule 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 Rule resource accepts the following input properties:
- Effect
End stringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- Effect
Start stringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- Enable
State string - Alert policy status. enable: enabled, disable: disabled
- Evaluation
Count int - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- Level string
- Alert level. critical: critical, warning: warning, notice: notification
- Namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- Rule
Name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- Rule
Type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- Silence
Time int - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- Sub
Namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- Alert
Methods List<string> - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- Condition
Operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- Conditions
List<Byteplus.
Rule Condition> - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Contact
Group List<string>Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- Description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- Dimension
Conditions Byteplus.Rule Dimension Conditions - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- Level
Conditions List<Byteplus.Rule Level Condition> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Multiple
Conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- No
Data Byteplus.Rule No Data - No data alert.
- Notification
Id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- Notify
Templates List<Byteplus.Rule Notify Template> - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Original
Dimensions Byteplus.Rule Original Dimensions - Resource ID detected by the alert policy.
- Project
Name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- Recovery
Notify Byteplus.Rule Recovery Notify - Alert recovery notification.
- Regions List<string>
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
-
List<Byteplus.
Rule Tag> - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Webhook string
- Alarm callback URL bound to the alarm policy.
- Webhook
Ids List<string> - Alarm callback ID list when an alarm occurs.
- Effect
End stringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- Effect
Start stringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- Enable
State string - Alert policy status. enable: enabled, disable: disabled
- Evaluation
Count int - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- Level string
- Alert level. critical: critical, warning: warning, notice: notification
- Namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- Rule
Name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- Rule
Type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- Silence
Time int - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- Sub
Namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- Alert
Methods []string - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- Condition
Operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- Conditions
[]Rule
Condition Args - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Contact
Group []stringIds - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- Description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- Dimension
Conditions RuleDimension Conditions Args - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- Level
Conditions []RuleLevel Condition Args - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Multiple
Conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- No
Data RuleNo Data Args - No data alert.
- Notification
Id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- Notify
Templates []RuleNotify Template Args - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Original
Dimensions RuleOriginal Dimensions Args - Resource ID detected by the alert policy.
- Project
Name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- Recovery
Notify RuleRecovery Notify Args - Alert recovery notification.
- Regions []string
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
-
[]Rule
Tag Args - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Webhook string
- Alarm callback URL bound to the alarm policy.
- Webhook
Ids []string - Alarm callback ID list when an alarm occurs.
- effect_
end_ stringat - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect_
start_ stringat - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable_
state string - Alert policy status. enable: enabled, disable: disabled
- evaluation_
count number - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level string
- Alert level. critical: critical, warning: warning, notice: notification
- namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- rule_
name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule_
type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence_
time number - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub_
namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- alert_
methods list(string) - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- condition_
operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions list(object)
- Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact_
group_ list(string)ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension_
conditions object - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- level_
conditions list(object) - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple_
conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- no_
data object - No data alert.
- notification_
id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify_
templates list(object) - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original_
dimensions object - Resource ID detected by the alert policy.
- project_
name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery_
notify object - Alert recovery notification.
- regions list(string)
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- list(object)
- Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- webhook string
- Alarm callback URL bound to the alarm policy.
- webhook_
ids list(string) - Alarm callback ID list when an alarm occurs.
- effect
End StringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect
Start StringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable
State String - Alert policy status. enable: enabled, disable: disabled
- evaluation
Count Integer - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level String
- Alert level. critical: critical, warning: warning, notice: notification
- namespace String
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- rule
Name String - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule
Type String - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence
Time Integer - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub
Namespace String - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- alert
Methods List<String> - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- condition
Operator String - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions
List<Rule
Condition> - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact
Group List<String>Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- description String
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension
Conditions RuleDimension Conditions - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- level
Conditions List<RuleLevel Condition> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple
Conditions Boolean - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- no
Data RuleNo Data - No data alert.
- notification
Id String - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify
Templates List<RuleNotify Template> - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original
Dimensions RuleOriginal Dimensions - Resource ID detected by the alert policy.
- project
Name String - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery
Notify RuleRecovery Notify - Alert recovery notification.
- regions List<String>
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
-
List<Rule
Tag> - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- webhook String
- Alarm callback URL bound to the alarm policy.
- webhook
Ids List<String> - Alarm callback ID list when an alarm occurs.
- effect
End stringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect
Start stringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable
State string - Alert policy status. enable: enabled, disable: disabled
- evaluation
Count number - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level string
- Alert level. critical: critical, warning: warning, notice: notification
- namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- rule
Name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule
Type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence
Time number - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub
Namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- alert
Methods string[] - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- condition
Operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions
Rule
Condition[] - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact
Group string[]Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension
Conditions RuleDimension Conditions - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- level
Conditions RuleLevel Condition[] - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple
Conditions boolean - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- no
Data RuleNo Data - No data alert.
- notification
Id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify
Templates RuleNotify Template[] - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original
Dimensions RuleOriginal Dimensions - Resource ID detected by the alert policy.
- project
Name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery
Notify RuleRecovery Notify - Alert recovery notification.
- regions string[]
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
-
Rule
Tag[] - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- webhook string
- Alarm callback URL bound to the alarm policy.
- webhook
Ids string[] - Alarm callback ID list when an alarm occurs.
- effect_
end_ strat - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect_
start_ strat - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable_
state str - Alert policy status. enable: enabled, disable: disabled
- evaluation_
count int - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level str
- Alert level. critical: critical, warning: warning, notice: notification
- namespace str
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- rule_
name str - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule_
type str - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence_
time int - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub_
namespace str - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- alert_
methods Sequence[str] - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- condition_
operator str - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions
Sequence[Rule
Condition Args] - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact_
group_ Sequence[str]ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- description str
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension_
conditions RuleDimension Conditions Args - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- level_
conditions Sequence[RuleLevel Condition Args] - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple_
conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- no_
data RuleNo Data Args - No data alert.
- notification_
id str - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify_
templates Sequence[RuleNotify Template Args] - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original_
dimensions RuleOriginal Dimensions Args - Resource ID detected by the alert policy.
- project_
name str - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery_
notify RuleRecovery Notify Args - Alert recovery notification.
- regions Sequence[str]
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
-
Sequence[Rule
Tag Args] - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- webhook str
- Alarm callback URL bound to the alarm policy.
- webhook_
ids Sequence[str] - Alarm callback ID list when an alarm occurs.
- effect
End StringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect
Start StringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable
State String - Alert policy status. enable: enabled, disable: disabled
- evaluation
Count Number - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level String
- Alert level. critical: critical, warning: warning, notice: notification
- namespace String
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- rule
Name String - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule
Type String - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence
Time Number - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub
Namespace String - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- alert
Methods List<String> - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- condition
Operator String - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions List<Property Map>
- Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact
Group List<String>Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- description String
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension
Conditions Property Map - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- level
Conditions List<Property Map> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple
Conditions Boolean - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- no
Data Property Map - No data alert.
- notification
Id String - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify
Templates List<Property Map> - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original
Dimensions Property Map - Resource ID detected by the alert policy.
- project
Name String - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery
Notify Property Map - Alert recovery notification.
- regions List<String>
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- List<Property Map>
- Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- webhook String
- Alarm callback URL bound to the alarm policy.
- webhook
Ids List<String> - Alarm callback ID list when an alarm occurs.
Outputs
All input properties are implicitly available as output properties. Additionally, the Rule resource produces the following output properties:
- Alert
State string - Alert status. alerting: In alert; normal: Normal.
- Created
At string - Alert policy creation time, in timestamp format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Type string - Resource type detected by the alert policy.
- Rule
Id string - Alarm policy ID.
- Updated
At string - Alarm policy update time, in timestamp format.
- Alert
State string - Alert status. alerting: In alert; normal: Normal.
- Created
At string - Alert policy creation time, in timestamp format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Type string - Resource type detected by the alert policy.
- Rule
Id string - Alarm policy ID.
- Updated
At string - Alarm policy update time, in timestamp format.
- alert_
state string - Alert status. alerting: In alert; normal: Normal.
- created_
at string - Alert policy creation time, in timestamp format.
- id string
- The provider-assigned unique ID for this managed resource.
- resource_
type string - Resource type detected by the alert policy.
- rule_
id string - Alarm policy ID.
- updated_
at string - Alarm policy update time, in timestamp format.
- alert
State String - Alert status. alerting: In alert; normal: Normal.
- created
At String - Alert policy creation time, in timestamp format.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Type String - Resource type detected by the alert policy.
- rule
Id String - Alarm policy ID.
- updated
At String - Alarm policy update time, in timestamp format.
- alert
State string - Alert status. alerting: In alert; normal: Normal.
- created
At string - Alert policy creation time, in timestamp format.
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Type string - Resource type detected by the alert policy.
- rule
Id string - Alarm policy ID.
- updated
At string - Alarm policy update time, in timestamp format.
- alert_
state str - Alert status. alerting: In alert; normal: Normal.
- created_
at str - Alert policy creation time, in timestamp format.
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
type str - Resource type detected by the alert policy.
- rule_
id str - Alarm policy ID.
- updated_
at str - Alarm policy update time, in timestamp format.
- alert
State String - Alert status. alerting: In alert; normal: Normal.
- created
At String - Alert policy creation time, in timestamp format.
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Type String - Resource type detected by the alert policy.
- rule
Id String - Alarm policy ID.
- updated
At String - Alarm policy update time, in timestamp format.
Look up Existing Rule Resource
Get an existing Rule 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?: RuleState, opts?: CustomResourceOptions): Rule@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_methods: Optional[Sequence[str]] = None,
alert_state: Optional[str] = None,
condition_operator: Optional[str] = None,
conditions: Optional[Sequence[RuleConditionArgs]] = None,
contact_group_ids: Optional[Sequence[str]] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
dimension_conditions: Optional[RuleDimensionConditionsArgs] = None,
effect_end_at: Optional[str] = None,
effect_start_at: Optional[str] = None,
enable_state: Optional[str] = None,
evaluation_count: Optional[int] = None,
level: Optional[str] = None,
level_conditions: Optional[Sequence[RuleLevelConditionArgs]] = None,
multiple_conditions: Optional[bool] = None,
namespace: Optional[str] = None,
no_data: Optional[RuleNoDataArgs] = None,
notification_id: Optional[str] = None,
notify_templates: Optional[Sequence[RuleNotifyTemplateArgs]] = None,
original_dimensions: Optional[RuleOriginalDimensionsArgs] = None,
project_name: Optional[str] = None,
recovery_notify: Optional[RuleRecoveryNotifyArgs] = None,
regions: Optional[Sequence[str]] = None,
resource_type: Optional[str] = None,
rule_id: Optional[str] = None,
rule_name: Optional[str] = None,
rule_type: Optional[str] = None,
silence_time: Optional[int] = None,
sub_namespace: Optional[str] = None,
tags: Optional[Sequence[RuleTagArgs]] = None,
updated_at: Optional[str] = None,
webhook: Optional[str] = None,
webhook_ids: Optional[Sequence[str]] = None) -> Rulefunc GetRule(ctx *Context, name string, id IDInput, state *RuleState, opts ...ResourceOption) (*Rule, error)public static Rule Get(string name, Input<string> id, RuleState? state, CustomResourceOptions? opts = null)public static Rule get(String name, Output<String> id, RuleState state, CustomResourceOptions options)resources: _: type: bytepluscc:cloudmonitor:Rule get: id: ${id}import {
to = bytepluscc_cloudmonitor_rule.example
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.
- Alert
Methods List<string> - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- Alert
State string - Alert status. alerting: In alert; normal: Normal.
- Condition
Operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- Conditions
List<Byteplus.
Rule Condition> - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Contact
Group List<string>Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- Created
At string - Alert policy creation time, in timestamp format.
- Description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- Dimension
Conditions Byteplus.Rule Dimension Conditions - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- Effect
End stringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- Effect
Start stringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- Enable
State string - Alert policy status. enable: enabled, disable: disabled
- Evaluation
Count int - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- Level string
- Alert level. critical: critical, warning: warning, notice: notification
- Level
Conditions List<Byteplus.Rule Level Condition> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Multiple
Conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- Namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- No
Data Byteplus.Rule No Data - No data alert.
- Notification
Id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- Notify
Templates List<Byteplus.Rule Notify Template> - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Original
Dimensions Byteplus.Rule Original Dimensions - Resource ID detected by the alert policy.
- Project
Name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- Recovery
Notify Byteplus.Rule Recovery Notify - Alert recovery notification.
- Regions List<string>
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- Resource
Type string - Resource type detected by the alert policy.
- Rule
Id string - Alarm policy ID.
- Rule
Name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- Rule
Type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- Silence
Time int - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- Sub
Namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
-
List<Byteplus.
Rule Tag> - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Updated
At string - Alarm policy update time, in timestamp format.
- Webhook string
- Alarm callback URL bound to the alarm policy.
- Webhook
Ids List<string> - Alarm callback ID list when an alarm occurs.
- Alert
Methods []string - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- Alert
State string - Alert status. alerting: In alert; normal: Normal.
- Condition
Operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- Conditions
[]Rule
Condition Args - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Contact
Group []stringIds - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- Created
At string - Alert policy creation time, in timestamp format.
- Description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- Dimension
Conditions RuleDimension Conditions Args - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- Effect
End stringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- Effect
Start stringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- Enable
State string - Alert policy status. enable: enabled, disable: disabled
- Evaluation
Count int - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- Level string
- Alert level. critical: critical, warning: warning, notice: notification
- Level
Conditions []RuleLevel Condition Args - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Multiple
Conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- Namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- No
Data RuleNo Data Args - No data alert.
- Notification
Id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- Notify
Templates []RuleNotify Template Args - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Original
Dimensions RuleOriginal Dimensions Args - Resource ID detected by the alert policy.
- Project
Name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- Recovery
Notify RuleRecovery Notify Args - Alert recovery notification.
- Regions []string
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- Resource
Type string - Resource type detected by the alert policy.
- Rule
Id string - Alarm policy ID.
- Rule
Name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- Rule
Type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- Silence
Time int - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- Sub
Namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
-
[]Rule
Tag Args - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Updated
At string - Alarm policy update time, in timestamp format.
- Webhook string
- Alarm callback URL bound to the alarm policy.
- Webhook
Ids []string - Alarm callback ID list when an alarm occurs.
- alert_
methods list(string) - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- alert_
state string - Alert status. alerting: In alert; normal: Normal.
- condition_
operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions list(object)
- Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact_
group_ list(string)ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- created_
at string - Alert policy creation time, in timestamp format.
- description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension_
conditions object - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- effect_
end_ stringat - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect_
start_ stringat - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable_
state string - Alert policy status. enable: enabled, disable: disabled
- evaluation_
count number - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level string
- Alert level. critical: critical, warning: warning, notice: notification
- level_
conditions list(object) - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple_
conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- no_
data object - No data alert.
- notification_
id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify_
templates list(object) - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original_
dimensions object - Resource ID detected by the alert policy.
- project_
name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery_
notify object - Alert recovery notification.
- regions list(string)
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- resource_
type string - Resource type detected by the alert policy.
- rule_
id string - Alarm policy ID.
- rule_
name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule_
type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence_
time number - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub_
namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- list(object)
- Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- updated_
at string - Alarm policy update time, in timestamp format.
- webhook string
- Alarm callback URL bound to the alarm policy.
- webhook_
ids list(string) - Alarm callback ID list when an alarm occurs.
- alert
Methods List<String> - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- alert
State String - Alert status. alerting: In alert; normal: Normal.
- condition
Operator String - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions
List<Rule
Condition> - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact
Group List<String>Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- created
At String - Alert policy creation time, in timestamp format.
- description String
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension
Conditions RuleDimension Conditions - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- effect
End StringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect
Start StringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable
State String - Alert policy status. enable: enabled, disable: disabled
- evaluation
Count Integer - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level String
- Alert level. critical: critical, warning: warning, notice: notification
- level
Conditions List<RuleLevel Condition> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple
Conditions Boolean - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- namespace String
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- no
Data RuleNo Data - No data alert.
- notification
Id String - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify
Templates List<RuleNotify Template> - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original
Dimensions RuleOriginal Dimensions - Resource ID detected by the alert policy.
- project
Name String - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery
Notify RuleRecovery Notify - Alert recovery notification.
- regions List<String>
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- resource
Type String - Resource type detected by the alert policy.
- rule
Id String - Alarm policy ID.
- rule
Name String - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule
Type String - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence
Time Integer - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub
Namespace String - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
-
List<Rule
Tag> - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- updated
At String - Alarm policy update time, in timestamp format.
- webhook String
- Alarm callback URL bound to the alarm policy.
- webhook
Ids List<String> - Alarm callback ID list when an alarm occurs.
- alert
Methods string[] - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- alert
State string - Alert status. alerting: In alert; normal: Normal.
- condition
Operator string - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions
Rule
Condition[] - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact
Group string[]Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- created
At string - Alert policy creation time, in timestamp format.
- description string
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension
Conditions RuleDimension Conditions - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- effect
End stringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect
Start stringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable
State string - Alert policy status. enable: enabled, disable: disabled
- evaluation
Count number - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level string
- Alert level. critical: critical, warning: warning, notice: notification
- level
Conditions RuleLevel Condition[] - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple
Conditions boolean - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- namespace string
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- no
Data RuleNo Data - No data alert.
- notification
Id string - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify
Templates RuleNotify Template[] - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original
Dimensions RuleOriginal Dimensions - Resource ID detected by the alert policy.
- project
Name string - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery
Notify RuleRecovery Notify - Alert recovery notification.
- regions string[]
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- resource
Type string - Resource type detected by the alert policy.
- rule
Id string - Alarm policy ID.
- rule
Name string - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule
Type string - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence
Time number - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub
Namespace string - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
-
Rule
Tag[] - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- updated
At string - Alarm policy update time, in timestamp format.
- webhook string
- Alarm callback URL bound to the alarm policy.
- webhook
Ids string[] - Alarm callback ID list when an alarm occurs.
- alert_
methods Sequence[str] - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- alert_
state str - Alert status. alerting: In alert; normal: Normal.
- condition_
operator str - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions
Sequence[Rule
Condition Args] - Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact_
group_ Sequence[str]ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- created_
at str - Alert policy creation time, in timestamp format.
- description str
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension_
conditions RuleDimension Conditions Args - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- effect_
end_ strat - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect_
start_ strat - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable_
state str - Alert policy status. enable: enabled, disable: disabled
- evaluation_
count int - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level str
- Alert level. critical: critical, warning: warning, notice: notification
- level_
conditions Sequence[RuleLevel Condition Args] - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple_
conditions bool - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- namespace str
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- no_
data RuleNo Data Args - No data alert.
- notification_
id str - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify_
templates Sequence[RuleNotify Template Args] - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original_
dimensions RuleOriginal Dimensions Args - Resource ID detected by the alert policy.
- project_
name str - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery_
notify RuleRecovery Notify Args - Alert recovery notification.
- regions Sequence[str]
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- resource_
type str - Resource type detected by the alert policy.
- rule_
id str - Alarm policy ID.
- rule_
name str - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule_
type str - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence_
time int - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub_
namespace str - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
-
Sequence[Rule
Tag Args] - Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- updated_
at str - Alarm policy update time, in timestamp format.
- webhook str
- Alarm callback URL bound to the alarm policy.
- webhook_
ids Sequence[str] - Alarm callback ID list when an alarm occurs.
- alert
Methods List<String> - Alert notification method. Email: email, Phone: phone, SMS: SMS, Webhook: webhook callback.
- alert
State String - Alert status. alerting: In alert; normal: Normal.
- condition
Operator String - Multi-metric determination condition. &&: Alert is triggered only if all metrics meet the condition; ||: Alert is triggered if any metric meets the condition.
- conditions List<Property Map>
- Alert conditions. Array format; supports multiple metric evaluation statements, up to 10. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- contact
Group List<String>Ids - When AlertMethods is set to Email, Phone, or SMS, specify the alert contact group ID. You can call the ListContactGroups API to obtain the contact group ID. Note: Up to 5 contact groups can be configured.
- created
At String - Alert policy creation time, in timestamp format.
- description String
- Alert policy description information. Cannot start with a digit, hyphen, or Chinese symbol. Only Chinese characters, letters, digits, underscore _, hyphen -, and Chinese symbols are allowed. Length must be between 0 and 255 characters.
- dimension
Conditions Property Map - Dimension configuration. Only valid when RuleType is set to dynamic. Supports three matching methods: project, tag, and meta.
- effect
End StringAt - End time for the alert policy to take effect, in HH:MM format, for example: 23:59. Note: EffectEndAt must be later than EffectStartAt.
- effect
Start StringAt - Start time for the alert policy to take effect, in HH:MM format, for example: 00:00.
- enable
State String - Alert policy status. enable: enabled, disable: disabled
- evaluation
Count Number - Duration required to trigger an alert. Unit: minutes. Supported values: 1, 3, 5, 10, 15, 30, 60, 120.
- level String
- Alert level. critical: critical, warning: warning, notice: notification
- level
Conditions List<Property Map> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- multiple
Conditions Boolean - Does the alert policy use multiple metrics? true: multiple metrics, false: single metric (default).
- namespace String
- The cloud product to which the monitoring metric of this policy belongs. For details, see Namespace for each product under Cloud Product Monitoring Metrics.
- no
Data Property Map - No data alert.
- notification
Id String - Notification policy ID. You can call the ListNotifications API to obtain the notification policy ID. Note: This parameter has higher priority than AlertMethods. When you specify the alert notification policy ID using this parameter, other alert notification configurations (AlertMethods, ContactGroupIds, WebhookIds, EffectStartAt, EffectEndAt, etc.) will become invalid.
- notify
Templates List<Property Map> - Notification template configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- original
Dimensions Property Map - Resource ID detected by the alert policy.
- project
Name String - Project name to which the alert policy belongs. If not specified, it defaults to the default project.
- recovery
Notify Property Map - Alert recovery notification.
- regions List<String>
- Availability Zone ID of the cloud product. When RuleType is static, only one Availability Zone ID can be configured. When RuleType is dynamic, multiple Availability Zone IDs can be configured. Separate multiple Availability Zone IDs with commas. Note: If set to ALL, all availability zones of the cloud product are selected.
- resource
Type String - Resource type detected by the alert policy.
- rule
Id String - Alarm policy ID.
- rule
Name String - Alert policy name. Length must be between 1 and 128 characters. Cannot start with a digit or hyphen -.
- rule
Type String - Alert policy type. static: manual selection, dynamic: select by resource name, project, and tag.
- silence
Time Number - Alert sending interval, in minutes. Supported values: 5, 10, 15, 30, 60, 180, 360, 720, 1440.
- sub
Namespace String - Dimension of the metric referenced by this policy. For details, see SubNamespace for each product in Cloud Product Monitoring Metrics.
- List<Property Map>
- Bind alert policy to Tag. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- updated
At String - Alarm policy update time, in timestamp format.
- webhook String
- Alarm callback URL bound to the alarm policy.
- webhook
Ids List<String> - Alarm callback ID list when an alarm occurs.
Supporting Types
RuleCondition, RuleConditionArgs
- Comparison
Operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- Metric
Name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- Metric
Unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- Period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- Statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- Threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- Comparison
Operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- Metric
Name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- Metric
Unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- Period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- Statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- Threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison_
operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- metric_
name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric_
unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison
Operator String - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- metric
Name String - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric
Unit String - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period String
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics String
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold String
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison
Operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- metric
Name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric
Unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison_
operator str - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- metric_
name str - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric_
unit str - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period str
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics str
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold str
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison
Operator String - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- metric
Name String - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric
Unit String - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period String
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics String
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold String
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
RuleDimensionConditions, RuleDimensionConditionsArgs
- Meta
Condition Byteplus.Rule Dimension Conditions Meta Condition - Condition for selecting alert objects based on resource name. Required when Type is meta.
- Project
Condition Byteplus.Rule Dimension Conditions Project Condition - Condition for selecting alert targets by project. Required when Type is project.
- Tag
Condition Byteplus.Rule Dimension Conditions Tag Condition - Condition for selecting alert objects by tag. Required when Type is tag.
- Type string
- Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
- Meta
Condition RuleDimension Conditions Meta Condition - Condition for selecting alert objects based on resource name. Required when Type is meta.
- Project
Condition RuleDimension Conditions Project Condition - Condition for selecting alert targets by project. Required when Type is project.
- Tag
Condition RuleDimension Conditions Tag Condition - Condition for selecting alert objects by tag. Required when Type is tag.
- Type string
- Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
- meta_
condition object - Condition for selecting alert objects based on resource name. Required when Type is meta.
- project_
condition object - Condition for selecting alert targets by project. Required when Type is project.
- tag_
condition object - Condition for selecting alert objects by tag. Required when Type is tag.
- type string
- Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
- meta
Condition RuleDimension Conditions Meta Condition - Condition for selecting alert objects based on resource name. Required when Type is meta.
- project
Condition RuleDimension Conditions Project Condition - Condition for selecting alert targets by project. Required when Type is project.
- tag
Condition RuleDimension Conditions Tag Condition - Condition for selecting alert objects by tag. Required when Type is tag.
- type String
- Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
- meta
Condition RuleDimension Conditions Meta Condition - Condition for selecting alert objects based on resource name. Required when Type is meta.
- project
Condition RuleDimension Conditions Project Condition - Condition for selecting alert targets by project. Required when Type is project.
- tag
Condition RuleDimension Conditions Tag Condition - Condition for selecting alert objects by tag. Required when Type is tag.
- type string
- Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
- meta_
condition RuleDimension Conditions Meta Condition - Condition for selecting alert objects based on resource name. Required when Type is meta.
- project_
condition RuleDimension Conditions Project Condition - Condition for selecting alert targets by project. Required when Type is project.
- tag_
condition RuleDimension Conditions Tag Condition - Condition for selecting alert objects by tag. Required when Type is tag.
- type str
- Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
- meta
Condition Property Map - Condition for selecting alert objects based on resource name. Required when Type is meta.
- project
Condition Property Map - Condition for selecting alert targets by project. Required when Type is project.
- tag
Condition Property Map - Condition for selecting alert objects by tag. Required when Type is tag.
- type String
- Dimensions type. Values: project: Select alert targets by project. tag: Select alert targets by tag. meta: Select alert targets by resource name.
RuleDimensionConditionsMetaCondition, RuleDimensionConditionsMetaConditionArgs
- All
Dimensions bool - Whether all resources are included. true: All resources. false: Partial resources.
- Condition string
- Condition. and: All conditions met. or: Any condition met.
- Metas
List<Byteplus.
Rule Dimension Conditions Meta Condition Meta> - Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- All
Dimensions bool - Whether all resources are included. true: All resources. false: Partial resources.
- Condition string
- Condition. and: All conditions met. or: Any condition met.
- Metas
[]Rule
Dimension Conditions Meta Condition Meta - Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- all_
dimensions bool - Whether all resources are included. true: All resources. false: Partial resources.
- condition string
- Condition. and: All conditions met. or: Any condition met.
- metas list(object)
- Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- all
Dimensions Boolean - Whether all resources are included. true: All resources. false: Partial resources.
- condition String
- Condition. and: All conditions met. or: Any condition met.
- metas
List<Rule
Dimension Conditions Meta Condition Meta> - Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- all
Dimensions boolean - Whether all resources are included. true: All resources. false: Partial resources.
- condition string
- Condition. and: All conditions met. or: Any condition met.
- metas
Rule
Dimension Conditions Meta Condition Meta[] - Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- all_
dimensions bool - Whether all resources are included. true: All resources. false: Partial resources.
- condition str
- Condition. and: All conditions met. or: Any condition met.
- metas
Sequence[Rule
Dimension Conditions Meta Condition Meta] - Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- all
Dimensions Boolean - Whether all resources are included. true: All resources. false: Partial resources.
- condition String
- Condition. and: All conditions met. or: Any condition met.
- metas List<Property Map>
- Resource list. Up to 10 resource names can be configured. When Comparator is equal or notequal, there is no limit on the length of the resource name. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, the resource name cannot exceed 100 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
RuleDimensionConditionsMetaConditionMeta, RuleDimensionConditionsMetaConditionMetaArgs
- Comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- Key string
- Tag key.
- Values List<string>
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- Comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- Key string
- Tag key.
- Values []string
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key string
- Tag key.
- values list(string)
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator String
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key String
- Tag key.
- values List<String>
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key string
- Tag key.
- values string[]
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator str
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key str
- Tag key.
- values Sequence[str]
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator String
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key String
- Tag key.
- values List<String>
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
RuleDimensionConditionsProjectCondition, RuleDimensionConditionsProjectConditionArgs
- Projects List<string>
- Project name list, in array format. Separate multiple values with commas.
- Projects []string
- Project name list, in array format. Separate multiple values with commas.
- projects list(string)
- Project name list, in array format. Separate multiple values with commas.
- projects List<String>
- Project name list, in array format. Separate multiple values with commas.
- projects string[]
- Project name list, in array format. Separate multiple values with commas.
- projects Sequence[str]
- Project name list, in array format. Separate multiple values with commas.
- projects List<String>
- Project name list, in array format. Separate multiple values with commas.
RuleDimensionConditionsTagCondition, RuleDimensionConditionsTagConditionArgs
- Condition string
- Condition. and: All conditions met. or: Any condition met.
-
List<Byteplus.
Rule Dimension Conditions Tag Condition Tag> - Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Condition string
- Condition. and: All conditions met. or: Any condition met.
-
[]Rule
Dimension Conditions Tag Condition Tag - Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- condition string
- Condition. and: All conditions met. or: Any condition met.
- list(object)
- Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- condition String
- Condition. and: All conditions met. or: Any condition met.
-
List<Rule
Dimension Conditions Tag Condition Tag> - Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- condition string
- Condition. and: All conditions met. or: Any condition met.
-
Rule
Dimension Conditions Tag Condition Tag[] - Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- condition str
- Condition. and: All conditions met. or: Any condition met.
-
Sequence[Rule
Dimension Conditions Tag Condition Tag] - Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- condition String
- Condition. and: All conditions met. or: Any condition met.
- List<Property Map>
- Tag list. Supports up to 10 tag lists. Tag value cannot exceed 50 characters. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
RuleDimensionConditionsTagConditionTag, RuleDimensionConditionsTagConditionTagArgs
- Comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- Key string
- Tag key.
- Values List<string>
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- Comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- Key string
- Tag key.
- Values []string
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key string
- Tag key.
- values list(string)
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator String
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key String
- Tag key.
- values List<String>
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator string
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key string
- Tag key.
- values string[]
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator str
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key str
- Tag key.
- values Sequence[str]
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
- comparator String
- Comparator for tag matching. contain: Contains. notcontain: Does not contain. prefixmatch: Prefix match. suffixmatch: Suffix match. equal: Equals. notequal: Does not equal. exist: Exists.
- key String
- Tag key.
- values List<String>
- Tag value (Value). When Comparator is exist, includes all Values corresponding to the Key and does not support input. When Comparator is equal or notequal, supports multiple Value inputs. When Comparator is contain, notcontain, prefixmatch, or suffixmatch, only one Value can be entered.
RuleLevelCondition, RuleLevelConditionArgs
- Conditions
List<Byteplus.
Rule Level Condition Condition> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Level string
- Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
- Conditions
[]Rule
Level Condition Condition - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- Level string
- Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
- conditions list(object)
- Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- level string
- Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
- conditions
List<Rule
Level Condition Condition> - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- level String
- Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
- conditions
Rule
Level Condition Condition[] - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- level string
- Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
- conditions
Sequence[Rule
Level Condition Condition] - Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- level str
- Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
- conditions List<Property Map>
- Alert severity configuration. Important Note: When using SetNestedAttribute, you must fully define all attributes of its nested structure. Incomplete definitions may cause Terraform to detect unexpected differences during plan comparison, triggering unnecessary resource updates and affecting resource stability and predictability.
- level String
- Alert notification level. Options: notice: notification, warning: warning, critical: critical, recovery: recovery.
RuleLevelConditionCondition, RuleLevelConditionConditionArgs
- Comparison
Operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- Display
Name string - Metric display name.
- Metric
Name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- Metric
Unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- Period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- Statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- Threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- Comparison
Operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- Display
Name string - Metric display name.
- Metric
Name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- Metric
Unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- Period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- Statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- Threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison_
operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- display_
name string - Metric display name.
- metric_
name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric_
unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison
Operator String - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- display
Name String - Metric display name.
- metric
Name String - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric
Unit String - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period String
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics String
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold String
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison
Operator string - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- display
Name string - Metric display name.
- metric
Name string - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric
Unit string - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period string
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics string
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold string
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison_
operator str - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- display_
name str - Metric display name.
- metric_
name str - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric_
unit str - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period str
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics str
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold str
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
- comparison
Operator String - Comparison operators. Supports standard threshold alerting: >, >=, <, <=, !=, =, as well as the following period-over-period alerting: lastperiodincreasepct: Increased compared to last period. lastperioddecreasepct: Decreased compared to last period. lastperiodabspct: Increased or decreased compared to last period. lastdayincreasepct: Increased compared to the same period yesterday. lastdaydecreasepct: Decreased compared to the same period yesterday. lastdayabspct: Increased or decreased compared to the same period yesterday. lastweekincreasepct: Increased compared to the same period last week. lastweekdecreasepct: Decreased compared to the same period last week. lastweekabs_pct: Increased or decreased compared to the same period last week.
- display
Name String - Metric display name.
- metric
Name String - Monitoring metric name. For details, see MetricName for each product in Cloud Monitoring Metric Query.
- metric
Unit String - Unit of the monitoring metric. For details, see MetricUnit for each product in Cloud Monitoring Metric Query. For period-over-period alerting, MetricUnit must be set to "Percent." Whether IEC is included in MetricUnit indicates different base values: With IEC: base is 1024; Without IEC: base is 1000.
- period String
- Statistical period for monitoring metrics. For details, see Period for each product in Cloud Monitoring Metric Query.
- statistics String
- Statistical method. Options: avg: average, max: maximum, min: minimum. The statistical method is applied to data within the detection time period. For example, the default detection time span is 1 minute. If the statistical method is avg, the average value of data within 1 minute is used.
- threshold String
- Metric threshold. Supports positive numbers or 0. Up to three decimal places allowed.
RuleNoData, RuleNoDataArgs
- Enable bool
- Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
- Evaluation
Count int - No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
- Enable bool
- Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
- Evaluation
Count int - No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
- enable bool
- Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
- evaluation_
count number - No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
- enable Boolean
- Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
- evaluation
Count Integer - No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
- enable boolean
- Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
- evaluation
Count number - No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
- enable bool
- Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
- evaluation_
count int - No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
- enable Boolean
- Enable no data alert. Values: true: enable no data alert. false (default): disable no data alert.
- evaluation
Count Number - No data alert trigger threshold. If no data is reported within the configured threshold period, a no data alert will be triggered. When Enable is set to true, this field is required. Integer format; value range is 3–20.
RuleNotifyTemplate, RuleNotifyTemplateArgs
- Channel string
- Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
- Notify
Template stringId - Notification template ID. Note: Each notification channel supports only one notification template ID.
- Channel string
- Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
- Notify
Template stringId - Notification template ID. Note: Each notification channel supports only one notification template ID.
- channel string
- Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
- notify_
template_ stringid - Notification template ID. Note: Each notification channel supports only one notification template ID.
- channel String
- Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
- notify
Template StringId - Notification template ID. Note: Each notification channel supports only one notification template ID.
- channel string
- Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
- notify
Template stringId - Notification template ID. Note: Each notification channel supports only one notification template ID.
- channel str
- Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
- notify_
template_ strid - Notification template ID. Note: Each notification channel supports only one notification template ID.
- channel String
- Notification channels. Values: email: Email, sms: SMS, phone: Phone, lark: Lark, dingtalk: DingTalk, wecom: WeCom, slack: Slack, api: Callback URL.
- notify
Template StringId - Notification template ID. Note: Each notification channel supports only one notification template ID.
RuleOriginalDimensions, RuleOriginalDimensionsArgs
- Key string
- Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
- Values List<string>
- Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
- Key string
- Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
- Values []string
- Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
- key string
- Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
- values list(string)
- Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
- key String
- Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
- values List<String>
- Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
- key string
- Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
- values string[]
- Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
- key str
- Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
- values Sequence[str]
- Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
- key String
- Metric Dimension name, such as ResourceID, NodeName, etc. Dimension names vary by cloud product. For details, see Cloud Monitoring Metric Query. ResourceID is required, and its capitalization must match Cloud Monitoring Metric Query. Supports multiple Dimension names and grouping by multiple Dimension names. For example: If you only enter ResourceID, the system groups alerts by ResourceID. If you enter both ResourceID and NodeName, the system first groups alerts by ResourceID, then groups within each ResourceID group by NodeName.
- values List<String>
- Metric Dimension values, in array format. Separate multiple values with commas. Wildcard * can be used to select all instance values. For example: ["*"] .
RuleRecoveryNotify, RuleRecoveryNotifyArgs
- Enable bool
- Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
- Enable bool
- Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
- enable bool
- Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
- enable Boolean
- Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
- enable boolean
- Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
- enable bool
- Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
- enable Boolean
- Enable alert recovery notification. Options: true: (default) enable alert recovery notification, false: disable alert recovery notification.
RuleTag, RuleTagArgs
- Key string
- Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
- Value string
- Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
- Key string
- Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
- Value string
- Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
- key string
- Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
- value string
- Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
- key String
- Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
- value String
- Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
- key string
- Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
- value string
- Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
- key str
- Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
- value str
- Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
- key String
- Tag key. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. volc: and /sys: are system-reserved tag keys. When adding a tag, the tag key cannot start with any case form of volc: or /sys:. Tag key length must be 1–128 characters.
- value String
- Tag value. Supports Chinese, uppercase and lowercase English letters, numbers, and spaces. The following special characters are supported: _ . : / = + - @. Cannot start or end with a space. Tag key length must be 0–255 characters.
Import
$ pulumi import bytepluscc:cloudmonitor/rule:Rule example "rule_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Monday, Jul 27, 2026 by Byteplus