1. Registry
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. cloudmonitor
  6. AlertTemplate
Viewing docs for volcenginecc v0.0.63
published on Thursday, Oct 15, 2026 by Volcengine
volcenginecc logo volcenginecc
Viewing docs for volcenginecc v0.0.63
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
    NotifyMode string
    Notification mode
    SilenceTime int
    Silence period (minutes)
    Description string
    Alert template description
    NoData Volcengine.AlertTemplateNoData
    No Data Alert Configuration
    ObjectGroups List<Volcengine.AlertTemplateObjectGroup>
    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.
    ProjectName string
    Project name of the alert template
    RecoveryNotify Volcengine.AlertTemplateRecoveryNotify
    Alert recovery notification configuration
    TemplateRules List<Volcengine.AlertTemplateTemplateRule>
    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
    NotifyMode string
    Notification mode
    SilenceTime int
    Silence period (minutes)
    Description string
    Alert template description
    NoData AlertTemplateNoDataArgs
    No Data Alert Configuration
    ObjectGroups []AlertTemplateObjectGroupArgs
    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.
    ProjectName string
    Project name of the alert template
    RecoveryNotify AlertTemplateRecoveryNotifyArgs
    Alert recovery notification configuration
    TemplateRules []AlertTemplateTemplateRuleArgs
    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
    notifyMode String
    Notification mode
    silenceTime Integer
    Silence period (minutes)
    description String
    Alert template description
    noData AlertTemplateNoData
    No Data Alert Configuration
    objectGroups List<AlertTemplateObjectGroup>
    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.
    projectName String
    Project name of the alert template
    recoveryNotify AlertTemplateRecoveryNotify
    Alert recovery notification configuration
    templateRules List<AlertTemplateTemplateRule>
    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
    notifyMode string
    Notification mode
    silenceTime number
    Silence period (minutes)
    description string
    Alert template description
    noData AlertTemplateNoData
    No Data Alert Configuration
    objectGroups AlertTemplateObjectGroup[]
    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.
    projectName string
    Project name of the alert template
    recoveryNotify AlertTemplateRecoveryNotify
    Alert recovery notification configuration
    templateRules AlertTemplateTemplateRule[]
    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 AlertTemplateNoDataArgs
    No Data Alert Configuration
    object_groups Sequence[AlertTemplateObjectGroupArgs]
    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 AlertTemplateRecoveryNotifyArgs
    Alert recovery notification configuration
    template_rules Sequence[AlertTemplateTemplateRuleArgs]
    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
    notifyMode String
    Notification mode
    silenceTime Number
    Silence period (minutes)
    description String
    Alert template description
    noData Property Map
    No Data Alert Configuration
    objectGroups 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.
    projectName String
    Project name of the alert template
    recoveryNotify Property Map
    Alert recovery notification configuration
    templateRules 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:

    AppliedProjectName string
    Project name where the alert template has been applied, returned by the service side
    CreatedAt string
    Creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateId string
    Alert template ID
    UpdatedAt string
    Update time
    AppliedProjectName string
    Project name where the alert template has been applied, returned by the service side
    CreatedAt string
    Creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    TemplateId string
    Alert template ID
    UpdatedAt string
    Update time
    applied_project_name string
    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
    appliedProjectName String
    Project name where the alert template has been applied, returned by the service side
    createdAt String
    Creation time
    id String
    The provider-assigned unique ID for this managed resource.
    templateId String
    Alert template ID
    updatedAt String
    Update time
    appliedProjectName string
    Project name where the alert template has been applied, returned by the service side
    createdAt string
    Creation time
    id string
    The provider-assigned unique ID for this managed resource.
    templateId string
    Alert template ID
    updatedAt string
    Update time
    applied_project_name str
    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
    appliedProjectName String
    Project name where the alert template has been applied, returned by the service side
    createdAt String
    Creation time
    id String
    The provider-assigned unique ID for this managed resource.
    templateId String
    Alert template ID
    updatedAt 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) -> AlertTemplate
    func 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.
    The following state arguments are supported:
    AppliedProjectName string
    Project name where the alert template has been applied, returned by the service side
    CreatedAt string
    Creation time
    Description string
    Alert template description
    Name string
    Alert template name
    NoData Volcengine.AlertTemplateNoData
    No Data Alert Configuration
    NotifyMode string
    Notification mode
    ObjectGroups List<Volcengine.AlertTemplateObjectGroup>
    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.
    ProjectName string
    Project name of the alert template
    RecoveryNotify Volcengine.AlertTemplateRecoveryNotify
    Alert recovery notification configuration
    SilenceTime int
    Silence period (minutes)
    TemplateId string
    Alert template ID
    TemplateRules List<Volcengine.AlertTemplateTemplateRule>
    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.
    UpdatedAt string
    Update time
    AppliedProjectName string
    Project name where the alert template has been applied, returned by the service side
    CreatedAt string
    Creation time
    Description string
    Alert template description
    Name string
    Alert template name
    NoData AlertTemplateNoDataArgs
    No Data Alert Configuration
    NotifyMode string
    Notification mode
    ObjectGroups []AlertTemplateObjectGroupArgs
    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.
    ProjectName string
    Project name of the alert template
    RecoveryNotify AlertTemplateRecoveryNotifyArgs
    Alert recovery notification configuration
    SilenceTime int
    Silence period (minutes)
    TemplateId string
    Alert template ID
    TemplateRules []AlertTemplateTemplateRuleArgs
    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.
    UpdatedAt string
    Update time
    applied_project_name string
    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
    appliedProjectName String
    Project name where the alert template has been applied, returned by the service side
    createdAt String
    Creation time
    description String
    Alert template description
    name String
    Alert template name
    noData AlertTemplateNoData
    No Data Alert Configuration
    notifyMode String
    Notification mode
    objectGroups List<AlertTemplateObjectGroup>
    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.
    projectName String
    Project name of the alert template
    recoveryNotify AlertTemplateRecoveryNotify
    Alert recovery notification configuration
    silenceTime Integer
    Silence period (minutes)
    templateId String
    Alert template ID
    templateRules List<AlertTemplateTemplateRule>
    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.
    updatedAt String
    Update time
    appliedProjectName string
    Project name where the alert template has been applied, returned by the service side
    createdAt string
    Creation time
    description string
    Alert template description
    name string
    Alert template name
    noData AlertTemplateNoData
    No Data Alert Configuration
    notifyMode string
    Notification mode
    objectGroups AlertTemplateObjectGroup[]
    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.
    projectName string
    Project name of the alert template
    recoveryNotify AlertTemplateRecoveryNotify
    Alert recovery notification configuration
    silenceTime number
    Silence period (minutes)
    templateId string
    Alert template ID
    templateRules AlertTemplateTemplateRule[]
    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.
    updatedAt string
    Update time
    applied_project_name str
    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 AlertTemplateNoDataArgs
    No Data Alert Configuration
    notify_mode str
    Notification mode
    object_groups Sequence[AlertTemplateObjectGroupArgs]
    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 AlertTemplateRecoveryNotifyArgs
    Alert recovery notification configuration
    silence_time int
    Silence period (minutes)
    template_id str
    Alert template ID
    template_rules Sequence[AlertTemplateTemplateRuleArgs]
    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
    appliedProjectName String
    Project name where the alert template has been applied, returned by the service side
    createdAt String
    Creation time
    description String
    Alert template description
    name String
    Alert template name
    noData Property Map
    No Data Alert Configuration
    notifyMode String
    Notification mode
    objectGroups 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.
    projectName String
    Project name of the alert template
    recoveryNotify Property Map
    Alert recovery notification configuration
    silenceTime Number
    Silence period (minutes)
    templateId String
    Alert template ID
    templateRules 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.
    updatedAt String
    Update time

    Supporting Types

    AlertTemplateNoData, AlertTemplateNoDataArgs

    Enable bool
    Enable no data alert
    EvaluationCount int
    Number of evaluation periods for no data determination
    Level string
    Alert severity when triggered by no data
    Enable bool
    Enable no data alert
    EvaluationCount 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
    evaluationCount Integer
    Number of evaluation periods for no data determination
    level String
    Alert severity when triggered by no data
    enable boolean
    Enable no data alert
    evaluationCount 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
    evaluationCount Number
    Number of evaluation periods for no data determination
    level String
    Alert severity when triggered by no data

    AlertTemplateObjectGroup, AlertTemplateObjectGroupArgs

    AlertMethods List<string>
    Alert notification method list
    ContactGroupIds List<string>
    Contact Group ID List
    EffectEndAt string
    Effective end time
    EffectStartAt string
    Effective start time
    NotificationId string
    Notification policy ID
    NotifyTemplates List<Volcengine.AlertTemplateObjectGroupNotifyTemplate>
    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.
    ObjectGroupId string
    Object group ID
    ObjectGroupName string
    Object group name, returned by the service side
    Webhook string
    Webhook address
    WebhookIds List<string>
    Webhook ID list
    AlertMethods []string
    Alert notification method list
    ContactGroupIds []string
    Contact Group ID List
    EffectEndAt string
    Effective end time
    EffectStartAt string
    Effective start time
    NotificationId string
    Notification policy ID
    NotifyTemplates []AlertTemplateObjectGroupNotifyTemplate
    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.
    ObjectGroupId string
    Object group ID
    ObjectGroupName string
    Object group name, returned by the service side
    Webhook string
    Webhook address
    WebhookIds []string
    Webhook ID list
    alert_methods list(string)
    Alert notification method list
    contact_group_ids list(string)
    Contact Group ID List
    effect_end_at string
    Effective end time
    effect_start_at string
    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_id string
    Object group ID
    object_group_name string
    Object group name, returned by the service side
    webhook string
    Webhook address
    webhook_ids list(string)
    Webhook ID list
    alertMethods List<String>
    Alert notification method list
    contactGroupIds List<String>
    Contact Group ID List
    effectEndAt String
    Effective end time
    effectStartAt String
    Effective start time
    notificationId String
    Notification policy ID
    notifyTemplates List<AlertTemplateObjectGroupNotifyTemplate>
    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.
    objectGroupId String
    Object group ID
    objectGroupName String
    Object group name, returned by the service side
    webhook String
    Webhook address
    webhookIds List<String>
    Webhook ID list
    alertMethods string[]
    Alert notification method list
    contactGroupIds string[]
    Contact Group ID List
    effectEndAt string
    Effective end time
    effectStartAt string
    Effective start time
    notificationId string
    Notification policy ID
    notifyTemplates AlertTemplateObjectGroupNotifyTemplate[]
    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.
    objectGroupId string
    Object group ID
    objectGroupName string
    Object group name, returned by the service side
    webhook string
    Webhook address
    webhookIds string[]
    Webhook ID list
    alert_methods Sequence[str]
    Alert notification method list
    contact_group_ids Sequence[str]
    Contact Group ID List
    effect_end_at str
    Effective end time
    effect_start_at str
    Effective start time
    notification_id str
    Notification policy ID
    notify_templates Sequence[AlertTemplateObjectGroupNotifyTemplate]
    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_id str
    Object group ID
    object_group_name str
    Object group name, returned by the service side
    webhook str
    Webhook address
    webhook_ids Sequence[str]
    Webhook ID list
    alertMethods List<String>
    Alert notification method list
    contactGroupIds List<String>
    Contact Group ID List
    effectEndAt String
    Effective end time
    effectStartAt String
    Effective start time
    notificationId String
    Notification policy ID
    notifyTemplates 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.
    objectGroupId String
    Object group ID
    objectGroupName String
    Object group name, returned by the service side
    webhook String
    Webhook address
    webhookIds List<String>
    Webhook ID list

    AlertTemplateObjectGroupNotifyTemplate, AlertTemplateObjectGroupNotifyTemplateArgs

    Channel string
    Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
    NotifyTemplateId string
    Notification template ID
    Channel string
    Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
    NotifyTemplateId string
    Notification template ID
    channel string
    Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
    notify_template_id string
    Notification template ID
    channel String
    Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
    notifyTemplateId String
    Notification template ID
    channel string
    Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
    notifyTemplateId string
    Notification template ID
    channel str
    Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
    notify_template_id str
    Notification template ID
    channel String
    Notification channel, options: email/sms/phone/lark/dingtalk/wecom/slack/api
    notifyTemplateId String
    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

    AppliedRules List<Volcengine.AlertTemplateTemplateRuleAppliedRule>
    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.
    CheckInterval int
    Evaluation interval (seconds), returned by the service side
    ConditionOperator string
    Multi-condition combination method
    EvaluationCount int
    Evaluation Count
    EvaluationInterval int
    Evaluation interval (seconds)
    LevelConditions List<Volcengine.AlertTemplateTemplateRuleLevelCondition>
    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.
    MultipleConditions bool
    Enable multi-condition mode
    Name string
    Rule name
    Namespace string
    Metric namespace
    NoData Volcengine.AlertTemplateTemplateRuleNoData
    No Data Alert Configuration
    SubNamespace string
    Metric sub-namespace
    AppliedRules []AlertTemplateTemplateRuleAppliedRule
    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.
    CheckInterval int
    Evaluation interval (seconds), returned by the service side
    ConditionOperator string
    Multi-condition combination method
    EvaluationCount int
    Evaluation Count
    EvaluationInterval int
    Evaluation interval (seconds)
    LevelConditions []AlertTemplateTemplateRuleLevelCondition
    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.
    MultipleConditions bool
    Enable multi-condition mode
    Name string
    Rule name
    Namespace string
    Metric namespace
    NoData AlertTemplateTemplateRuleNoData
    No Data Alert Configuration
    SubNamespace 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
    appliedRules List<AlertTemplateTemplateRuleAppliedRule>
    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.
    checkInterval Integer
    Evaluation interval (seconds), returned by the service side
    conditionOperator String
    Multi-condition combination method
    evaluationCount Integer
    Evaluation Count
    evaluationInterval Integer
    Evaluation interval (seconds)
    levelConditions List<AlertTemplateTemplateRuleLevelCondition>
    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.
    multipleConditions Boolean
    Enable multi-condition mode
    name String
    Rule name
    namespace String
    Metric namespace
    noData AlertTemplateTemplateRuleNoData
    No Data Alert Configuration
    subNamespace String
    Metric sub-namespace
    appliedRules AlertTemplateTemplateRuleAppliedRule[]
    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.
    checkInterval number
    Evaluation interval (seconds), returned by the service side
    conditionOperator string
    Multi-condition combination method
    evaluationCount number
    Evaluation Count
    evaluationInterval number
    Evaluation interval (seconds)
    levelConditions AlertTemplateTemplateRuleLevelCondition[]
    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.
    multipleConditions boolean
    Enable multi-condition mode
    name string
    Rule name
    namespace string
    Metric namespace
    noData AlertTemplateTemplateRuleNoData
    No Data Alert Configuration
    subNamespace string
    Metric sub-namespace
    applied_rules Sequence[AlertTemplateTemplateRuleAppliedRule]
    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[AlertTemplateTemplateRuleLevelCondition]
    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 AlertTemplateTemplateRuleNoData
    No Data Alert Configuration
    sub_namespace str
    Metric sub-namespace
    appliedRules 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.
    checkInterval Number
    Evaluation interval (seconds), returned by the service side
    conditionOperator String
    Multi-condition combination method
    evaluationCount Number
    Evaluation Count
    evaluationInterval Number
    Evaluation interval (seconds)
    levelConditions 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.
    multipleConditions Boolean
    Enable multi-condition mode
    name String
    Rule name
    namespace String
    Metric namespace
    noData Property Map
    No Data Alert Configuration
    subNamespace String
    Metric sub-namespace

    AlertTemplateTemplateRuleAppliedRule, AlertTemplateTemplateRuleAppliedRuleArgs

    Id string
    ID of the issued alert rule
    Name string
    Name of the issued alert rule
    ObjectGroupId string
    Associated object group ID
    ObjectId string
    Associated object ID
    Id string
    ID of the issued alert rule
    Name string
    Name of the issued alert rule
    ObjectGroupId string
    Associated object group ID
    ObjectId string
    Associated object ID
    id string
    ID of the issued alert rule
    name string
    Name of the issued alert rule
    object_group_id string
    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
    objectGroupId String
    Associated object group ID
    objectId String
    Associated object ID
    id string
    ID of the issued alert rule
    name string
    Name of the issued alert rule
    objectGroupId string
    Associated object group ID
    objectId string
    Associated object ID
    id str
    ID of the issued alert rule
    name str
    Name of the issued alert rule
    object_group_id str
    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
    objectGroupId String
    Associated object group ID
    objectId String
    Associated object ID

    AlertTemplateTemplateRuleLevelCondition, AlertTemplateTemplateRuleLevelConditionArgs

    Conditions List<Volcengine.AlertTemplateTemplateRuleLevelConditionCondition>
    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 []AlertTemplateTemplateRuleLevelConditionCondition
    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<AlertTemplateTemplateRuleLevelConditionCondition>
    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 AlertTemplateTemplateRuleLevelConditionCondition[]
    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[AlertTemplateTemplateRuleLevelConditionCondition]
    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

    ComparisonOperator string
    Comparison operators, such as >, >=, <, <=, !=, etc.
    EvaluationWindow int
    Evaluation window (seconds)
    MetricName string
    Metric name
    MetricUnit string
    Metric unit
    Statistics string
    Statistic method
    Threshold string
    Trigger threshold
    ComparisonOperator string
    Comparison operators, such as >, >=, <, <=, !=, etc.
    EvaluationWindow int
    Evaluation window (seconds)
    MetricName string
    Metric name
    MetricUnit 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
    comparisonOperator String
    Comparison operators, such as >, >=, <, <=, !=, etc.
    evaluationWindow Integer
    Evaluation window (seconds)
    metricName String
    Metric name
    metricUnit String
    Metric unit
    statistics String
    Statistic method
    threshold String
    Trigger threshold
    comparisonOperator string
    Comparison operators, such as >, >=, <, <=, !=, etc.
    evaluationWindow number
    Evaluation window (seconds)
    metricName string
    Metric name
    metricUnit 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
    comparisonOperator String
    Comparison operators, such as >, >=, <, <=, !=, etc.
    evaluationWindow Number
    Evaluation window (seconds)
    metricName String
    Metric name
    metricUnit String
    Metric unit
    statistics String
    Statistic method
    threshold String
    Trigger threshold

    AlertTemplateTemplateRuleNoData, AlertTemplateTemplateRuleNoDataArgs

    Enable bool
    Enable no data alert
    EvaluationCount int
    Number of evaluation periods for no data determination
    Level string
    Alert severity when triggered by no data
    Enable bool
    Enable no data alert
    EvaluationCount 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
    evaluationCount Integer
    Number of evaluation periods for no data determination
    level String
    Alert severity when triggered by no data
    enable boolean
    Enable no data alert
    evaluationCount 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
    evaluationCount 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 volcenginecc Terraform Provider.
    volcenginecc logo volcenginecc
    Viewing docs for volcenginecc v0.0.63
    published on Thursday, Oct 15, 2026 by Volcengine

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial