published on Thursday, Oct 15, 2026 by Volcengine
published on Thursday, Oct 15, 2026 by Volcengine
Cloud monitoring alert template. Defines a set of metric alert rules and notification policies, which can be applied to object groups via ApplyObjectGroupsByAlertTemplate
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const example = new volcenginecc.cloudmonitor.AlertTemplate("example", {
name: "ccapi-alert-template-full",
description: "ccapi cloudmonitor alert template full",
notifyMode: "Resource",
silenceTime: 10,
noData: {
enable: true,
evaluation_count: 3,
level: "notice",
},
recoveryNotify: {
enable: true,
},
templateRules: [{
condition_operator: "&&",
evaluation_count: 3,
evaluation_interval: 3,
level_conditions: [{
level: "warning",
conditions: [{
comparisonOperator: ">",
evaluationWindow: 1,
metricName: "istio_requests_total",
metricUnit: "Count",
statistics: "sum",
threshold: "80",
}],
}],
multiple_conditions: true,
name: "full-rule",
namespace: "VCM_AgentKitMcp",
sub_namespace: "MCP_Service",
}],
projectName: "default",
objectGroups: [{
alert_methods: [
"Email",
"Webhook",
],
contact_group_ids: ["contact_group_id-xxxx"],
effect_start_at: "00:00",
effect_end_at: "23:59",
notify_templates: [{
channel: "email",
notifyTemplateId: "2049xxxxxxx81664",
}],
object_group_id: "2090xxxxxxxxxx9875456",
webhook_ids: ["20058xxxxxx87200"],
}],
});
import pulumi
import pulumi_volcenginecc as volcenginecc
example = volcenginecc.cloudmonitor.AlertTemplate("example",
name="ccapi-alert-template-full",
description="ccapi cloudmonitor alert template full",
notify_mode="Resource",
silence_time=10,
no_data={
"enable": True,
"evaluation_count": 3,
"level": "notice",
},
recovery_notify={
"enable": True,
},
template_rules=[{
"condition_operator": "&&",
"evaluation_count": 3,
"evaluation_interval": 3,
"level_conditions": [{
"level": "warning",
"conditions": [{
"comparisonOperator": ">",
"evaluationWindow": 1,
"metricName": "istio_requests_total",
"metricUnit": "Count",
"statistics": "sum",
"threshold": "80",
}],
}],
"multiple_conditions": True,
"name": "full-rule",
"namespace": "VCM_AgentKitMcp",
"sub_namespace": "MCP_Service",
}],
project_name="default",
object_groups=[{
"alert_methods": [
"Email",
"Webhook",
],
"contact_group_ids": ["contact_group_id-xxxx"],
"effect_start_at": "00:00",
"effect_end_at": "23:59",
"notify_templates": [{
"channel": "email",
"notifyTemplateId": "2049xxxxxxx81664",
}],
"object_group_id": "2090xxxxxxxxxx9875456",
"webhook_ids": ["20058xxxxxx87200"],
}])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cloudmonitor"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudmonitor.NewAlertTemplate(ctx, "example", &cloudmonitor.AlertTemplateArgs{
Name: pulumi.String("ccapi-alert-template-full"),
Description: pulumi.String("ccapi cloudmonitor alert template full"),
NotifyMode: pulumi.String("Resource"),
SilenceTime: pulumi.Int(10),
NoData: &cloudmonitor.AlertTemplateNoDataArgs{
Enable: pulumi.Bool(true),
Evaluation_count: 3,
Level: pulumi.String("notice"),
},
RecoveryNotify: &cloudmonitor.AlertTemplateRecoveryNotifyArgs{
Enable: pulumi.Bool(true),
},
TemplateRules: cloudmonitor.AlertTemplateTemplateRuleArray{
&cloudmonitor.AlertTemplateTemplateRuleArgs{
Condition_operator: "&&",
Evaluation_count: 3,
Evaluation_interval: 3,
Level_conditions: []map[string]interface{}{
map[string]interface{}{
"level": "warning",
"conditions": []map[string]interface{}{
map[string]interface{}{
"comparisonOperator": ">",
"evaluationWindow": 1,
"metricName": "istio_requests_total",
"metricUnit": "Count",
"statistics": "sum",
"threshold": "80",
},
},
},
},
Multiple_conditions: true,
Name: pulumi.String("full-rule"),
Namespace: pulumi.String("VCM_AgentKitMcp"),
Sub_namespace: "MCP_Service",
},
},
ProjectName: pulumi.String("default"),
ObjectGroups: cloudmonitor.AlertTemplateObjectGroupArray{
&cloudmonitor.AlertTemplateObjectGroupArgs{
Alert_methods: []string{
"Email",
"Webhook",
},
Contact_group_ids: []string{
"contact_group_id-xxxx",
},
Effect_start_at: "00:00",
Effect_end_at: "23:59",
Notify_templates: []map[string]interface{}{
map[string]interface{}{
"channel": "email",
"notifyTemplateId": "2049xxxxxxx81664",
},
},
Object_group_id: "2090xxxxxxxxxx9875456",
Webhook_ids: []string{
"20058xxxxxx87200",
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var example = new Volcenginecc.Cloudmonitor.AlertTemplate("example", new()
{
Name = "ccapi-alert-template-full",
Description = "ccapi cloudmonitor alert template full",
NotifyMode = "Resource",
SilenceTime = 10,
NoData = new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateNoDataArgs
{
Enable = true,
Evaluation_count = 3,
Level = "notice",
},
RecoveryNotify = new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateRecoveryNotifyArgs
{
Enable = true,
},
TemplateRules = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateTemplateRuleArgs
{
Condition_operator = "&&",
Evaluation_count = 3,
Evaluation_interval = 3,
Level_conditions = new[]
{
{
{ "level", "warning" },
{ "conditions", new[]
{
{
{ "comparisonOperator", ">" },
{ "evaluationWindow", 1 },
{ "metricName", "istio_requests_total" },
{ "metricUnit", "Count" },
{ "statistics", "sum" },
{ "threshold", "80" },
},
} },
},
},
Multiple_conditions = true,
Name = "full-rule",
Namespace = "VCM_AgentKitMcp",
Sub_namespace = "MCP_Service",
},
},
ProjectName = "default",
ObjectGroups = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateObjectGroupArgs
{
Alert_methods = new[]
{
"Email",
"Webhook",
},
Contact_group_ids = new[]
{
"contact_group_id-xxxx",
},
Effect_start_at = "00:00",
Effect_end_at = "23:59",
Notify_templates = new[]
{
{
{ "channel", "email" },
{ "notifyTemplateId", "2049xxxxxxx81664" },
},
},
Object_group_id = "2090xxxxxxxxxx9875456",
Webhook_ids = new[]
{
"20058xxxxxx87200",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.cloudmonitor.AlertTemplate;
import com.volcengine.volcenginecc.cloudmonitor.AlertTemplateArgs;
import com.pulumi.volcenginecc.cloudmonitor.inputs.AlertTemplateNoDataArgs;
import com.pulumi.volcenginecc.cloudmonitor.inputs.AlertTemplateRecoveryNotifyArgs;
import com.pulumi.volcenginecc.cloudmonitor.inputs.AlertTemplateTemplateRuleArgs;
import com.pulumi.volcenginecc.cloudmonitor.inputs.AlertTemplateObjectGroupArgs;
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 example = new AlertTemplate("example", AlertTemplateArgs.builder()
.name("ccapi-alert-template-full")
.description("ccapi cloudmonitor alert template full")
.notifyMode("Resource")
.silenceTime(10)
.noData(AlertTemplateNoDataArgs.builder()
.enable(true)
.evaluation_count(3)
.level("notice")
.build())
.recoveryNotify(AlertTemplateRecoveryNotifyArgs.builder()
.enable(true)
.build())
.templateRules(AlertTemplateTemplateRuleArgs.builder()
.condition_operator("&&")
.evaluation_count(3)
.evaluation_interval(3)
.level_conditions(Arrays.asList(Map.ofEntries(
Map.entry("level", "warning"),
Map.entry("conditions", Arrays.asList(Map.ofEntries(
Map.entry("comparisonOperator", ">"),
Map.entry("evaluationWindow", 1),
Map.entry("metricName", "istio_requests_total"),
Map.entry("metricUnit", "Count"),
Map.entry("statistics", "sum"),
Map.entry("threshold", "80")
)))
)))
.multiple_conditions(true)
.name("full-rule")
.namespace("VCM_AgentKitMcp")
.sub_namespace("MCP_Service")
.build())
.projectName("default")
.objectGroups(AlertTemplateObjectGroupArgs.builder()
.alert_methods(Arrays.asList(
"Email",
"Webhook"))
.contact_group_ids(Arrays.asList("contact_group_id-xxxx"))
.effect_start_at("00:00")
.effect_end_at("23:59")
.notify_templates(Arrays.asList(Map.ofEntries(
Map.entry("channel", "email"),
Map.entry("notifyTemplateId", "2049xxxxxxx81664")
)))
.object_group_id("2090xxxxxxxxxx9875456")
.webhook_ids(Arrays.asList("20058xxxxxx87200"))
.build())
.build());
}
}
resources:
example:
type: volcenginecc:cloudmonitor:AlertTemplate
properties:
name: ccapi-alert-template-full
description: ccapi cloudmonitor alert template full
notifyMode: Resource
silenceTime: 10
noData:
enable: true
evaluation_count: 3
level: notice
recoveryNotify:
enable: true
templateRules:
- condition_operator: '&&'
evaluation_count: 3
evaluation_interval: 3
level_conditions:
- level: warning
conditions:
- comparisonOperator: '>'
evaluationWindow: 1
metricName: istio_requests_total
metricUnit: Count
statistics: sum
threshold: '80'
multiple_conditions: true
name: full-rule
namespace: VCM_AgentKitMcp
sub_namespace: MCP_Service
projectName: default
objectGroups:
- alert_methods:
- Email
- Webhook
contact_group_ids:
- contact_group_id-xxxx
effect_start_at: 00:00
effect_end_at: 23:59
notify_templates:
- channel: email
notifyTemplateId: 2049xxxxxxx81664
object_group_id: 2090xxxxxxxxxx9875456
webhook_ids:
- 20058xxxxxx87200
pulumi {
required_providers {
volcenginecc = {
source = "pulumi/volcenginecc"
}
}
}
resource "volcenginecc_cloudmonitor_alerttemplate" "example" {
name = "ccapi-alert-template-full"
description = "ccapi cloudmonitor alert template full"
notify_mode = "Resource"
silence_time = 10
no_data = {
enable = true
evaluation_count = 3
level = "notice"
}
recovery_notify = {
enable = true
}
template_rules {
condition_operator = "&&"
evaluation_count = 3
evaluation_interval = 3
level_conditions = [{
"level" = "warning"
"conditions" = [{
"comparisonOperator" = ">"
"evaluationWindow" = 1
"metricName" = "istio_requests_total"
"metricUnit" = "Count"
"statistics" = "sum"
"threshold" = "80"
}]
}]
multiple_conditions = true
name = "full-rule"
namespace = "VCM_AgentKitMcp"
sub_namespace = "MCP_Service"
}
project_name = "default"
object_groups {
alert_methods = ["Email", "Webhook"]
contact_group_ids = ["contact_group_id-xxxx"]
effect_start_at = "00:00"
effect_end_at = "23:59"
notify_templates = [{
"channel" = "email"
"notifyTemplateId" = "2049xxxxxxx81664"
}]
object_group_id = "2090xxxxxxxxxx9875456"
webhook_ids = ["20058xxxxxx87200"]
}
}
Create AlertTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AlertTemplate(name: string, args: AlertTemplateArgs, opts?: CustomResourceOptions);@overload
def AlertTemplate(resource_name: str,
args: AlertTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AlertTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
notify_mode: Optional[str] = None,
silence_time: Optional[int] = None,
description: Optional[str] = None,
no_data: Optional[AlertTemplateNoDataArgs] = None,
object_groups: Optional[Sequence[AlertTemplateObjectGroupArgs]] = None,
project_name: Optional[str] = None,
recovery_notify: Optional[AlertTemplateRecoveryNotifyArgs] = None,
template_rules: Optional[Sequence[AlertTemplateTemplateRuleArgs]] = None)func NewAlertTemplate(ctx *Context, name string, args AlertTemplateArgs, opts ...ResourceOption) (*AlertTemplate, error)public AlertTemplate(string name, AlertTemplateArgs args, CustomResourceOptions? opts = null)
public AlertTemplate(String name, AlertTemplateArgs args)
public AlertTemplate(String name, AlertTemplateArgs args, CustomResourceOptions options)
type: volcenginecc:cloudmonitor:AlertTemplate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "volcenginecc_cloudmonitor_alert_template" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AlertTemplateArgs
- 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 AlertTemplateArgs
- 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 AlertTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertTemplateArgs
- 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 alertTemplateResource = new Volcenginecc.Cloudmonitor.AlertTemplate("alertTemplateResource", new()
{
Name = "string",
NotifyMode = "string",
SilenceTime = 0,
Description = "string",
NoData = new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateNoDataArgs
{
Enable = false,
EvaluationCount = 0,
Level = "string",
},
ObjectGroups = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateObjectGroupArgs
{
AlertMethods = new[]
{
"string",
},
ContactGroupIds = new[]
{
"string",
},
EffectEndAt = "string",
EffectStartAt = "string",
NotificationId = "string",
NotifyTemplates = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateObjectGroupNotifyTemplateArgs
{
Channel = "string",
NotifyTemplateId = "string",
},
},
ObjectGroupId = "string",
ObjectGroupName = "string",
Webhook = "string",
WebhookIds = new[]
{
"string",
},
},
},
ProjectName = "string",
RecoveryNotify = new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateRecoveryNotifyArgs
{
Enable = false,
},
TemplateRules = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateTemplateRuleArgs
{
AppliedRules = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateTemplateRuleAppliedRuleArgs
{
Id = "string",
Name = "string",
ObjectGroupId = "string",
ObjectId = "string",
},
},
CheckInterval = 0,
ConditionOperator = "string",
EvaluationCount = 0,
EvaluationInterval = 0,
LevelConditions = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateTemplateRuleLevelConditionArgs
{
Conditions = new[]
{
new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateTemplateRuleLevelConditionConditionArgs
{
ComparisonOperator = "string",
EvaluationWindow = 0,
MetricName = "string",
MetricUnit = "string",
Statistics = "string",
Threshold = "string",
},
},
Level = "string",
},
},
MultipleConditions = false,
Name = "string",
Namespace = "string",
NoData = new Volcenginecc.Cloudmonitor.Inputs.AlertTemplateTemplateRuleNoDataArgs
{
Enable = false,
EvaluationCount = 0,
Level = "string",
},
SubNamespace = "string",
},
},
});
example, err := cloudmonitor.NewAlertTemplate(ctx, "alertTemplateResource", &cloudmonitor.AlertTemplateArgs{
Name: pulumi.String("string"),
NotifyMode: pulumi.String("string"),
SilenceTime: pulumi.Int(0),
Description: pulumi.String("string"),
NoData: &cloudmonitor.AlertTemplateNoDataArgs{
Enable: pulumi.Bool(false),
EvaluationCount: pulumi.Int(0),
Level: pulumi.String("string"),
},
ObjectGroups: cloudmonitor.AlertTemplateObjectGroupArray{
&cloudmonitor.AlertTemplateObjectGroupArgs{
AlertMethods: pulumi.StringArray{
pulumi.String("string"),
},
ContactGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
EffectEndAt: pulumi.String("string"),
EffectStartAt: pulumi.String("string"),
NotificationId: pulumi.String("string"),
NotifyTemplates: cloudmonitor.AlertTemplateObjectGroupNotifyTemplateArray{
&cloudmonitor.AlertTemplateObjectGroupNotifyTemplateArgs{
Channel: pulumi.String("string"),
NotifyTemplateId: pulumi.String("string"),
},
},
ObjectGroupId: pulumi.String("string"),
ObjectGroupName: pulumi.String("string"),
Webhook: pulumi.String("string"),
WebhookIds: pulumi.StringArray{
pulumi.String("string"),
},
},
},
ProjectName: pulumi.String("string"),
RecoveryNotify: &cloudmonitor.AlertTemplateRecoveryNotifyArgs{
Enable: pulumi.Bool(false),
},
TemplateRules: cloudmonitor.AlertTemplateTemplateRuleArray{
&cloudmonitor.AlertTemplateTemplateRuleArgs{
AppliedRules: cloudmonitor.AlertTemplateTemplateRuleAppliedRuleArray{
&cloudmonitor.AlertTemplateTemplateRuleAppliedRuleArgs{
Id: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectGroupId: pulumi.String("string"),
ObjectId: pulumi.String("string"),
},
},
CheckInterval: pulumi.Int(0),
ConditionOperator: pulumi.String("string"),
EvaluationCount: pulumi.Int(0),
EvaluationInterval: pulumi.Int(0),
LevelConditions: cloudmonitor.AlertTemplateTemplateRuleLevelConditionArray{
&cloudmonitor.AlertTemplateTemplateRuleLevelConditionArgs{
Conditions: cloudmonitor.AlertTemplateTemplateRuleLevelConditionConditionArray{
&cloudmonitor.AlertTemplateTemplateRuleLevelConditionConditionArgs{
ComparisonOperator: pulumi.String("string"),
EvaluationWindow: pulumi.Int(0),
MetricName: pulumi.String("string"),
MetricUnit: pulumi.String("string"),
Statistics: pulumi.String("string"),
Threshold: pulumi.String("string"),
},
},
Level: pulumi.String("string"),
},
},
MultipleConditions: pulumi.Bool(false),
Name: pulumi.String("string"),
Namespace: pulumi.String("string"),
NoData: &cloudmonitor.AlertTemplateTemplateRuleNoDataArgs{
Enable: pulumi.Bool(false),
EvaluationCount: pulumi.Int(0),
Level: pulumi.String("string"),
},
SubNamespace: pulumi.String("string"),
},
},
})
resource "volcenginecc_cloudmonitor_alert_template" "alertTemplateResource" {
lifecycle {
create_before_destroy = true
}
name = "string"
notify_mode = "string"
silence_time = 0
description = "string"
no_data = {
enable = false
evaluation_count = 0
level = "string"
}
object_groups {
alert_methods = ["string"]
contact_group_ids = ["string"]
effect_end_at = "string"
effect_start_at = "string"
notification_id = "string"
notify_templates {
channel = "string"
notify_template_id = "string"
}
object_group_id = "string"
object_group_name = "string"
webhook = "string"
webhook_ids = ["string"]
}
project_name = "string"
recovery_notify = {
enable = false
}
template_rules {
applied_rules {
id = "string"
name = "string"
object_group_id = "string"
object_id = "string"
}
check_interval = 0
condition_operator = "string"
evaluation_count = 0
evaluation_interval = 0
level_conditions {
conditions {
comparison_operator = "string"
evaluation_window = 0
metric_name = "string"
metric_unit = "string"
statistics = "string"
threshold = "string"
}
level = "string"
}
multiple_conditions = false
name = "string"
namespace = "string"
no_data = {
enable = false
evaluation_count = 0
level = "string"
}
sub_namespace = "string"
}
}
var alertTemplateResource = new AlertTemplate("alertTemplateResource", AlertTemplateArgs.builder()
.name("string")
.notifyMode("string")
.silenceTime(0)
.description("string")
.noData(AlertTemplateNoDataArgs.builder()
.enable(false)
.evaluationCount(0)
.level("string")
.build())
.objectGroups(AlertTemplateObjectGroupArgs.builder()
.alertMethods("string")
.contactGroupIds("string")
.effectEndAt("string")
.effectStartAt("string")
.notificationId("string")
.notifyTemplates(AlertTemplateObjectGroupNotifyTemplateArgs.builder()
.channel("string")
.notifyTemplateId("string")
.build())
.objectGroupId("string")
.objectGroupName("string")
.webhook("string")
.webhookIds("string")
.build())
.projectName("string")
.recoveryNotify(AlertTemplateRecoveryNotifyArgs.builder()
.enable(false)
.build())
.templateRules(AlertTemplateTemplateRuleArgs.builder()
.appliedRules(AlertTemplateTemplateRuleAppliedRuleArgs.builder()
.id("string")
.name("string")
.objectGroupId("string")
.objectId("string")
.build())
.checkInterval(0)
.conditionOperator("string")
.evaluationCount(0)
.evaluationInterval(0)
.levelConditions(AlertTemplateTemplateRuleLevelConditionArgs.builder()
.conditions(AlertTemplateTemplateRuleLevelConditionConditionArgs.builder()
.comparisonOperator("string")
.evaluationWindow(0)
.metricName("string")
.metricUnit("string")
.statistics("string")
.threshold("string")
.build())
.level("string")
.build())
.multipleConditions(false)
.name("string")
.namespace("string")
.noData(AlertTemplateTemplateRuleNoDataArgs.builder()
.enable(false)
.evaluationCount(0)
.level("string")
.build())
.subNamespace("string")
.build())
.build());
alert_template_resource = volcenginecc.cloudmonitor.AlertTemplate("alertTemplateResource",
name="string",
notify_mode="string",
silence_time=0,
description="string",
no_data={
"enable": False,
"evaluation_count": 0,
"level": "string",
},
object_groups=[{
"alert_methods": ["string"],
"contact_group_ids": ["string"],
"effect_end_at": "string",
"effect_start_at": "string",
"notification_id": "string",
"notify_templates": [{
"channel": "string",
"notify_template_id": "string",
}],
"object_group_id": "string",
"object_group_name": "string",
"webhook": "string",
"webhook_ids": ["string"],
}],
project_name="string",
recovery_notify={
"enable": False,
},
template_rules=[{
"applied_rules": [{
"id": "string",
"name": "string",
"object_group_id": "string",
"object_id": "string",
}],
"check_interval": 0,
"condition_operator": "string",
"evaluation_count": 0,
"evaluation_interval": 0,
"level_conditions": [{
"conditions": [{
"comparison_operator": "string",
"evaluation_window": 0,
"metric_name": "string",
"metric_unit": "string",
"statistics": "string",
"threshold": "string",
}],
"level": "string",
}],
"multiple_conditions": False,
"name": "string",
"namespace": "string",
"no_data": {
"enable": False,
"evaluation_count": 0,
"level": "string",
},
"sub_namespace": "string",
}])
const alertTemplateResource = new volcenginecc.cloudmonitor.AlertTemplate("alertTemplateResource", {
name: "string",
notifyMode: "string",
silenceTime: 0,
description: "string",
noData: {
enable: false,
evaluationCount: 0,
level: "string",
},
objectGroups: [{
alertMethods: ["string"],
contactGroupIds: ["string"],
effectEndAt: "string",
effectStartAt: "string",
notificationId: "string",
notifyTemplates: [{
channel: "string",
notifyTemplateId: "string",
}],
objectGroupId: "string",
objectGroupName: "string",
webhook: "string",
webhookIds: ["string"],
}],
projectName: "string",
recoveryNotify: {
enable: false,
},
templateRules: [{
appliedRules: [{
id: "string",
name: "string",
objectGroupId: "string",
objectId: "string",
}],
checkInterval: 0,
conditionOperator: "string",
evaluationCount: 0,
evaluationInterval: 0,
levelConditions: [{
conditions: [{
comparisonOperator: "string",
evaluationWindow: 0,
metricName: "string",
metricUnit: "string",
statistics: "string",
threshold: "string",
}],
level: "string",
}],
multipleConditions: false,
name: "string",
namespace: "string",
noData: {
enable: false,
evaluationCount: 0,
level: "string",
},
subNamespace: "string",
}],
});
type: volcenginecc:cloudmonitor:AlertTemplate
properties:
description: string
name: string
noData:
enable: false
evaluationCount: 0
level: string
notifyMode: string
objectGroups:
- alertMethods:
- string
contactGroupIds:
- string
effectEndAt: string
effectStartAt: string
notificationId: string
notifyTemplates:
- channel: string
notifyTemplateId: string
objectGroupId: string
objectGroupName: string
webhook: string
webhookIds:
- string
projectName: string
recoveryNotify:
enable: false
silenceTime: 0
templateRules:
- appliedRules:
- id: string
name: string
objectGroupId: string
objectId: string
checkInterval: 0
conditionOperator: string
evaluationCount: 0
evaluationInterval: 0
levelConditions:
- conditions:
- comparisonOperator: string
evaluationWindow: 0
metricName: string
metricUnit: string
statistics: string
threshold: string
level: string
multipleConditions: false
name: string
namespace: string
noData:
enable: false
evaluationCount: 0
level: string
subNamespace: string
AlertTemplate 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 AlertTemplate resource accepts the following input properties:
- Name string
- Alert template name
- Notify
Mode string - Notification mode
- Silence
Time int - Silence period (minutes)
- Description string
- Alert template description
- No
Data Volcengine.Alert Template No Data - No Data Alert Configuration
- Object
Groups List<Volcengine.Alert Template Object Group> - List of object group binding configurations applied to this alert template 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.
- Project
Name string - Project name of the alert template
- Recovery
Notify Volcengine.Alert Template Recovery Notify - Alert recovery notification configuration
- Template
Rules List<Volcengine.Alert Template Template Rule> - Alert template rule list 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.
- Name string
- Alert template name
- Notify
Mode string - Notification mode
- Silence
Time int - Silence period (minutes)
- Description string
- Alert template description
- No
Data AlertTemplate No Data Args - No Data Alert Configuration
- Object
Groups []AlertTemplate Object Group Args - List of object group binding configurations applied to this alert template 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.
- Project
Name string - Project name of the alert template
- Recovery
Notify AlertTemplate Recovery Notify Args - Alert recovery notification configuration
- Template
Rules []AlertTemplate Template Rule Args - Alert template rule list 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.
- name string
- Alert template name
- notify_
mode string - Notification mode
- silence_
time number - Silence period (minutes)
- description string
- Alert template description
- no_
data object - No Data Alert Configuration
- object_
groups list(object) - List of object group binding configurations applied to this alert template 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.
- project_
name string - Project name of the alert template
- recovery_
notify object - Alert recovery notification configuration
- template_
rules list(object) - Alert template rule list 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.
- name String
- Alert template name
- notify
Mode String - Notification mode
- silence
Time Integer - Silence period (minutes)
- description String
- Alert template description
- no
Data AlertTemplate No Data - No Data Alert Configuration
- object
Groups List<AlertTemplate Object Group> - List of object group binding configurations applied to this alert template 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.
- project
Name String - Project name of the alert template
- recovery
Notify AlertTemplate Recovery Notify - Alert recovery notification configuration
- template
Rules List<AlertTemplate Template Rule> - Alert template rule list 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.
- name string
- Alert template name
- notify
Mode string - Notification mode
- silence
Time number - Silence period (minutes)
- description string
- Alert template description
- no
Data AlertTemplate No Data - No Data Alert Configuration
- object
Groups AlertTemplate Object Group[] - List of object group binding configurations applied to this alert template 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.
- project
Name string - Project name of the alert template
- recovery
Notify AlertTemplate Recovery Notify - Alert recovery notification configuration
- template
Rules AlertTemplate Template Rule[] - Alert template rule list 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.
- name str
- Alert template name
- notify_
mode str - Notification mode
- silence_
time int - Silence period (minutes)
- description str
- Alert template description
- no_
data AlertTemplate No Data Args - No Data Alert Configuration
- object_
groups Sequence[AlertTemplate Object Group Args] - List of object group binding configurations applied to this alert template 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.
- project_
name str - Project name of the alert template
- recovery_
notify AlertTemplate Recovery Notify Args - Alert recovery notification configuration
- template_
rules Sequence[AlertTemplate Template Rule Args] - Alert template rule list 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.
- name String
- Alert template name
- notify
Mode String - Notification mode
- silence
Time Number - Silence period (minutes)
- description String
- Alert template description
- no
Data Property Map - No Data Alert Configuration
- object
Groups List<Property Map> - List of object group binding configurations applied to this alert template 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.
- project
Name String - Project name of the alert template
- recovery
Notify Property Map - Alert recovery notification configuration
- template
Rules List<Property Map> - Alert template rule list 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the AlertTemplate resource produces the following output properties:
- Applied
Project stringName - Project name where the alert template has been applied, returned by the service side
- Created
At string - Creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Template
Id string - Alert template ID
- Updated
At string - Update time
- Applied
Project stringName - Project name where the alert template has been applied, returned by the service side
- Created
At string - Creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Template
Id string - Alert template ID
- Updated
At string - Update time
- applied_
project_ stringname - Project name where the alert template has been applied, returned by the service side
- created_
at string - Creation time
- id string
- The provider-assigned unique ID for this managed resource.
- template_
id string - Alert template ID
- updated_
at string - Update time
- applied
Project StringName - Project name where the alert template has been applied, returned by the service side
- created
At String - Creation time
- id String
- The provider-assigned unique ID for this managed resource.
- template
Id String - Alert template ID
- updated
At String - Update time
- applied
Project stringName - Project name where the alert template has been applied, returned by the service side
- created
At string - Creation time
- id string
- The provider-assigned unique ID for this managed resource.
- template
Id string - Alert template ID
- updated
At string - Update time
- applied_
project_ strname - Project name where the alert template has been applied, returned by the service side
- created_
at str - Creation time
- id str
- The provider-assigned unique ID for this managed resource.
- template_
id str - Alert template ID
- updated_
at str - Update time
- applied
Project StringName - Project name where the alert template has been applied, returned by the service side
- created
At String - Creation time
- id String
- The provider-assigned unique ID for this managed resource.
- template
Id String - Alert template ID
- updated
At String - Update time
Look up Existing AlertTemplate Resource
Get an existing AlertTemplate 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?: AlertTemplateState, opts?: CustomResourceOptions): AlertTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
applied_project_name: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
no_data: Optional[AlertTemplateNoDataArgs] = None,
notify_mode: Optional[str] = None,
object_groups: Optional[Sequence[AlertTemplateObjectGroupArgs]] = None,
project_name: Optional[str] = None,
recovery_notify: Optional[AlertTemplateRecoveryNotifyArgs] = None,
silence_time: Optional[int] = None,
template_id: Optional[str] = None,
template_rules: Optional[Sequence[AlertTemplateTemplateRuleArgs]] = None,
updated_at: Optional[str] = None) -> AlertTemplatefunc GetAlertTemplate(ctx *Context, name string, id IDInput, state *AlertTemplateState, opts ...ResourceOption) (*AlertTemplate, error)public static AlertTemplate Get(string name, Input<string> id, AlertTemplateState? state, CustomResourceOptions? opts = null)public static AlertTemplate get(String name, Output<String> id, AlertTemplateState state, CustomResourceOptions options)resources: _: type: volcenginecc:cloudmonitor:AlertTemplate get: id: ${id}import {
to = volcenginecc_cloudmonitor_alert_template.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.
- Applied
Project stringName - Project name where the alert template has been applied, returned by the service side
- Created
At string - Creation time
- Description string
- Alert template description
- Name string
- Alert template name
- No
Data Volcengine.Alert Template No Data - No Data Alert Configuration
- Notify
Mode string - Notification mode
- Object
Groups List<Volcengine.Alert Template Object Group> - List of object group binding configurations applied to this alert template 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.
- Project
Name string - Project name of the alert template
- Recovery
Notify Volcengine.Alert Template Recovery Notify - Alert recovery notification configuration
- Silence
Time int - Silence period (minutes)
- Template
Id string - Alert template ID
- Template
Rules List<Volcengine.Alert Template Template Rule> - Alert template rule list 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 - Update time
- Applied
Project stringName - Project name where the alert template has been applied, returned by the service side
- Created
At string - Creation time
- Description string
- Alert template description
- Name string
- Alert template name
- No
Data AlertTemplate No Data Args - No Data Alert Configuration
- Notify
Mode string - Notification mode
- Object
Groups []AlertTemplate Object Group Args - List of object group binding configurations applied to this alert template 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.
- Project
Name string - Project name of the alert template
- Recovery
Notify AlertTemplate Recovery Notify Args - Alert recovery notification configuration
- Silence
Time int - Silence period (minutes)
- Template
Id string - Alert template ID
- Template
Rules []AlertTemplate Template Rule Args - Alert template rule list 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 - Update time
- applied_
project_ stringname - Project name where the alert template has been applied, returned by the service side
- created_
at string - Creation time
- description string
- Alert template description
- name string
- Alert template name
- no_
data object - No Data Alert Configuration
- notify_
mode string - Notification mode
- object_
groups list(object) - List of object group binding configurations applied to this alert template 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.
- project_
name string - Project name of the alert template
- recovery_
notify object - Alert recovery notification configuration
- silence_
time number - Silence period (minutes)
- template_
id string - Alert template ID
- template_
rules list(object) - Alert template rule list 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 - Update time
- applied
Project StringName - Project name where the alert template has been applied, returned by the service side
- created
At String - Creation time
- description String
- Alert template description
- name String
- Alert template name
- no
Data AlertTemplate No Data - No Data Alert Configuration
- notify
Mode String - Notification mode
- object
Groups List<AlertTemplate Object Group> - List of object group binding configurations applied to this alert template 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.
- project
Name String - Project name of the alert template
- recovery
Notify AlertTemplate Recovery Notify - Alert recovery notification configuration
- silence
Time Integer - Silence period (minutes)
- template
Id String - Alert template ID
- template
Rules List<AlertTemplate Template Rule> - Alert template rule list 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 - Update time
- applied
Project stringName - Project name where the alert template has been applied, returned by the service side
- created
At string - Creation time
- description string
- Alert template description
- name string
- Alert template name
- no
Data AlertTemplate No Data - No Data Alert Configuration
- notify
Mode string - Notification mode
- object
Groups AlertTemplate Object Group[] - List of object group binding configurations applied to this alert template 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.
- project
Name string - Project name of the alert template
- recovery
Notify AlertTemplate Recovery Notify - Alert recovery notification configuration
- silence
Time number - Silence period (minutes)
- template
Id string - Alert template ID
- template
Rules AlertTemplate Template Rule[] - Alert template rule list 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 - Update time
- applied_
project_ strname - Project name where the alert template has been applied, returned by the service side
- created_
at str - Creation time
- description str
- Alert template description
- name str
- Alert template name
- no_
data AlertTemplate No Data Args - No Data Alert Configuration
- notify_
mode str - Notification mode
- object_
groups Sequence[AlertTemplate Object Group Args] - List of object group binding configurations applied to this alert template 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.
- project_
name str - Project name of the alert template
- recovery_
notify AlertTemplate Recovery Notify Args - Alert recovery notification configuration
- silence_
time int - Silence period (minutes)
- template_
id str - Alert template ID
- template_
rules Sequence[AlertTemplate Template Rule Args] - Alert template rule list 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 - Update time
- applied
Project StringName - Project name where the alert template has been applied, returned by the service side
- created
At String - Creation time
- description String
- Alert template description
- name String
- Alert template name
- no
Data Property Map - No Data Alert Configuration
- notify
Mode String - Notification mode
- object
Groups List<Property Map> - List of object group binding configurations applied to this alert template 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.
- project
Name String - Project name of the alert template
- recovery
Notify Property Map - Alert recovery notification configuration
- silence
Time Number - Silence period (minutes)
- template
Id String - Alert template ID
- template
Rules List<Property Map> - Alert template rule list 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 - Update time
Supporting Types
AlertTemplateNoData, AlertTemplateNoDataArgs
- Enable bool
- Enable no data alert
- Evaluation
Count int - Number of evaluation periods for no data determination
- Level string
- Alert severity when triggered by no data
- Enable bool
- Enable no data alert
- Evaluation
Count int - Number of evaluation periods for no data determination
- Level string
- Alert severity when triggered by no data
- enable bool
- Enable no data alert
- evaluation_
count number - Number of evaluation periods for no data determination
- level string
- Alert severity when triggered by no data
- enable Boolean
- Enable no data alert
- evaluation
Count Integer - Number of evaluation periods for no data determination
- level String
- Alert severity when triggered by no data
- enable boolean
- Enable no data alert
- evaluation
Count number - Number of evaluation periods for no data determination
- level string
- Alert severity when triggered by no data
- enable bool
- Enable no data alert
- evaluation_
count int - Number of evaluation periods for no data determination
- level str
- Alert severity when triggered by no data
- enable Boolean
- Enable no data alert
- evaluation
Count Number - Number of evaluation periods for no data determination
- level String
- Alert severity when triggered by no data
AlertTemplateObjectGroup, AlertTemplateObjectGroupArgs
- Alert
Methods List<string> - Alert notification method list
- Contact
Group List<string>Ids - Contact Group ID List
- Effect
End stringAt - Effective end time
- Effect
Start stringAt - Effective start time
- Notification
Id string - Notification policy ID
- Notify
Templates List<Volcengine.Alert Template Object Group Notify Template> - Notification template list 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.
- Object
Group stringId - Object group ID
- Object
Group stringName - Object group name, returned by the service side
- Webhook string
- Webhook address
- Webhook
Ids List<string> - Webhook ID list
- Alert
Methods []string - Alert notification method list
- Contact
Group []stringIds - Contact Group ID List
- Effect
End stringAt - Effective end time
- Effect
Start stringAt - Effective start time
- Notification
Id string - Notification policy ID
- Notify
Templates []AlertTemplate Object Group Notify Template - Notification template list 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.
- Object
Group stringId - Object group ID
- Object
Group stringName - Object group name, returned by the service side
- Webhook string
- Webhook address
- Webhook
Ids []string - Webhook ID list
- alert_
methods list(string) - Alert notification method list
- contact_
group_ list(string)ids - Contact Group ID List
- effect_
end_ stringat - Effective end time
- effect_
start_ stringat - Effective start time
- notification_
id string - Notification policy ID
- notify_
templates list(object) - Notification template list 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.
- object_
group_ stringid - Object group ID
- object_
group_ stringname - Object group name, returned by the service side
- webhook string
- Webhook address
- webhook_
ids list(string) - Webhook ID list
- alert
Methods List<String> - Alert notification method list
- contact
Group List<String>Ids - Contact Group ID List
- effect
End StringAt - Effective end time
- effect
Start StringAt - Effective start time
- notification
Id String - Notification policy ID
- notify
Templates List<AlertTemplate Object Group Notify Template> - Notification template list 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.
- object
Group StringId - Object group ID
- object
Group StringName - Object group name, returned by the service side
- webhook String
- Webhook address
- webhook
Ids List<String> - Webhook ID list
- alert
Methods string[] - Alert notification method list
- contact
Group string[]Ids - Contact Group ID List
- effect
End stringAt - Effective end time
- effect
Start stringAt - Effective start time
- notification
Id string - Notification policy ID
- notify
Templates AlertTemplate Object Group Notify Template[] - Notification template list 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.
- object
Group stringId - Object group ID
- object
Group stringName - Object group name, returned by the service side
- webhook string
- Webhook address
- webhook
Ids string[] - Webhook ID list
- alert_
methods Sequence[str] - Alert notification method list
- contact_
group_ Sequence[str]ids - Contact Group ID List
- effect_
end_ strat - Effective end time
- effect_
start_ strat - Effective start time
- notification_
id str - Notification policy ID
- notify_
templates Sequence[AlertTemplate Object Group Notify Template] - Notification template list 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.
- object_
group_ strid - Object group ID
- object_
group_ strname - Object group name, returned by the service side
- webhook str
- Webhook address
- webhook_
ids Sequence[str] - Webhook ID list
- alert
Methods List<String> - Alert notification method list
- contact
Group List<String>Ids - Contact Group ID List
- effect
End StringAt - Effective end time
- effect
Start StringAt - Effective start time
- notification
Id String - Notification policy ID
- notify
Templates List<Property Map> - Notification template list 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.
- object
Group StringId - Object group ID
- object
Group StringName - Object group name, returned by the service side
- webhook String
- Webhook address
- webhook
Ids List<String> - Webhook ID list
AlertTemplateObjectGroupNotifyTemplate, AlertTemplateObjectGroupNotifyTemplateArgs
- Channel string
- Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
- Notify
Template stringId - Notification template ID
- Channel string
- Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
- Notify
Template stringId - Notification template ID
- channel string
- Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
- notify_
template_ stringid - Notification template ID
- channel String
- Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
- notify
Template StringId - Notification template ID
- channel string
- Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
- notify
Template stringId - Notification template ID
- channel str
- Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
- notify_
template_ strid - Notification template ID
- channel String
- Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
- notify
Template StringId - Notification template ID
AlertTemplateRecoveryNotify, AlertTemplateRecoveryNotifyArgs
- Enable bool
- Enable recovery notification
- Enable bool
- Enable recovery notification
- enable bool
- Enable recovery notification
- enable Boolean
- Enable recovery notification
- enable boolean
- Enable recovery notification
- enable bool
- Enable recovery notification
- enable Boolean
- Enable recovery notification
AlertTemplateTemplateRule, AlertTemplateTemplateRuleArgs
- Applied
Rules List<Volcengine.Alert Template Template Rule Applied Rule> - List of alert rules generated by this rule, returned by the service side 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.
- Check
Interval int - Evaluation interval (seconds), returned by the service side
- Condition
Operator string - Multi-condition combination method
- Evaluation
Count int - Evaluation Count
- Evaluation
Interval int - Evaluation interval (seconds)
- Level
Conditions List<Volcengine.Alert Template Template Rule Level Condition> - Tiered alert condition list 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 - Enable multi-condition mode
- Name string
- Rule name
- Namespace string
- Metric namespace
- No
Data Volcengine.Alert Template Template Rule No Data - No Data Alert Configuration
- Sub
Namespace string - Metric sub-namespace
- Applied
Rules []AlertTemplate Template Rule Applied Rule - List of alert rules generated by this rule, returned by the service side 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.
- Check
Interval int - Evaluation interval (seconds), returned by the service side
- Condition
Operator string - Multi-condition combination method
- Evaluation
Count int - Evaluation Count
- Evaluation
Interval int - Evaluation interval (seconds)
- Level
Conditions []AlertTemplate Template Rule Level Condition - Tiered alert condition list 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 - Enable multi-condition mode
- Name string
- Rule name
- Namespace string
- Metric namespace
- No
Data AlertTemplate Template Rule No Data - No Data Alert Configuration
- Sub
Namespace string - Metric sub-namespace
- applied_
rules list(object) - List of alert rules generated by this rule, returned by the service side 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.
- check_
interval number - Evaluation interval (seconds), returned by the service side
- condition_
operator string - Multi-condition combination method
- evaluation_
count number - Evaluation Count
- evaluation_
interval number - Evaluation interval (seconds)
- level_
conditions list(object) - Tiered alert condition list 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 - Enable multi-condition mode
- name string
- Rule name
- namespace string
- Metric namespace
- no_
data object - No Data Alert Configuration
- sub_
namespace string - Metric sub-namespace
- applied
Rules List<AlertTemplate Template Rule Applied Rule> - List of alert rules generated by this rule, returned by the service side 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.
- check
Interval Integer - Evaluation interval (seconds), returned by the service side
- condition
Operator String - Multi-condition combination method
- evaluation
Count Integer - Evaluation Count
- evaluation
Interval Integer - Evaluation interval (seconds)
- level
Conditions List<AlertTemplate Template Rule Level Condition> - Tiered alert condition list 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 - Enable multi-condition mode
- name String
- Rule name
- namespace String
- Metric namespace
- no
Data AlertTemplate Template Rule No Data - No Data Alert Configuration
- sub
Namespace String - Metric sub-namespace
- applied
Rules AlertTemplate Template Rule Applied Rule[] - List of alert rules generated by this rule, returned by the service side 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.
- check
Interval number - Evaluation interval (seconds), returned by the service side
- condition
Operator string - Multi-condition combination method
- evaluation
Count number - Evaluation Count
- evaluation
Interval number - Evaluation interval (seconds)
- level
Conditions AlertTemplate Template Rule Level Condition[] - Tiered alert condition list 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 - Enable multi-condition mode
- name string
- Rule name
- namespace string
- Metric namespace
- no
Data AlertTemplate Template Rule No Data - No Data Alert Configuration
- sub
Namespace string - Metric sub-namespace
- applied_
rules Sequence[AlertTemplate Template Rule Applied Rule] - List of alert rules generated by this rule, returned by the service side 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.
- check_
interval int - Evaluation interval (seconds), returned by the service side
- condition_
operator str - Multi-condition combination method
- evaluation_
count int - Evaluation Count
- evaluation_
interval int - Evaluation interval (seconds)
- level_
conditions Sequence[AlertTemplate Template Rule Level Condition] - Tiered alert condition list 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 - Enable multi-condition mode
- name str
- Rule name
- namespace str
- Metric namespace
- no_
data AlertTemplate Template Rule No Data - No Data Alert Configuration
- sub_
namespace str - Metric sub-namespace
- applied
Rules List<Property Map> - List of alert rules generated by this rule, returned by the service side 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.
- check
Interval Number - Evaluation interval (seconds), returned by the service side
- condition
Operator String - Multi-condition combination method
- evaluation
Count Number - Evaluation Count
- evaluation
Interval Number - Evaluation interval (seconds)
- level
Conditions List<Property Map> - Tiered alert condition list 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 - Enable multi-condition mode
- name String
- Rule name
- namespace String
- Metric namespace
- no
Data Property Map - No Data Alert Configuration
- sub
Namespace String - Metric sub-namespace
AlertTemplateTemplateRuleAppliedRule, AlertTemplateTemplateRuleAppliedRuleArgs
- Id string
- ID of the issued alert rule
- Name string
- Name of the issued alert rule
- Object
Group stringId - Associated object group ID
- Object
Id string - Associated object ID
- Id string
- ID of the issued alert rule
- Name string
- Name of the issued alert rule
- Object
Group stringId - Associated object group ID
- Object
Id string - Associated object ID
- id string
- ID of the issued alert rule
- name string
- Name of the issued alert rule
- object_
group_ stringid - Associated object group ID
- object_
id string - Associated object ID
- id String
- ID of the issued alert rule
- name String
- Name of the issued alert rule
- object
Group StringId - Associated object group ID
- object
Id String - Associated object ID
- id string
- ID of the issued alert rule
- name string
- Name of the issued alert rule
- object
Group stringId - Associated object group ID
- object
Id string - Associated object ID
- id str
- ID of the issued alert rule
- name str
- Name of the issued alert rule
- object_
group_ strid - Associated object group ID
- object_
id str - Associated object ID
- id String
- ID of the issued alert rule
- name String
- Name of the issued alert rule
- object
Group StringId - Associated object group ID
- object
Id String - Associated object ID
AlertTemplateTemplateRuleLevelCondition, AlertTemplateTemplateRuleLevelConditionArgs
- Conditions
List<Volcengine.
Alert Template Template Rule Level Condition Condition> - Condition list 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 severity, options: notice/warning/critical
- Conditions
[]Alert
Template Template Rule Level Condition Condition - Condition list 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 severity, options: notice/warning/critical
- conditions list(object)
- Condition list 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 severity, options: notice/warning/critical
- conditions
List<Alert
Template Template Rule Level Condition Condition> - Condition list 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 severity, options: notice/warning/critical
- conditions
Alert
Template Template Rule Level Condition Condition[] - Condition list 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 severity, options: notice/warning/critical
- conditions
Sequence[Alert
Template Template Rule Level Condition Condition] - Condition list 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 severity, options: notice/warning/critical
- conditions List<Property Map>
- Condition list 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 severity, options: notice/warning/critical
AlertTemplateTemplateRuleLevelConditionCondition, AlertTemplateTemplateRuleLevelConditionConditionArgs
- Comparison
Operator string - Comparison operators, such as >, >=, <, <=, !=, etc.
- Evaluation
Window int - Evaluation window (seconds)
- Metric
Name string - Metric name
- Metric
Unit string - Metric unit
- Statistics string
- Statistic method
- Threshold string
- Trigger threshold
- Comparison
Operator string - Comparison operators, such as >, >=, <, <=, !=, etc.
- Evaluation
Window int - Evaluation window (seconds)
- Metric
Name string - Metric name
- Metric
Unit string - Metric unit
- Statistics string
- Statistic method
- Threshold string
- Trigger threshold
- comparison_
operator string - Comparison operators, such as >, >=, <, <=, !=, etc.
- evaluation_
window number - Evaluation window (seconds)
- metric_
name string - Metric name
- metric_
unit string - Metric unit
- statistics string
- Statistic method
- threshold string
- Trigger threshold
- comparison
Operator String - Comparison operators, such as >, >=, <, <=, !=, etc.
- evaluation
Window Integer - Evaluation window (seconds)
- metric
Name String - Metric name
- metric
Unit String - Metric unit
- statistics String
- Statistic method
- threshold String
- Trigger threshold
- comparison
Operator string - Comparison operators, such as >, >=, <, <=, !=, etc.
- evaluation
Window number - Evaluation window (seconds)
- metric
Name string - Metric name
- metric
Unit string - Metric unit
- statistics string
- Statistic method
- threshold string
- Trigger threshold
- comparison_
operator str - Comparison operators, such as >, >=, <, <=, !=, etc.
- evaluation_
window int - Evaluation window (seconds)
- metric_
name str - Metric name
- metric_
unit str - Metric unit
- statistics str
- Statistic method
- threshold str
- Trigger threshold
- comparison
Operator String - Comparison operators, such as >, >=, <, <=, !=, etc.
- evaluation
Window Number - Evaluation window (seconds)
- metric
Name String - Metric name
- metric
Unit String - Metric unit
- statistics String
- Statistic method
- threshold String
- Trigger threshold
AlertTemplateTemplateRuleNoData, AlertTemplateTemplateRuleNoDataArgs
- Enable bool
- Enable no data alert
- Evaluation
Count int - Number of evaluation periods for no data determination
- Level string
- Alert severity when triggered by no data
- Enable bool
- Enable no data alert
- Evaluation
Count int - Number of evaluation periods for no data determination
- Level string
- Alert severity when triggered by no data
- enable bool
- Enable no data alert
- evaluation_
count number - Number of evaluation periods for no data determination
- level string
- Alert severity when triggered by no data
- enable Boolean
- Enable no data alert
- evaluation
Count Integer - Number of evaluation periods for no data determination
- level String
- Alert severity when triggered by no data
- enable boolean
- Enable no data alert
- evaluation
Count number - Number of evaluation periods for no data determination
- level string
- Alert severity when triggered by no data
- enable bool
- Enable no data alert
- evaluation_
count int - Number of evaluation periods for no data determination
- level str
- Alert severity when triggered by no data
- enable Boolean
- Enable no data alert
- evaluation
Count Number - Number of evaluation periods for no data determination
- level String
- Alert severity when triggered by no data
Import
$ pulumi import volcenginecc:cloudmonitor/alertTemplate:AlertTemplate example "template_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Oct 15, 2026 by Volcengine