1. Packages
  2. Alicloud Provider
  3. API Docs
  4. sls
  5. Alert
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.sls.Alert

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    Provides a SLS Alert resource.

    For information about SLS Alert and how to use it, see What is Alert.

    NOTE: Available since v1.223.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const alertName = config.get("alertName") || "openapi-terraform-alert";
    const projectName = config.get("projectName") || "terraform-alert-example";
    const _default = new random.index.Integer("default", {
        min: 10000,
        max: 99999,
    });
    const defaultINsMgl = new alicloud.log.Project("defaultINsMgl", {
        description: `${projectName}-${_default.result}`,
        projectName: `${projectName}-${_default.result}`,
    });
    const defaultAlert = new alicloud.sls.Alert("default", {
        schedule: {
            type: "FixedRate",
            runImmdiately: true,
            interval: "1m",
            timeZone: "+0800",
            delay: 10,
        },
        displayName: "openapi-terraform",
        description: "create alert",
        status: "ENABLED",
        configuration: {
            groupConfiguration: {
                fields: [
                    "a",
                    "b",
                ],
                type: "no_group",
            },
            noDataFire: false,
            version: "2",
            severityConfigurations: [{
                severity: 6,
                evalCondition: {
                    countCondition: "cnt > 0",
                    condition: "__count__ > 1",
                },
            }],
            labels: [{
                key: "a",
                value: "b",
            }],
            autoAnnotation: true,
            templateConfiguration: {
                lang: "cn",
                tokens: {
                    a: "b",
                },
                annotations: {
                    x: "y",
                },
                templateId: "sls.app.ack.autoscaler.cluster_unhealthy",
                type: "sys",
                version: "1.0",
            },
            muteUntil: 0,
            annotations: [{
                key: "x",
                value: "y",
            }],
            sendResolved: false,
            threshold: 1,
            sinkCms: {
                enabled: false,
            },
            conditionConfiguration: {
                condition: "cnt > 3",
                countCondition: "__count__ < 3",
            },
            policyConfiguration: {
                alertPolicyId: "sls.builtin.dynamic",
                actionPolicyId: "wkb-action",
                repeatInterval: "1m",
            },
            dashboard: "internal-alert",
            type: "tpl",
            queryLists: [
                {
                    ui: "{}",
                    roleArn: "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
                    query: "* | select *",
                    timeSpanType: "Relative",
                    project: defaultINsMgl.projectName,
                    powerSqlMode: "disable",
                    dashboardId: "wkb-dashboard",
                    chartTitle: "wkb-chart",
                    start: "-15m",
                    end: "now",
                    storeType: "log",
                    store: "alert",
                    region: "cn-shanghai",
                },
                {
                    storeType: "meta",
                    store: "user.rds_ip_whitelist",
                },
                {
                    storeType: "meta",
                    store: "myexample1",
                },
            ],
            joinConfigurations: [
                {
                    type: "no_join",
                    condition: "aa",
                },
                {
                    type: "cross_join",
                    condition: "qqq",
                },
                {
                    type: "inner_join",
                    condition: "fefefe",
                },
            ],
            sinkEventStore: {
                enabled: true,
                endpoint: "cn-shanghai-intranet.log.aliyuncs.com",
                project: "wkb-wangren",
                eventStore: "alert",
                roleArn: "acs:ram::1654218965343050:role/aliyunlogetlrole",
            },
            sinkAlerthub: {
                enabled: false,
            },
            noDataSeverity: 6,
            tags: [
                "wkb",
                "wangren",
                "sls",
            ],
        },
        alertName: alertName,
        projectName: defaultINsMgl.projectName,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    alert_name = config.get("alertName")
    if alert_name is None:
        alert_name = "openapi-terraform-alert"
    project_name = config.get("projectName")
    if project_name is None:
        project_name = "terraform-alert-example"
    default = random.index.Integer("default",
        min=10000,
        max=99999)
    default_ins_mgl = alicloud.log.Project("defaultINsMgl",
        description=f"{project_name}-{default['result']}",
        project_name=f"{project_name}-{default['result']}")
    default_alert = alicloud.sls.Alert("default",
        schedule={
            "type": "FixedRate",
            "run_immdiately": True,
            "interval": "1m",
            "time_zone": "+0800",
            "delay": 10,
        },
        display_name="openapi-terraform",
        description="create alert",
        status="ENABLED",
        configuration={
            "group_configuration": {
                "fields": [
                    "a",
                    "b",
                ],
                "type": "no_group",
            },
            "no_data_fire": False,
            "version": "2",
            "severity_configurations": [{
                "severity": 6,
                "eval_condition": {
                    "count_condition": "cnt > 0",
                    "condition": "__count__ > 1",
                },
            }],
            "labels": [{
                "key": "a",
                "value": "b",
            }],
            "auto_annotation": True,
            "template_configuration": {
                "lang": "cn",
                "tokens": {
                    "a": "b",
                },
                "annotations": {
                    "x": "y",
                },
                "template_id": "sls.app.ack.autoscaler.cluster_unhealthy",
                "type": "sys",
                "version": "1.0",
            },
            "mute_until": 0,
            "annotations": [{
                "key": "x",
                "value": "y",
            }],
            "send_resolved": False,
            "threshold": 1,
            "sink_cms": {
                "enabled": False,
            },
            "condition_configuration": {
                "condition": "cnt > 3",
                "count_condition": "__count__ < 3",
            },
            "policy_configuration": {
                "alert_policy_id": "sls.builtin.dynamic",
                "action_policy_id": "wkb-action",
                "repeat_interval": "1m",
            },
            "dashboard": "internal-alert",
            "type": "tpl",
            "query_lists": [
                {
                    "ui": "{}",
                    "role_arn": "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
                    "query": "* | select *",
                    "time_span_type": "Relative",
                    "project": default_ins_mgl.project_name,
                    "power_sql_mode": "disable",
                    "dashboard_id": "wkb-dashboard",
                    "chart_title": "wkb-chart",
                    "start": "-15m",
                    "end": "now",
                    "store_type": "log",
                    "store": "alert",
                    "region": "cn-shanghai",
                },
                {
                    "store_type": "meta",
                    "store": "user.rds_ip_whitelist",
                },
                {
                    "store_type": "meta",
                    "store": "myexample1",
                },
            ],
            "join_configurations": [
                {
                    "type": "no_join",
                    "condition": "aa",
                },
                {
                    "type": "cross_join",
                    "condition": "qqq",
                },
                {
                    "type": "inner_join",
                    "condition": "fefefe",
                },
            ],
            "sink_event_store": {
                "enabled": True,
                "endpoint": "cn-shanghai-intranet.log.aliyuncs.com",
                "project": "wkb-wangren",
                "event_store": "alert",
                "role_arn": "acs:ram::1654218965343050:role/aliyunlogetlrole",
            },
            "sink_alerthub": {
                "enabled": False,
            },
            "no_data_severity": 6,
            "tags": [
                "wkb",
                "wangren",
                "sls",
            ],
        },
        alert_name=alert_name,
        project_name=default_ins_mgl.project_name)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sls"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		alertName := "openapi-terraform-alert"
    		if param := cfg.Get("alertName"); param != "" {
    			alertName = param
    		}
    		projectName := "terraform-alert-example"
    		if param := cfg.Get("projectName"); param != "" {
    			projectName = param
    		}
    		_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
    			Min: 10000,
    			Max: 99999,
    		})
    		if err != nil {
    			return err
    		}
    		defaultINsMgl, err := log.NewProject(ctx, "defaultINsMgl", &log.ProjectArgs{
    			Description: pulumi.Sprintf("%v-%v", projectName, _default.Result),
    			ProjectName: pulumi.Sprintf("%v-%v", projectName, _default.Result),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sls.NewAlert(ctx, "default", &sls.AlertArgs{
    			Schedule: &sls.AlertScheduleArgs{
    				Type:          pulumi.String("FixedRate"),
    				RunImmdiately: pulumi.Bool(true),
    				Interval:      pulumi.String("1m"),
    				TimeZone:      pulumi.String("+0800"),
    				Delay:         pulumi.Int(10),
    			},
    			DisplayName: pulumi.String("openapi-terraform"),
    			Description: pulumi.String("create alert"),
    			Status:      pulumi.String("ENABLED"),
    			Configuration: &sls.AlertConfigurationArgs{
    				GroupConfiguration: &sls.AlertConfigurationGroupConfigurationArgs{
    					Fields: pulumi.StringArray{
    						pulumi.String("a"),
    						pulumi.String("b"),
    					},
    					Type: pulumi.String("no_group"),
    				},
    				NoDataFire: pulumi.Bool(false),
    				Version:    pulumi.String("2"),
    				SeverityConfigurations: sls.AlertConfigurationSeverityConfigurationArray{
    					&sls.AlertConfigurationSeverityConfigurationArgs{
    						Severity: pulumi.Int(6),
    						EvalCondition: &sls.AlertConfigurationSeverityConfigurationEvalConditionArgs{
    							CountCondition: pulumi.String("cnt > 0"),
    							Condition:      pulumi.String("__count__ > 1"),
    						},
    					},
    				},
    				Labels: sls.AlertConfigurationLabelArray{
    					&sls.AlertConfigurationLabelArgs{
    						Key:   pulumi.String("a"),
    						Value: pulumi.String("b"),
    					},
    				},
    				AutoAnnotation: pulumi.Bool(true),
    				TemplateConfiguration: &sls.AlertConfigurationTemplateConfigurationArgs{
    					Lang: pulumi.String("cn"),
    					Tokens: pulumi.StringMap{
    						"a": pulumi.String("b"),
    					},
    					Annotations: pulumi.StringMap{
    						"x": pulumi.String("y"),
    					},
    					TemplateId: pulumi.String("sls.app.ack.autoscaler.cluster_unhealthy"),
    					Type:       pulumi.String("sys"),
    					Version:    pulumi.String("1.0"),
    				},
    				MuteUntil: pulumi.Int(0),
    				Annotations: sls.AlertConfigurationAnnotationArray{
    					&sls.AlertConfigurationAnnotationArgs{
    						Key:   pulumi.String("x"),
    						Value: pulumi.String("y"),
    					},
    				},
    				SendResolved: pulumi.Bool(false),
    				Threshold:    pulumi.Int(1),
    				SinkCms: &sls.AlertConfigurationSinkCmsArgs{
    					Enabled: pulumi.Bool(false),
    				},
    				ConditionConfiguration: &sls.AlertConfigurationConditionConfigurationArgs{
    					Condition:      pulumi.String("cnt > 3"),
    					CountCondition: pulumi.String("__count__ < 3"),
    				},
    				PolicyConfiguration: &sls.AlertConfigurationPolicyConfigurationArgs{
    					AlertPolicyId:  pulumi.String("sls.builtin.dynamic"),
    					ActionPolicyId: pulumi.String("wkb-action"),
    					RepeatInterval: pulumi.String("1m"),
    				},
    				Dashboard: pulumi.String("internal-alert"),
    				Type:      pulumi.String("tpl"),
    				QueryLists: sls.AlertConfigurationQueryListArray{
    					&sls.AlertConfigurationQueryListArgs{
    						Ui:           pulumi.String("{}"),
    						RoleArn:      pulumi.String("acs:ram::1654218965343050:role/aliyunslsalertmonitorrole"),
    						Query:        pulumi.String("* | select *"),
    						TimeSpanType: pulumi.String("Relative"),
    						Project:      defaultINsMgl.ProjectName,
    						PowerSqlMode: pulumi.String("disable"),
    						DashboardId:  pulumi.String("wkb-dashboard"),
    						ChartTitle:   pulumi.String("wkb-chart"),
    						Start:        pulumi.String("-15m"),
    						End:          pulumi.String("now"),
    						StoreType:    pulumi.String("log"),
    						Store:        pulumi.String("alert"),
    						Region:       pulumi.String("cn-shanghai"),
    					},
    					&sls.AlertConfigurationQueryListArgs{
    						StoreType: pulumi.String("meta"),
    						Store:     pulumi.String("user.rds_ip_whitelist"),
    					},
    					&sls.AlertConfigurationQueryListArgs{
    						StoreType: pulumi.String("meta"),
    						Store:     pulumi.String("myexample1"),
    					},
    				},
    				JoinConfigurations: sls.AlertConfigurationJoinConfigurationArray{
    					&sls.AlertConfigurationJoinConfigurationArgs{
    						Type:      pulumi.String("no_join"),
    						Condition: pulumi.String("aa"),
    					},
    					&sls.AlertConfigurationJoinConfigurationArgs{
    						Type:      pulumi.String("cross_join"),
    						Condition: pulumi.String("qqq"),
    					},
    					&sls.AlertConfigurationJoinConfigurationArgs{
    						Type:      pulumi.String("inner_join"),
    						Condition: pulumi.String("fefefe"),
    					},
    				},
    				SinkEventStore: &sls.AlertConfigurationSinkEventStoreArgs{
    					Enabled:    pulumi.Bool(true),
    					Endpoint:   pulumi.String("cn-shanghai-intranet.log.aliyuncs.com"),
    					Project:    pulumi.String("wkb-wangren"),
    					EventStore: pulumi.String("alert"),
    					RoleArn:    pulumi.String("acs:ram::1654218965343050:role/aliyunlogetlrole"),
    				},
    				SinkAlerthub: &sls.AlertConfigurationSinkAlerthubArgs{
    					Enabled: pulumi.Bool(false),
    				},
    				NoDataSeverity: pulumi.Int(6),
    				Tags: pulumi.StringArray{
    					pulumi.String("wkb"),
    					pulumi.String("wangren"),
    					pulumi.String("sls"),
    				},
    			},
    			AlertName:   pulumi.String(alertName),
    			ProjectName: defaultINsMgl.ProjectName,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var alertName = config.Get("alertName") ?? "openapi-terraform-alert";
        var projectName = config.Get("projectName") ?? "terraform-alert-example";
        var @default = new Random.Index.Integer("default", new()
        {
            Min = 10000,
            Max = 99999,
        });
    
        var defaultINsMgl = new AliCloud.Log.Project("defaultINsMgl", new()
        {
            Description = $"{projectName}-{@default.Result}",
            ProjectName = $"{projectName}-{@default.Result}",
        });
    
        var defaultAlert = new AliCloud.Sls.Alert("default", new()
        {
            Schedule = new AliCloud.Sls.Inputs.AlertScheduleArgs
            {
                Type = "FixedRate",
                RunImmdiately = true,
                Interval = "1m",
                TimeZone = "+0800",
                Delay = 10,
            },
            DisplayName = "openapi-terraform",
            Description = "create alert",
            Status = "ENABLED",
            Configuration = new AliCloud.Sls.Inputs.AlertConfigurationArgs
            {
                GroupConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationGroupConfigurationArgs
                {
                    Fields = new[]
                    {
                        "a",
                        "b",
                    },
                    Type = "no_group",
                },
                NoDataFire = false,
                Version = "2",
                SeverityConfigurations = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationArgs
                    {
                        Severity = 6,
                        EvalCondition = new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationEvalConditionArgs
                        {
                            CountCondition = "cnt > 0",
                            Condition = "__count__ > 1",
                        },
                    },
                },
                Labels = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationLabelArgs
                    {
                        Key = "a",
                        Value = "b",
                    },
                },
                AutoAnnotation = true,
                TemplateConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationTemplateConfigurationArgs
                {
                    Lang = "cn",
                    Tokens = 
                    {
                        { "a", "b" },
                    },
                    Annotations = 
                    {
                        { "x", "y" },
                    },
                    TemplateId = "sls.app.ack.autoscaler.cluster_unhealthy",
                    Type = "sys",
                    Version = "1.0",
                },
                MuteUntil = 0,
                Annotations = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationAnnotationArgs
                    {
                        Key = "x",
                        Value = "y",
                    },
                },
                SendResolved = false,
                Threshold = 1,
                SinkCms = new AliCloud.Sls.Inputs.AlertConfigurationSinkCmsArgs
                {
                    Enabled = false,
                },
                ConditionConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationConditionConfigurationArgs
                {
                    Condition = "cnt > 3",
                    CountCondition = "__count__ < 3",
                },
                PolicyConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationPolicyConfigurationArgs
                {
                    AlertPolicyId = "sls.builtin.dynamic",
                    ActionPolicyId = "wkb-action",
                    RepeatInterval = "1m",
                },
                Dashboard = "internal-alert",
                Type = "tpl",
                QueryLists = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
                    {
                        Ui = "{}",
                        RoleArn = "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
                        Query = "* | select *",
                        TimeSpanType = "Relative",
                        Project = defaultINsMgl.ProjectName,
                        PowerSqlMode = "disable",
                        DashboardId = "wkb-dashboard",
                        ChartTitle = "wkb-chart",
                        Start = "-15m",
                        End = "now",
                        StoreType = "log",
                        Store = "alert",
                        Region = "cn-shanghai",
                    },
                    new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
                    {
                        StoreType = "meta",
                        Store = "user.rds_ip_whitelist",
                    },
                    new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
                    {
                        StoreType = "meta",
                        Store = "myexample1",
                    },
                },
                JoinConfigurations = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
                    {
                        Type = "no_join",
                        Condition = "aa",
                    },
                    new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
                    {
                        Type = "cross_join",
                        Condition = "qqq",
                    },
                    new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
                    {
                        Type = "inner_join",
                        Condition = "fefefe",
                    },
                },
                SinkEventStore = new AliCloud.Sls.Inputs.AlertConfigurationSinkEventStoreArgs
                {
                    Enabled = true,
                    Endpoint = "cn-shanghai-intranet.log.aliyuncs.com",
                    Project = "wkb-wangren",
                    EventStore = "alert",
                    RoleArn = "acs:ram::1654218965343050:role/aliyunlogetlrole",
                },
                SinkAlerthub = new AliCloud.Sls.Inputs.AlertConfigurationSinkAlerthubArgs
                {
                    Enabled = false,
                },
                NoDataSeverity = 6,
                Tags = new[]
                {
                    "wkb",
                    "wangren",
                    "sls",
                },
            },
            AlertName = alertName,
            ProjectName = defaultINsMgl.ProjectName,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.random.integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.log.Project;
    import com.pulumi.alicloud.log.ProjectArgs;
    import com.pulumi.alicloud.sls.Alert;
    import com.pulumi.alicloud.sls.AlertArgs;
    import com.pulumi.alicloud.sls.inputs.AlertScheduleArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationGroupConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationTemplateConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkCmsArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationConditionConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationPolicyConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkEventStoreArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkAlerthubArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var alertName = config.get("alertName").orElse("openapi-terraform-alert");
            final var projectName = config.get("projectName").orElse("terraform-alert-example");
            var default_ = new Integer("default", IntegerArgs.builder()
                .min(10000)
                .max(99999)
                .build());
    
            var defaultINsMgl = new Project("defaultINsMgl", ProjectArgs.builder()
                .description(String.format("%s-%s", projectName,default_.result()))
                .projectName(String.format("%s-%s", projectName,default_.result()))
                .build());
    
            var defaultAlert = new Alert("defaultAlert", AlertArgs.builder()
                .schedule(AlertScheduleArgs.builder()
                    .type("FixedRate")
                    .runImmdiately("true")
                    .interval("1m")
                    .timeZone("+0800")
                    .delay("10")
                    .build())
                .displayName("openapi-terraform")
                .description("create alert")
                .status("ENABLED")
                .configuration(AlertConfigurationArgs.builder()
                    .groupConfiguration(AlertConfigurationGroupConfigurationArgs.builder()
                        .fields(                    
                            "a",
                            "b")
                        .type("no_group")
                        .build())
                    .noDataFire("false")
                    .version("2")
                    .severityConfigurations(AlertConfigurationSeverityConfigurationArgs.builder()
                        .severity("6")
                        .evalCondition(AlertConfigurationSeverityConfigurationEvalConditionArgs.builder()
                            .countCondition("cnt > 0")
                            .condition("__count__ > 1")
                            .build())
                        .build())
                    .labels(AlertConfigurationLabelArgs.builder()
                        .key("a")
                        .value("b")
                        .build())
                    .autoAnnotation("true")
                    .templateConfiguration(AlertConfigurationTemplateConfigurationArgs.builder()
                        .lang("cn")
                        .tokens(Map.of("a", "b"))
                        .annotations(Map.of("x", "y"))
                        .templateId("sls.app.ack.autoscaler.cluster_unhealthy")
                        .type("sys")
                        .version("1.0")
                        .build())
                    .muteUntil("0")
                    .annotations(AlertConfigurationAnnotationArgs.builder()
                        .key("x")
                        .value("y")
                        .build())
                    .sendResolved("false")
                    .threshold("1")
                    .sinkCms(AlertConfigurationSinkCmsArgs.builder()
                        .enabled("false")
                        .build())
                    .conditionConfiguration(AlertConfigurationConditionConfigurationArgs.builder()
                        .condition("cnt > 3")
                        .countCondition("__count__ < 3")
                        .build())
                    .policyConfiguration(AlertConfigurationPolicyConfigurationArgs.builder()
                        .alertPolicyId("sls.builtin.dynamic")
                        .actionPolicyId("wkb-action")
                        .repeatInterval("1m")
                        .build())
                    .dashboard("internal-alert")
                    .type("tpl")
                    .queryLists(                
                        AlertConfigurationQueryListArgs.builder()
                            .ui("{}")
                            .roleArn("acs:ram::1654218965343050:role/aliyunslsalertmonitorrole")
                            .query("* | select *")
                            .timeSpanType("Relative")
                            .project(defaultINsMgl.projectName())
                            .powerSqlMode("disable")
                            .dashboardId("wkb-dashboard")
                            .chartTitle("wkb-chart")
                            .start("-15m")
                            .end("now")
                            .storeType("log")
                            .store("alert")
                            .region("cn-shanghai")
                            .build(),
                        AlertConfigurationQueryListArgs.builder()
                            .storeType("meta")
                            .store("user.rds_ip_whitelist")
                            .build(),
                        AlertConfigurationQueryListArgs.builder()
                            .storeType("meta")
                            .store("myexample1")
                            .build())
                    .joinConfigurations(                
                        AlertConfigurationJoinConfigurationArgs.builder()
                            .type("no_join")
                            .condition("aa")
                            .build(),
                        AlertConfigurationJoinConfigurationArgs.builder()
                            .type("cross_join")
                            .condition("qqq")
                            .build(),
                        AlertConfigurationJoinConfigurationArgs.builder()
                            .type("inner_join")
                            .condition("fefefe")
                            .build())
                    .sinkEventStore(AlertConfigurationSinkEventStoreArgs.builder()
                        .enabled("true")
                        .endpoint("cn-shanghai-intranet.log.aliyuncs.com")
                        .project("wkb-wangren")
                        .eventStore("alert")
                        .roleArn("acs:ram::1654218965343050:role/aliyunlogetlrole")
                        .build())
                    .sinkAlerthub(AlertConfigurationSinkAlerthubArgs.builder()
                        .enabled("false")
                        .build())
                    .noDataSeverity("6")
                    .tags(                
                        "wkb",
                        "wangren",
                        "sls")
                    .build())
                .alertName(alertName)
                .projectName(defaultINsMgl.projectName())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      alertName:
        type: string
        default: openapi-terraform-alert
      projectName:
        type: string
        default: terraform-alert-example
    resources:
      default:
        type: random:integer
        properties:
          min: 10000
          max: 99999
      defaultINsMgl:
        type: alicloud:log:Project
        properties:
          description: ${projectName}-${default.result}
          projectName: ${projectName}-${default.result}
      defaultAlert:
        type: alicloud:sls:Alert
        name: default
        properties:
          schedule:
            type: FixedRate
            runImmdiately: 'true'
            interval: 1m
            timeZone: '+0800'
            delay: '10'
          displayName: openapi-terraform
          description: create alert
          status: ENABLED
          configuration:
            groupConfiguration:
              fields:
                - a
                - b
              type: no_group
            noDataFire: 'false'
            version: '2'
            severityConfigurations:
              - severity: '6'
                evalCondition:
                  countCondition: cnt > 0
                  condition: __count__ > 1
            labels:
              - key: a
                value: b
            autoAnnotation: 'true'
            templateConfiguration:
              lang: cn
              tokens:
                a: b
              annotations:
                x: y
              templateId: sls.app.ack.autoscaler.cluster_unhealthy
              type: sys
              version: '1.0'
            muteUntil: '0'
            annotations:
              - key: x
                value: y
            sendResolved: 'false'
            threshold: '1'
            sinkCms:
              enabled: 'false'
            conditionConfiguration:
              condition: cnt > 3
              countCondition: __count__ < 3
            policyConfiguration:
              alertPolicyId: sls.builtin.dynamic
              actionPolicyId: wkb-action
              repeatInterval: 1m
            dashboard: internal-alert
            type: tpl
            queryLists:
              - ui: '{}'
                roleArn: acs:ram::1654218965343050:role/aliyunslsalertmonitorrole
                query: '* | select *'
                timeSpanType: Relative
                project: ${defaultINsMgl.projectName}
                powerSqlMode: disable
                dashboardId: wkb-dashboard
                chartTitle: wkb-chart
                start: -15m
                end: now
                storeType: log
                store: alert
                region: cn-shanghai
              - storeType: meta
                store: user.rds_ip_whitelist
              - storeType: meta
                store: myexample1
            joinConfigurations:
              - type: no_join
                condition: aa
              - type: cross_join
                condition: qqq
              - type: inner_join
                condition: fefefe
            sinkEventStore:
              enabled: 'true'
              endpoint: cn-shanghai-intranet.log.aliyuncs.com
              project: wkb-wangren
              eventStore: alert
              roleArn: acs:ram::1654218965343050:role/aliyunlogetlrole
            sinkAlerthub:
              enabled: 'false'
            noDataSeverity: '6'
            tags:
              - wkb
              - wangren
              - sls
          alertName: ${alertName}
          projectName: ${defaultINsMgl.projectName}
    

    Create Alert Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);
    @overload
    def Alert(resource_name: str,
              args: AlertArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Alert(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              alert_name: Optional[str] = None,
              configuration: Optional[AlertConfigurationArgs] = None,
              display_name: Optional[str] = None,
              project_name: Optional[str] = None,
              schedule: Optional[AlertScheduleArgs] = None,
              description: Optional[str] = None,
              status: Optional[str] = None)
    func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)
    public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)
    public Alert(String name, AlertArgs args)
    public Alert(String name, AlertArgs args, CustomResourceOptions options)
    
    type: alicloud:sls:Alert
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AlertArgs
    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 AlertArgs
    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 AlertArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertArgs
    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 alicloudAlertResource = new AliCloud.Sls.Alert("alicloudAlertResource", new()
    {
        AlertName = "string",
        Configuration = new AliCloud.Sls.Inputs.AlertConfigurationArgs
        {
            Annotations = new[]
            {
                new AliCloud.Sls.Inputs.AlertConfigurationAnnotationArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            AutoAnnotation = false,
            ConditionConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationConditionConfigurationArgs
            {
                Condition = "string",
                CountCondition = "string",
            },
            Dashboard = "string",
            GroupConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationGroupConfigurationArgs
            {
                Fields = new[]
                {
                    "string",
                },
                Type = "string",
            },
            JoinConfigurations = new[]
            {
                new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
                {
                    Condition = "string",
                    Type = "string",
                },
            },
            Labels = new[]
            {
                new AliCloud.Sls.Inputs.AlertConfigurationLabelArgs
                {
                    Key = "string",
                    Value = "string",
                },
            },
            MuteUntil = 0,
            NoDataFire = false,
            NoDataSeverity = 0,
            PolicyConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationPolicyConfigurationArgs
            {
                ActionPolicyId = "string",
                AlertPolicyId = "string",
                RepeatInterval = "string",
            },
            QueryLists = new[]
            {
                new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
                {
                    ChartTitle = "string",
                    DashboardId = "string",
                    End = "string",
                    PowerSqlMode = "string",
                    Project = "string",
                    Query = "string",
                    Region = "string",
                    RoleArn = "string",
                    Start = "string",
                    Store = "string",
                    StoreType = "string",
                    TimeSpanType = "string",
                    Ui = "string",
                },
            },
            SendResolved = false,
            SeverityConfigurations = new[]
            {
                new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationArgs
                {
                    EvalCondition = new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationEvalConditionArgs
                    {
                        Condition = "string",
                        CountCondition = "string",
                    },
                    Severity = 0,
                },
            },
            SinkAlerthub = new AliCloud.Sls.Inputs.AlertConfigurationSinkAlerthubArgs
            {
                Enabled = false,
            },
            SinkCms = new AliCloud.Sls.Inputs.AlertConfigurationSinkCmsArgs
            {
                Enabled = false,
            },
            SinkEventStore = new AliCloud.Sls.Inputs.AlertConfigurationSinkEventStoreArgs
            {
                Enabled = false,
                Endpoint = "string",
                EventStore = "string",
                Project = "string",
                RoleArn = "string",
            },
            Tags = new[]
            {
                "string",
            },
            TemplateConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationTemplateConfigurationArgs
            {
                Annotations = 
                {
                    { "string", "string" },
                },
                Lang = "string",
                TemplateId = "string",
                Tokens = 
                {
                    { "string", "string" },
                },
                Type = "string",
                Version = "string",
            },
            Threshold = 0,
            Type = "string",
            Version = "string",
        },
        DisplayName = "string",
        ProjectName = "string",
        Schedule = new AliCloud.Sls.Inputs.AlertScheduleArgs
        {
            CronExpression = "string",
            Delay = 0,
            Interval = "string",
            RunImmdiately = false,
            TimeZone = "string",
            Type = "string",
        },
        Description = "string",
        Status = "string",
    });
    
    example, err := sls.NewAlert(ctx, "alicloudAlertResource", &sls.AlertArgs{
    	AlertName: pulumi.String("string"),
    	Configuration: &sls.AlertConfigurationArgs{
    		Annotations: sls.AlertConfigurationAnnotationArray{
    			&sls.AlertConfigurationAnnotationArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		AutoAnnotation: pulumi.Bool(false),
    		ConditionConfiguration: &sls.AlertConfigurationConditionConfigurationArgs{
    			Condition:      pulumi.String("string"),
    			CountCondition: pulumi.String("string"),
    		},
    		Dashboard: pulumi.String("string"),
    		GroupConfiguration: &sls.AlertConfigurationGroupConfigurationArgs{
    			Fields: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Type: pulumi.String("string"),
    		},
    		JoinConfigurations: sls.AlertConfigurationJoinConfigurationArray{
    			&sls.AlertConfigurationJoinConfigurationArgs{
    				Condition: pulumi.String("string"),
    				Type:      pulumi.String("string"),
    			},
    		},
    		Labels: sls.AlertConfigurationLabelArray{
    			&sls.AlertConfigurationLabelArgs{
    				Key:   pulumi.String("string"),
    				Value: pulumi.String("string"),
    			},
    		},
    		MuteUntil:      pulumi.Int(0),
    		NoDataFire:     pulumi.Bool(false),
    		NoDataSeverity: pulumi.Int(0),
    		PolicyConfiguration: &sls.AlertConfigurationPolicyConfigurationArgs{
    			ActionPolicyId: pulumi.String("string"),
    			AlertPolicyId:  pulumi.String("string"),
    			RepeatInterval: pulumi.String("string"),
    		},
    		QueryLists: sls.AlertConfigurationQueryListArray{
    			&sls.AlertConfigurationQueryListArgs{
    				ChartTitle:   pulumi.String("string"),
    				DashboardId:  pulumi.String("string"),
    				End:          pulumi.String("string"),
    				PowerSqlMode: pulumi.String("string"),
    				Project:      pulumi.String("string"),
    				Query:        pulumi.String("string"),
    				Region:       pulumi.String("string"),
    				RoleArn:      pulumi.String("string"),
    				Start:        pulumi.String("string"),
    				Store:        pulumi.String("string"),
    				StoreType:    pulumi.String("string"),
    				TimeSpanType: pulumi.String("string"),
    				Ui:           pulumi.String("string"),
    			},
    		},
    		SendResolved: pulumi.Bool(false),
    		SeverityConfigurations: sls.AlertConfigurationSeverityConfigurationArray{
    			&sls.AlertConfigurationSeverityConfigurationArgs{
    				EvalCondition: &sls.AlertConfigurationSeverityConfigurationEvalConditionArgs{
    					Condition:      pulumi.String("string"),
    					CountCondition: pulumi.String("string"),
    				},
    				Severity: pulumi.Int(0),
    			},
    		},
    		SinkAlerthub: &sls.AlertConfigurationSinkAlerthubArgs{
    			Enabled: pulumi.Bool(false),
    		},
    		SinkCms: &sls.AlertConfigurationSinkCmsArgs{
    			Enabled: pulumi.Bool(false),
    		},
    		SinkEventStore: &sls.AlertConfigurationSinkEventStoreArgs{
    			Enabled:    pulumi.Bool(false),
    			Endpoint:   pulumi.String("string"),
    			EventStore: pulumi.String("string"),
    			Project:    pulumi.String("string"),
    			RoleArn:    pulumi.String("string"),
    		},
    		Tags: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		TemplateConfiguration: &sls.AlertConfigurationTemplateConfigurationArgs{
    			Annotations: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			Lang:       pulumi.String("string"),
    			TemplateId: pulumi.String("string"),
    			Tokens: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			Type:    pulumi.String("string"),
    			Version: pulumi.String("string"),
    		},
    		Threshold: pulumi.Int(0),
    		Type:      pulumi.String("string"),
    		Version:   pulumi.String("string"),
    	},
    	DisplayName: pulumi.String("string"),
    	ProjectName: pulumi.String("string"),
    	Schedule: &sls.AlertScheduleArgs{
    		CronExpression: pulumi.String("string"),
    		Delay:          pulumi.Int(0),
    		Interval:       pulumi.String("string"),
    		RunImmdiately:  pulumi.Bool(false),
    		TimeZone:       pulumi.String("string"),
    		Type:           pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Status:      pulumi.String("string"),
    })
    
    var alicloudAlertResource = new Alert("alicloudAlertResource", AlertArgs.builder()
        .alertName("string")
        .configuration(AlertConfigurationArgs.builder()
            .annotations(AlertConfigurationAnnotationArgs.builder()
                .key("string")
                .value("string")
                .build())
            .autoAnnotation(false)
            .conditionConfiguration(AlertConfigurationConditionConfigurationArgs.builder()
                .condition("string")
                .countCondition("string")
                .build())
            .dashboard("string")
            .groupConfiguration(AlertConfigurationGroupConfigurationArgs.builder()
                .fields("string")
                .type("string")
                .build())
            .joinConfigurations(AlertConfigurationJoinConfigurationArgs.builder()
                .condition("string")
                .type("string")
                .build())
            .labels(AlertConfigurationLabelArgs.builder()
                .key("string")
                .value("string")
                .build())
            .muteUntil(0)
            .noDataFire(false)
            .noDataSeverity(0)
            .policyConfiguration(AlertConfigurationPolicyConfigurationArgs.builder()
                .actionPolicyId("string")
                .alertPolicyId("string")
                .repeatInterval("string")
                .build())
            .queryLists(AlertConfigurationQueryListArgs.builder()
                .chartTitle("string")
                .dashboardId("string")
                .end("string")
                .powerSqlMode("string")
                .project("string")
                .query("string")
                .region("string")
                .roleArn("string")
                .start("string")
                .store("string")
                .storeType("string")
                .timeSpanType("string")
                .ui("string")
                .build())
            .sendResolved(false)
            .severityConfigurations(AlertConfigurationSeverityConfigurationArgs.builder()
                .evalCondition(AlertConfigurationSeverityConfigurationEvalConditionArgs.builder()
                    .condition("string")
                    .countCondition("string")
                    .build())
                .severity(0)
                .build())
            .sinkAlerthub(AlertConfigurationSinkAlerthubArgs.builder()
                .enabled(false)
                .build())
            .sinkCms(AlertConfigurationSinkCmsArgs.builder()
                .enabled(false)
                .build())
            .sinkEventStore(AlertConfigurationSinkEventStoreArgs.builder()
                .enabled(false)
                .endpoint("string")
                .eventStore("string")
                .project("string")
                .roleArn("string")
                .build())
            .tags("string")
            .templateConfiguration(AlertConfigurationTemplateConfigurationArgs.builder()
                .annotations(Map.of("string", "string"))
                .lang("string")
                .templateId("string")
                .tokens(Map.of("string", "string"))
                .type("string")
                .version("string")
                .build())
            .threshold(0)
            .type("string")
            .version("string")
            .build())
        .displayName("string")
        .projectName("string")
        .schedule(AlertScheduleArgs.builder()
            .cronExpression("string")
            .delay(0)
            .interval("string")
            .runImmdiately(false)
            .timeZone("string")
            .type("string")
            .build())
        .description("string")
        .status("string")
        .build());
    
    alicloud_alert_resource = alicloud.sls.Alert("alicloudAlertResource",
        alert_name="string",
        configuration=alicloud.sls.AlertConfigurationArgs(
            annotations=[alicloud.sls.AlertConfigurationAnnotationArgs(
                key="string",
                value="string",
            )],
            auto_annotation=False,
            condition_configuration=alicloud.sls.AlertConfigurationConditionConfigurationArgs(
                condition="string",
                count_condition="string",
            ),
            dashboard="string",
            group_configuration=alicloud.sls.AlertConfigurationGroupConfigurationArgs(
                fields=["string"],
                type="string",
            ),
            join_configurations=[alicloud.sls.AlertConfigurationJoinConfigurationArgs(
                condition="string",
                type="string",
            )],
            labels=[alicloud.sls.AlertConfigurationLabelArgs(
                key="string",
                value="string",
            )],
            mute_until=0,
            no_data_fire=False,
            no_data_severity=0,
            policy_configuration=alicloud.sls.AlertConfigurationPolicyConfigurationArgs(
                action_policy_id="string",
                alert_policy_id="string",
                repeat_interval="string",
            ),
            query_lists=[alicloud.sls.AlertConfigurationQueryListArgs(
                chart_title="string",
                dashboard_id="string",
                end="string",
                power_sql_mode="string",
                project="string",
                query="string",
                region="string",
                role_arn="string",
                start="string",
                store="string",
                store_type="string",
                time_span_type="string",
                ui="string",
            )],
            send_resolved=False,
            severity_configurations=[alicloud.sls.AlertConfigurationSeverityConfigurationArgs(
                eval_condition=alicloud.sls.AlertConfigurationSeverityConfigurationEvalConditionArgs(
                    condition="string",
                    count_condition="string",
                ),
                severity=0,
            )],
            sink_alerthub=alicloud.sls.AlertConfigurationSinkAlerthubArgs(
                enabled=False,
            ),
            sink_cms=alicloud.sls.AlertConfigurationSinkCmsArgs(
                enabled=False,
            ),
            sink_event_store=alicloud.sls.AlertConfigurationSinkEventStoreArgs(
                enabled=False,
                endpoint="string",
                event_store="string",
                project="string",
                role_arn="string",
            ),
            tags=["string"],
            template_configuration=alicloud.sls.AlertConfigurationTemplateConfigurationArgs(
                annotations={
                    "string": "string",
                },
                lang="string",
                template_id="string",
                tokens={
                    "string": "string",
                },
                type="string",
                version="string",
            ),
            threshold=0,
            type="string",
            version="string",
        ),
        display_name="string",
        project_name="string",
        schedule=alicloud.sls.AlertScheduleArgs(
            cron_expression="string",
            delay=0,
            interval="string",
            run_immdiately=False,
            time_zone="string",
            type="string",
        ),
        description="string",
        status="string")
    
    const alicloudAlertResource = new alicloud.sls.Alert("alicloudAlertResource", {
        alertName: "string",
        configuration: {
            annotations: [{
                key: "string",
                value: "string",
            }],
            autoAnnotation: false,
            conditionConfiguration: {
                condition: "string",
                countCondition: "string",
            },
            dashboard: "string",
            groupConfiguration: {
                fields: ["string"],
                type: "string",
            },
            joinConfigurations: [{
                condition: "string",
                type: "string",
            }],
            labels: [{
                key: "string",
                value: "string",
            }],
            muteUntil: 0,
            noDataFire: false,
            noDataSeverity: 0,
            policyConfiguration: {
                actionPolicyId: "string",
                alertPolicyId: "string",
                repeatInterval: "string",
            },
            queryLists: [{
                chartTitle: "string",
                dashboardId: "string",
                end: "string",
                powerSqlMode: "string",
                project: "string",
                query: "string",
                region: "string",
                roleArn: "string",
                start: "string",
                store: "string",
                storeType: "string",
                timeSpanType: "string",
                ui: "string",
            }],
            sendResolved: false,
            severityConfigurations: [{
                evalCondition: {
                    condition: "string",
                    countCondition: "string",
                },
                severity: 0,
            }],
            sinkAlerthub: {
                enabled: false,
            },
            sinkCms: {
                enabled: false,
            },
            sinkEventStore: {
                enabled: false,
                endpoint: "string",
                eventStore: "string",
                project: "string",
                roleArn: "string",
            },
            tags: ["string"],
            templateConfiguration: {
                annotations: {
                    string: "string",
                },
                lang: "string",
                templateId: "string",
                tokens: {
                    string: "string",
                },
                type: "string",
                version: "string",
            },
            threshold: 0,
            type: "string",
            version: "string",
        },
        displayName: "string",
        projectName: "string",
        schedule: {
            cronExpression: "string",
            delay: 0,
            interval: "string",
            runImmdiately: false,
            timeZone: "string",
            type: "string",
        },
        description: "string",
        status: "string",
    });
    
    type: alicloud:sls:Alert
    properties:
        alertName: string
        configuration:
            annotations:
                - key: string
                  value: string
            autoAnnotation: false
            conditionConfiguration:
                condition: string
                countCondition: string
            dashboard: string
            groupConfiguration:
                fields:
                    - string
                type: string
            joinConfigurations:
                - condition: string
                  type: string
            labels:
                - key: string
                  value: string
            muteUntil: 0
            noDataFire: false
            noDataSeverity: 0
            policyConfiguration:
                actionPolicyId: string
                alertPolicyId: string
                repeatInterval: string
            queryLists:
                - chartTitle: string
                  dashboardId: string
                  end: string
                  powerSqlMode: string
                  project: string
                  query: string
                  region: string
                  roleArn: string
                  start: string
                  store: string
                  storeType: string
                  timeSpanType: string
                  ui: string
            sendResolved: false
            severityConfigurations:
                - evalCondition:
                    condition: string
                    countCondition: string
                  severity: 0
            sinkAlerthub:
                enabled: false
            sinkCms:
                enabled: false
            sinkEventStore:
                enabled: false
                endpoint: string
                eventStore: string
                project: string
                roleArn: string
            tags:
                - string
            templateConfiguration:
                annotations:
                    string: string
                lang: string
                templateId: string
                tokens:
                    string: string
                type: string
                version: string
            threshold: 0
            type: string
            version: string
        description: string
        displayName: string
        projectName: string
        schedule:
            cronExpression: string
            delay: 0
            interval: string
            runImmdiately: false
            timeZone: string
            type: string
        status: string
    

    Alert Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Alert resource accepts the following input properties:

    AlertName string
    Alert rule ID, unique under Project.
    Configuration Pulumi.AliCloud.Sls.Inputs.AlertConfiguration
    Detailed configuration of alarm monitoring rules. See configuration below.
    DisplayName string
    Display name of the alarm rule.
    ProjectName string
    Project Name.
    Schedule Pulumi.AliCloud.Sls.Inputs.AlertSchedule
    Check the frequency-dependent configuration. See schedule below.
    Description string
    Compatible fields, set to empty strings.
    Status string
    Resource attribute field representing alarm status.
    AlertName string
    Alert rule ID, unique under Project.
    Configuration AlertConfigurationArgs
    Detailed configuration of alarm monitoring rules. See configuration below.
    DisplayName string
    Display name of the alarm rule.
    ProjectName string
    Project Name.
    Schedule AlertScheduleArgs
    Check the frequency-dependent configuration. See schedule below.
    Description string
    Compatible fields, set to empty strings.
    Status string
    Resource attribute field representing alarm status.
    alertName String
    Alert rule ID, unique under Project.
    configuration AlertConfiguration
    Detailed configuration of alarm monitoring rules. See configuration below.
    displayName String
    Display name of the alarm rule.
    projectName String
    Project Name.
    schedule AlertSchedule
    Check the frequency-dependent configuration. See schedule below.
    description String
    Compatible fields, set to empty strings.
    status String
    Resource attribute field representing alarm status.
    alertName string
    Alert rule ID, unique under Project.
    configuration AlertConfiguration
    Detailed configuration of alarm monitoring rules. See configuration below.
    displayName string
    Display name of the alarm rule.
    projectName string
    Project Name.
    schedule AlertSchedule
    Check the frequency-dependent configuration. See schedule below.
    description string
    Compatible fields, set to empty strings.
    status string
    Resource attribute field representing alarm status.
    alert_name str
    Alert rule ID, unique under Project.
    configuration AlertConfigurationArgs
    Detailed configuration of alarm monitoring rules. See configuration below.
    display_name str
    Display name of the alarm rule.
    project_name str
    Project Name.
    schedule AlertScheduleArgs
    Check the frequency-dependent configuration. See schedule below.
    description str
    Compatible fields, set to empty strings.
    status str
    Resource attribute field representing alarm status.
    alertName String
    Alert rule ID, unique under Project.
    configuration Property Map
    Detailed configuration of alarm monitoring rules. See configuration below.
    displayName String
    Display name of the alarm rule.
    projectName String
    Project Name.
    schedule Property Map
    Check the frequency-dependent configuration. See schedule below.
    description String
    Compatible fields, set to empty strings.
    status String
    Resource attribute field representing alarm status.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:

    CreateTime int
    Alarm rule creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime int
    Alarm rule creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime Integer
    Alarm rule creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime number
    Alarm rule creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time int
    Alarm rule creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime Number
    Alarm rule creation time.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Alert Resource

    Get an existing Alert 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?: AlertState, opts?: CustomResourceOptions): Alert
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alert_name: Optional[str] = None,
            configuration: Optional[AlertConfigurationArgs] = None,
            create_time: Optional[int] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            project_name: Optional[str] = None,
            schedule: Optional[AlertScheduleArgs] = None,
            status: Optional[str] = None) -> Alert
    func GetAlert(ctx *Context, name string, id IDInput, state *AlertState, opts ...ResourceOption) (*Alert, error)
    public static Alert Get(string name, Input<string> id, AlertState? state, CustomResourceOptions? opts = null)
    public static Alert get(String name, Output<String> id, AlertState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    AlertName string
    Alert rule ID, unique under Project.
    Configuration Pulumi.AliCloud.Sls.Inputs.AlertConfiguration
    Detailed configuration of alarm monitoring rules. See configuration below.
    CreateTime int
    Alarm rule creation time.
    Description string
    Compatible fields, set to empty strings.
    DisplayName string
    Display name of the alarm rule.
    ProjectName string
    Project Name.
    Schedule Pulumi.AliCloud.Sls.Inputs.AlertSchedule
    Check the frequency-dependent configuration. See schedule below.
    Status string
    Resource attribute field representing alarm status.
    AlertName string
    Alert rule ID, unique under Project.
    Configuration AlertConfigurationArgs
    Detailed configuration of alarm monitoring rules. See configuration below.
    CreateTime int
    Alarm rule creation time.
    Description string
    Compatible fields, set to empty strings.
    DisplayName string
    Display name of the alarm rule.
    ProjectName string
    Project Name.
    Schedule AlertScheduleArgs
    Check the frequency-dependent configuration. See schedule below.
    Status string
    Resource attribute field representing alarm status.
    alertName String
    Alert rule ID, unique under Project.
    configuration AlertConfiguration
    Detailed configuration of alarm monitoring rules. See configuration below.
    createTime Integer
    Alarm rule creation time.
    description String
    Compatible fields, set to empty strings.
    displayName String
    Display name of the alarm rule.
    projectName String
    Project Name.
    schedule AlertSchedule
    Check the frequency-dependent configuration. See schedule below.
    status String
    Resource attribute field representing alarm status.
    alertName string
    Alert rule ID, unique under Project.
    configuration AlertConfiguration
    Detailed configuration of alarm monitoring rules. See configuration below.
    createTime number
    Alarm rule creation time.
    description string
    Compatible fields, set to empty strings.
    displayName string
    Display name of the alarm rule.
    projectName string
    Project Name.
    schedule AlertSchedule
    Check the frequency-dependent configuration. See schedule below.
    status string
    Resource attribute field representing alarm status.
    alert_name str
    Alert rule ID, unique under Project.
    configuration AlertConfigurationArgs
    Detailed configuration of alarm monitoring rules. See configuration below.
    create_time int
    Alarm rule creation time.
    description str
    Compatible fields, set to empty strings.
    display_name str
    Display name of the alarm rule.
    project_name str
    Project Name.
    schedule AlertScheduleArgs
    Check the frequency-dependent configuration. See schedule below.
    status str
    Resource attribute field representing alarm status.
    alertName String
    Alert rule ID, unique under Project.
    configuration Property Map
    Detailed configuration of alarm monitoring rules. See configuration below.
    createTime Number
    Alarm rule creation time.
    description String
    Compatible fields, set to empty strings.
    displayName String
    Display name of the alarm rule.
    projectName String
    Project Name.
    schedule Property Map
    Check the frequency-dependent configuration. See schedule below.
    status String
    Resource attribute field representing alarm status.

    Supporting Types

    AlertConfiguration, AlertConfigurationArgs

    Annotations List<Pulumi.AliCloud.Sls.Inputs.AlertConfigurationAnnotation>
    Template Annotations.
    AutoAnnotation bool
    Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
    ConditionConfiguration Pulumi.AliCloud.Sls.Inputs.AlertConfigurationConditionConfiguration
    Alarm trigger condition. See condition_configuration below.
    Dashboard string
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    GroupConfiguration Pulumi.AliCloud.Sls.Inputs.AlertConfigurationGroupConfiguration
    Group evaluation configuration. See group_configuration below.
    JoinConfigurations List<Pulumi.AliCloud.Sls.Inputs.AlertConfigurationJoinConfiguration>
    Set operation configuration. See join_configurations below.
    Labels List<Pulumi.AliCloud.Sls.Inputs.AlertConfigurationLabel>
    Label. See labels below.
    MuteUntil int
    Second-level timestamp representing the temporary shutdown deadline.
    NoDataFire bool
    Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
    NoDataSeverity int
    Alarm severity when no data triggers an alarm.
    PolicyConfiguration Pulumi.AliCloud.Sls.Inputs.AlertConfigurationPolicyConfiguration
    Alert policy configuration. See policy_configuration below.
    QueryLists List<Pulumi.AliCloud.Sls.Inputs.AlertConfigurationQueryList>
    Query the statistical list. See query_list below.
    SendResolved bool
    Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
    SeverityConfigurations List<Pulumi.AliCloud.Sls.Inputs.AlertConfigurationSeverityConfiguration>
    Trigger condition, set at least one trigger condition. See severity_configurations below.
    SinkAlerthub Pulumi.AliCloud.Sls.Inputs.AlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub. See sink_alerthub below.
    SinkCms Pulumi.AliCloud.Sls.Inputs.AlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor. See sink_cms below.
    SinkEventStore Pulumi.AliCloud.Sls.Inputs.AlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore. See sink_event_store below.
    Tags List<string>
    Customize the category of alarm monitoring rules.
    TemplateConfiguration Pulumi.AliCloud.Sls.Inputs.AlertConfigurationTemplateConfiguration
    Alarm rule template configuration. See template_configuration below.
    Threshold int
    Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
    Type string
    Template Type.
    Version string
    Template Version.
    Annotations []AlertConfigurationAnnotation
    Template Annotations.
    AutoAnnotation bool
    Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
    ConditionConfiguration AlertConfigurationConditionConfiguration
    Alarm trigger condition. See condition_configuration below.
    Dashboard string
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    GroupConfiguration AlertConfigurationGroupConfiguration
    Group evaluation configuration. See group_configuration below.
    JoinConfigurations []AlertConfigurationJoinConfiguration
    Set operation configuration. See join_configurations below.
    Labels []AlertConfigurationLabel
    Label. See labels below.
    MuteUntil int
    Second-level timestamp representing the temporary shutdown deadline.
    NoDataFire bool
    Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
    NoDataSeverity int
    Alarm severity when no data triggers an alarm.
    PolicyConfiguration AlertConfigurationPolicyConfiguration
    Alert policy configuration. See policy_configuration below.
    QueryLists []AlertConfigurationQueryList
    Query the statistical list. See query_list below.
    SendResolved bool
    Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
    SeverityConfigurations []AlertConfigurationSeverityConfiguration
    Trigger condition, set at least one trigger condition. See severity_configurations below.
    SinkAlerthub AlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub. See sink_alerthub below.
    SinkCms AlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor. See sink_cms below.
    SinkEventStore AlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore. See sink_event_store below.
    Tags []string
    Customize the category of alarm monitoring rules.
    TemplateConfiguration AlertConfigurationTemplateConfiguration
    Alarm rule template configuration. See template_configuration below.
    Threshold int
    Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
    Type string
    Template Type.
    Version string
    Template Version.
    annotations List<AlertConfigurationAnnotation>
    Template Annotations.
    autoAnnotation Boolean
    Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
    conditionConfiguration AlertConfigurationConditionConfiguration
    Alarm trigger condition. See condition_configuration below.
    dashboard String
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    groupConfiguration AlertConfigurationGroupConfiguration
    Group evaluation configuration. See group_configuration below.
    joinConfigurations List<AlertConfigurationJoinConfiguration>
    Set operation configuration. See join_configurations below.
    labels List<AlertConfigurationLabel>
    Label. See labels below.
    muteUntil Integer
    Second-level timestamp representing the temporary shutdown deadline.
    noDataFire Boolean
    Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
    noDataSeverity Integer
    Alarm severity when no data triggers an alarm.
    policyConfiguration AlertConfigurationPolicyConfiguration
    Alert policy configuration. See policy_configuration below.
    queryLists List<AlertConfigurationQueryList>
    Query the statistical list. See query_list below.
    sendResolved Boolean
    Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
    severityConfigurations List<AlertConfigurationSeverityConfiguration>
    Trigger condition, set at least one trigger condition. See severity_configurations below.
    sinkAlerthub AlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub. See sink_alerthub below.
    sinkCms AlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor. See sink_cms below.
    sinkEventStore AlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore. See sink_event_store below.
    tags List<String>
    Customize the category of alarm monitoring rules.
    templateConfiguration AlertConfigurationTemplateConfiguration
    Alarm rule template configuration. See template_configuration below.
    threshold Integer
    Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
    type String
    Template Type.
    version String
    Template Version.
    annotations AlertConfigurationAnnotation[]
    Template Annotations.
    autoAnnotation boolean
    Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
    conditionConfiguration AlertConfigurationConditionConfiguration
    Alarm trigger condition. See condition_configuration below.
    dashboard string
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    groupConfiguration AlertConfigurationGroupConfiguration
    Group evaluation configuration. See group_configuration below.
    joinConfigurations AlertConfigurationJoinConfiguration[]
    Set operation configuration. See join_configurations below.
    labels AlertConfigurationLabel[]
    Label. See labels below.
    muteUntil number
    Second-level timestamp representing the temporary shutdown deadline.
    noDataFire boolean
    Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
    noDataSeverity number
    Alarm severity when no data triggers an alarm.
    policyConfiguration AlertConfigurationPolicyConfiguration
    Alert policy configuration. See policy_configuration below.
    queryLists AlertConfigurationQueryList[]
    Query the statistical list. See query_list below.
    sendResolved boolean
    Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
    severityConfigurations AlertConfigurationSeverityConfiguration[]
    Trigger condition, set at least one trigger condition. See severity_configurations below.
    sinkAlerthub AlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub. See sink_alerthub below.
    sinkCms AlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor. See sink_cms below.
    sinkEventStore AlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore. See sink_event_store below.
    tags string[]
    Customize the category of alarm monitoring rules.
    templateConfiguration AlertConfigurationTemplateConfiguration
    Alarm rule template configuration. See template_configuration below.
    threshold number
    Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
    type string
    Template Type.
    version string
    Template Version.
    annotations Sequence[AlertConfigurationAnnotation]
    Template Annotations.
    auto_annotation bool
    Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
    condition_configuration AlertConfigurationConditionConfiguration
    Alarm trigger condition. See condition_configuration below.
    dashboard str
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    group_configuration AlertConfigurationGroupConfiguration
    Group evaluation configuration. See group_configuration below.
    join_configurations Sequence[AlertConfigurationJoinConfiguration]
    Set operation configuration. See join_configurations below.
    labels Sequence[AlertConfigurationLabel]
    Label. See labels below.
    mute_until int
    Second-level timestamp representing the temporary shutdown deadline.
    no_data_fire bool
    Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
    no_data_severity int
    Alarm severity when no data triggers an alarm.
    policy_configuration AlertConfigurationPolicyConfiguration
    Alert policy configuration. See policy_configuration below.
    query_lists Sequence[AlertConfigurationQueryList]
    Query the statistical list. See query_list below.
    send_resolved bool
    Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
    severity_configurations Sequence[AlertConfigurationSeverityConfiguration]
    Trigger condition, set at least one trigger condition. See severity_configurations below.
    sink_alerthub AlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub. See sink_alerthub below.
    sink_cms AlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor. See sink_cms below.
    sink_event_store AlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore. See sink_event_store below.
    tags Sequence[str]
    Customize the category of alarm monitoring rules.
    template_configuration AlertConfigurationTemplateConfiguration
    Alarm rule template configuration. See template_configuration below.
    threshold int
    Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
    type str
    Template Type.
    version str
    Template Version.
    annotations List<Property Map>
    Template Annotations.
    autoAnnotation Boolean
    Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
    conditionConfiguration Property Map
    Alarm trigger condition. See condition_configuration below.
    dashboard String
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    groupConfiguration Property Map
    Group evaluation configuration. See group_configuration below.
    joinConfigurations List<Property Map>
    Set operation configuration. See join_configurations below.
    labels List<Property Map>
    Label. See labels below.
    muteUntil Number
    Second-level timestamp representing the temporary shutdown deadline.
    noDataFire Boolean
    Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
    noDataSeverity Number
    Alarm severity when no data triggers an alarm.
    policyConfiguration Property Map
    Alert policy configuration. See policy_configuration below.
    queryLists List<Property Map>
    Query the statistical list. See query_list below.
    sendResolved Boolean
    Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
    severityConfigurations List<Property Map>
    Trigger condition, set at least one trigger condition. See severity_configurations below.
    sinkAlerthub Property Map
    Configuration of Alerts Sent to Alerthub. See sink_alerthub below.
    sinkCms Property Map
    Configure alerts sent to CloudMonitor. See sink_cms below.
    sinkEventStore Property Map
    Configuration of sending alarms to EventStore. See sink_event_store below.
    tags List<String>
    Customize the category of alarm monitoring rules.
    templateConfiguration Property Map
    Alarm rule template configuration. See template_configuration below.
    threshold Number
    Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
    type String
    Template Type.
    version String
    Template Version.

    AlertConfigurationAnnotation, AlertConfigurationAnnotationArgs

    Key string
    Field name.
    Value string
    Field value.
    Key string
    Field name.
    Value string
    Field value.
    key String
    Field name.
    value String
    Field value.
    key string
    Field name.
    value string
    Field value.
    key str
    Field name.
    value str
    Field value.
    key String
    Field name.
    value String
    Field value.

    AlertConfigurationConditionConfiguration, AlertConfigurationConditionConfigurationArgs

    Condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    CountCondition string
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    Condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    CountCondition string
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition String
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    countCondition String
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    countCondition string
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition str
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    count_condition str
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition String
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    countCondition String
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.

    AlertConfigurationGroupConfiguration, AlertConfigurationGroupConfigurationArgs

    Fields List<string>
    The field used for grouping evaluation. When type is set to custom, fields must be set.
    Type string
    Fields []string
    The field used for grouping evaluation. When type is set to custom, fields must be set.
    Type string
    fields List<String>
    The field used for grouping evaluation. When type is set to custom, fields must be set.
    type String
    fields string[]
    The field used for grouping evaluation. When type is set to custom, fields must be set.
    type string
    fields Sequence[str]
    The field used for grouping evaluation. When type is set to custom, fields must be set.
    type str
    fields List<String>
    The field used for grouping evaluation. When type is set to custom, fields must be set.
    type String

    AlertConfigurationJoinConfiguration, AlertConfigurationJoinConfigurationArgs

    Condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    Type string
    Condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    Type string
    condition String
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    type String
    condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    type string
    condition str
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    type str
    condition String
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    type String

    AlertConfigurationLabel, AlertConfigurationLabelArgs

    Key string
    Field name.
    Value string
    Field value.
    Key string
    Field name.
    Value string
    Field value.
    key String
    Field name.
    value String
    Field value.
    key string
    Field name.
    value string
    Field value.
    key str
    Field name.
    value str
    Field value.
    key String
    Field name.
    value String
    Field value.

    AlertConfigurationPolicyConfiguration, AlertConfigurationPolicyConfigurationArgs

    ActionPolicyId string
    The ID of the action policy used. If the alert policy is in advanced mode and the selected alert policy is not configured with a dynamic action policy, set the actionPolicyId to an empty string.
    AlertPolicyId string
    Alarm policy ID. If it is in simple mode or normal mode, set it to sls.builtin.dynamic (dynamic alarm policy built into the system). For advanced mode, set it to the specified alarm policy ID.
    RepeatInterval string
    Repeat the waiting time. For example, 5m, 1H, etc.
    ActionPolicyId string
    The ID of the action policy used. If the alert policy is in advanced mode and the selected alert policy is not configured with a dynamic action policy, set the actionPolicyId to an empty string.
    AlertPolicyId string
    Alarm policy ID. If it is in simple mode or normal mode, set it to sls.builtin.dynamic (dynamic alarm policy built into the system). For advanced mode, set it to the specified alarm policy ID.
    RepeatInterval string
    Repeat the waiting time. For example, 5m, 1H, etc.
    actionPolicyId String
    The ID of the action policy used. If the alert policy is in advanced mode and the selected alert policy is not configured with a dynamic action policy, set the actionPolicyId to an empty string.
    alertPolicyId String
    Alarm policy ID. If it is in simple mode or normal mode, set it to sls.builtin.dynamic (dynamic alarm policy built into the system). For advanced mode, set it to the specified alarm policy ID.
    repeatInterval String
    Repeat the waiting time. For example, 5m, 1H, etc.
    actionPolicyId string
    The ID of the action policy used. If the alert policy is in advanced mode and the selected alert policy is not configured with a dynamic action policy, set the actionPolicyId to an empty string.
    alertPolicyId string
    Alarm policy ID. If it is in simple mode or normal mode, set it to sls.builtin.dynamic (dynamic alarm policy built into the system). For advanced mode, set it to the specified alarm policy ID.
    repeatInterval string
    Repeat the waiting time. For example, 5m, 1H, etc.
    action_policy_id str
    The ID of the action policy used. If the alert policy is in advanced mode and the selected alert policy is not configured with a dynamic action policy, set the actionPolicyId to an empty string.
    alert_policy_id str
    Alarm policy ID. If it is in simple mode or normal mode, set it to sls.builtin.dynamic (dynamic alarm policy built into the system). For advanced mode, set it to the specified alarm policy ID.
    repeat_interval str
    Repeat the waiting time. For example, 5m, 1H, etc.
    actionPolicyId String
    The ID of the action policy used. If the alert policy is in advanced mode and the selected alert policy is not configured with a dynamic action policy, set the actionPolicyId to an empty string.
    alertPolicyId String
    Alarm policy ID. If it is in simple mode or normal mode, set it to sls.builtin.dynamic (dynamic alarm policy built into the system). For advanced mode, set it to the specified alarm policy ID.
    repeatInterval String
    Repeat the waiting time. For example, 5m, 1H, etc.

    AlertConfigurationQueryList, AlertConfigurationQueryListArgs

    ChartTitle string
    Chart Name.
    DashboardId string
    Dashboard ID.
    End string
    End time. When storeType is set to log or metric, end must be set.
    PowerSqlMode string
    Whether to use exclusive SQL. The value is as follows: auto: automatic switching. enable: Starts. disable: disable.
    Project string
    Project Name.
    Query string
    Query and analysis statements. When storeType is set to log or metric, query is set to the query analysis statement. When storeType is set to meta, set query to an empty string.
    Region string
    Region of the target Project.
    RoleArn string
    Roles used to write alarm data to the event Library.
    Start string
    Start time. When storeType is set to log or metric, start must be set.
    Store string
    Query the Logstore, Metricstore, or resource data associated with the statistics. When storeType is set to log, store is set to the target Logstore. When storeType is set to metric, store is set to the target Metricstore. When storeType is set to meta, store is set to the target resource data name.
    StoreType string
    Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
    TimeSpanType string
    Time Type.
    Ui string
    Use of specific scene alarm front end.
    ChartTitle string
    Chart Name.
    DashboardId string
    Dashboard ID.
    End string
    End time. When storeType is set to log or metric, end must be set.
    PowerSqlMode string
    Whether to use exclusive SQL. The value is as follows: auto: automatic switching. enable: Starts. disable: disable.
    Project string
    Project Name.
    Query string
    Query and analysis statements. When storeType is set to log or metric, query is set to the query analysis statement. When storeType is set to meta, set query to an empty string.
    Region string
    Region of the target Project.
    RoleArn string
    Roles used to write alarm data to the event Library.
    Start string
    Start time. When storeType is set to log or metric, start must be set.
    Store string
    Query the Logstore, Metricstore, or resource data associated with the statistics. When storeType is set to log, store is set to the target Logstore. When storeType is set to metric, store is set to the target Metricstore. When storeType is set to meta, store is set to the target resource data name.
    StoreType string
    Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
    TimeSpanType string
    Time Type.
    Ui string
    Use of specific scene alarm front end.
    chartTitle String
    Chart Name.
    dashboardId String
    Dashboard ID.
    end String
    End time. When storeType is set to log or metric, end must be set.
    powerSqlMode String
    Whether to use exclusive SQL. The value is as follows: auto: automatic switching. enable: Starts. disable: disable.
    project String
    Project Name.
    query String
    Query and analysis statements. When storeType is set to log or metric, query is set to the query analysis statement. When storeType is set to meta, set query to an empty string.
    region String
    Region of the target Project.
    roleArn String
    Roles used to write alarm data to the event Library.
    start String
    Start time. When storeType is set to log or metric, start must be set.
    store String
    Query the Logstore, Metricstore, or resource data associated with the statistics. When storeType is set to log, store is set to the target Logstore. When storeType is set to metric, store is set to the target Metricstore. When storeType is set to meta, store is set to the target resource data name.
    storeType String
    Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
    timeSpanType String
    Time Type.
    ui String
    Use of specific scene alarm front end.
    chartTitle string
    Chart Name.
    dashboardId string
    Dashboard ID.
    end string
    End time. When storeType is set to log or metric, end must be set.
    powerSqlMode string
    Whether to use exclusive SQL. The value is as follows: auto: automatic switching. enable: Starts. disable: disable.
    project string
    Project Name.
    query string
    Query and analysis statements. When storeType is set to log or metric, query is set to the query analysis statement. When storeType is set to meta, set query to an empty string.
    region string
    Region of the target Project.
    roleArn string
    Roles used to write alarm data to the event Library.
    start string
    Start time. When storeType is set to log or metric, start must be set.
    store string
    Query the Logstore, Metricstore, or resource data associated with the statistics. When storeType is set to log, store is set to the target Logstore. When storeType is set to metric, store is set to the target Metricstore. When storeType is set to meta, store is set to the target resource data name.
    storeType string
    Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
    timeSpanType string
    Time Type.
    ui string
    Use of specific scene alarm front end.
    chart_title str
    Chart Name.
    dashboard_id str
    Dashboard ID.
    end str
    End time. When storeType is set to log or metric, end must be set.
    power_sql_mode str
    Whether to use exclusive SQL. The value is as follows: auto: automatic switching. enable: Starts. disable: disable.
    project str
    Project Name.
    query str
    Query and analysis statements. When storeType is set to log or metric, query is set to the query analysis statement. When storeType is set to meta, set query to an empty string.
    region str
    Region of the target Project.
    role_arn str
    Roles used to write alarm data to the event Library.
    start str
    Start time. When storeType is set to log or metric, start must be set.
    store str
    Query the Logstore, Metricstore, or resource data associated with the statistics. When storeType is set to log, store is set to the target Logstore. When storeType is set to metric, store is set to the target Metricstore. When storeType is set to meta, store is set to the target resource data name.
    store_type str
    Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
    time_span_type str
    Time Type.
    ui str
    Use of specific scene alarm front end.
    chartTitle String
    Chart Name.
    dashboardId String
    Dashboard ID.
    end String
    End time. When storeType is set to log or metric, end must be set.
    powerSqlMode String
    Whether to use exclusive SQL. The value is as follows: auto: automatic switching. enable: Starts. disable: disable.
    project String
    Project Name.
    query String
    Query and analysis statements. When storeType is set to log or metric, query is set to the query analysis statement. When storeType is set to meta, set query to an empty string.
    region String
    Region of the target Project.
    roleArn String
    Roles used to write alarm data to the event Library.
    start String
    Start time. When storeType is set to log or metric, start must be set.
    store String
    Query the Logstore, Metricstore, or resource data associated with the statistics. When storeType is set to log, store is set to the target Logstore. When storeType is set to metric, store is set to the target Metricstore. When storeType is set to meta, store is set to the target resource data name.
    storeType String
    Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
    timeSpanType String
    Time Type.
    ui String
    Use of specific scene alarm front end.

    AlertConfigurationSeverityConfiguration, AlertConfigurationSeverityConfigurationArgs

    EvalCondition AlertConfigurationSeverityConfigurationEvalCondition
    Trigger condition. See eval_condition below.
    Severity int
    Alarm severity.
    evalCondition AlertConfigurationSeverityConfigurationEvalCondition
    Trigger condition. See eval_condition below.
    severity Integer
    Alarm severity.
    evalCondition AlertConfigurationSeverityConfigurationEvalCondition
    Trigger condition. See eval_condition below.
    severity number
    Alarm severity.
    eval_condition AlertConfigurationSeverityConfigurationEvalCondition
    Trigger condition. See eval_condition below.
    severity int
    Alarm severity.
    evalCondition Property Map
    Trigger condition. See eval_condition below.
    severity Number
    Alarm severity.

    AlertConfigurationSeverityConfigurationEvalCondition, AlertConfigurationSeverityConfigurationEvalConditionArgs

    Condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    CountCondition string
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    Condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    CountCondition string
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition String
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    countCondition String
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition string
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    countCondition string
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition str
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    count_condition str
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.
    condition String
    Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
    countCondition String
    The number of pieces of data to determine the number of pieces of data to indicate how many pieces of data meet the conditions. If data exists, it is satisfied. Set it to an empty string. In other cases, it needs to be set as an expression, such as__count__> 3.

    AlertConfigurationSinkAlerthub, AlertConfigurationSinkAlerthubArgs

    Enabled bool
    Open.
    Enabled bool
    Open.
    enabled Boolean
    Open.
    enabled boolean
    Open.
    enabled bool
    Open.
    enabled Boolean
    Open.

    AlertConfigurationSinkCms, AlertConfigurationSinkCmsArgs

    Enabled bool
    Open.
    Enabled bool
    Open.
    enabled Boolean
    Open.
    enabled boolean
    Open.
    enabled bool
    Open.
    enabled Boolean
    Open.

    AlertConfigurationSinkEventStore, AlertConfigurationSinkEventStoreArgs

    Enabled bool
    Open.
    Endpoint string
    SLS service endpoint.
    EventStore string
    Event Library Name.
    Project string
    Project Name.
    RoleArn string
    Roles used to write alarm data to the event Library.
    Enabled bool
    Open.
    Endpoint string
    SLS service endpoint.
    EventStore string
    Event Library Name.
    Project string
    Project Name.
    RoleArn string
    Roles used to write alarm data to the event Library.
    enabled Boolean
    Open.
    endpoint String
    SLS service endpoint.
    eventStore String
    Event Library Name.
    project String
    Project Name.
    roleArn String
    Roles used to write alarm data to the event Library.
    enabled boolean
    Open.
    endpoint string
    SLS service endpoint.
    eventStore string
    Event Library Name.
    project string
    Project Name.
    roleArn string
    Roles used to write alarm data to the event Library.
    enabled bool
    Open.
    endpoint str
    SLS service endpoint.
    event_store str
    Event Library Name.
    project str
    Project Name.
    role_arn str
    Roles used to write alarm data to the event Library.
    enabled Boolean
    Open.
    endpoint String
    SLS service endpoint.
    eventStore String
    Event Library Name.
    project String
    Project Name.
    roleArn String
    Roles used to write alarm data to the event Library.

    AlertConfigurationTemplateConfiguration, AlertConfigurationTemplateConfigurationArgs

    Annotations Dictionary<string, string>
    Template Annotations.
    Lang string
    Template Language.
    TemplateId string
    Template ID.
    Tokens Dictionary<string, string>
    Template Variables.
    Type string
    Version string
    Template Version.
    Annotations map[string]string
    Template Annotations.
    Lang string
    Template Language.
    TemplateId string
    Template ID.
    Tokens map[string]string
    Template Variables.
    Type string
    Version string
    Template Version.
    annotations Map<String,String>
    Template Annotations.
    lang String
    Template Language.
    templateId String
    Template ID.
    tokens Map<String,String>
    Template Variables.
    type String
    version String
    Template Version.
    annotations {[key: string]: string}
    Template Annotations.
    lang string
    Template Language.
    templateId string
    Template ID.
    tokens {[key: string]: string}
    Template Variables.
    type string
    version string
    Template Version.
    annotations Mapping[str, str]
    Template Annotations.
    lang str
    Template Language.
    template_id str
    Template ID.
    tokens Mapping[str, str]
    Template Variables.
    type str
    version str
    Template Version.
    annotations Map<String>
    Template Annotations.
    lang String
    Template Language.
    templateId String
    Template ID.
    tokens Map<String>
    Template Variables.
    type String
    version String
    Template Version.

    AlertSchedule, AlertScheduleArgs

    CronExpression string
    Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
    Delay int
    Timed task execution delay (unit: s).
    Interval string
    Fixed interval for scheduling.
    RunImmdiately bool
    Dispatch immediately.
    TimeZone string
    The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
    Type string
    Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
    CronExpression string
    Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
    Delay int
    Timed task execution delay (unit: s).
    Interval string
    Fixed interval for scheduling.
    RunImmdiately bool
    Dispatch immediately.
    TimeZone string
    The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
    Type string
    Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
    cronExpression String
    Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
    delay Integer
    Timed task execution delay (unit: s).
    interval String
    Fixed interval for scheduling.
    runImmdiately Boolean
    Dispatch immediately.
    timeZone String
    The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
    type String
    Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
    cronExpression string
    Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
    delay number
    Timed task execution delay (unit: s).
    interval string
    Fixed interval for scheduling.
    runImmdiately boolean
    Dispatch immediately.
    timeZone string
    The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
    type string
    Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
    cron_expression str
    Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
    delay int
    Timed task execution delay (unit: s).
    interval str
    Fixed interval for scheduling.
    run_immdiately bool
    Dispatch immediately.
    time_zone str
    The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
    type str
    Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
    cronExpression String
    Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
    delay Number
    Timed task execution delay (unit: s).
    interval String
    Fixed interval for scheduling.
    runImmdiately Boolean
    Dispatch immediately.
    timeZone String
    The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
    type String
    Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.

    Import

    SLS Alert can be imported using the id, e.g.

    $ pulumi import alicloud:sls/alert:Alert example <project_name>:<alert_name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi