1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. sls
  5. Alert
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.sls.Alert

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 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}`,
        name: `${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.name,
                    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.name,
    });
    
    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']}",
        name=f"{project_name}-{default['result']}")
    default_alert = alicloud.sls.Alert("default",
        schedule=alicloud.sls.AlertScheduleArgs(
            type="FixedRate",
            run_immdiately=True,
            interval="1m",
            time_zone="+0800",
            delay=10,
        ),
        display_name="openapi-terraform",
        description="create alert",
        status="ENABLED",
        configuration=alicloud.sls.AlertConfigurationArgs(
            group_configuration=alicloud.sls.AlertConfigurationGroupConfigurationArgs(
                fields=[
                    "a",
                    "b",
                ],
                type="no_group",
            ),
            no_data_fire=False,
            version="2",
            severity_configurations=[alicloud.sls.AlertConfigurationSeverityConfigurationArgs(
                severity=6,
                eval_condition=alicloud.sls.AlertConfigurationSeverityConfigurationEvalConditionArgs(
                    count_condition="cnt > 0",
                    condition="__count__ > 1",
                ),
            )],
            labels=[alicloud.sls.AlertConfigurationLabelArgs(
                key="a",
                value="b",
            )],
            auto_annotation=True,
            template_configuration=alicloud.sls.AlertConfigurationTemplateConfigurationArgs(
                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=[alicloud.sls.AlertConfigurationAnnotationArgs(
                key="x",
                value="y",
            )],
            send_resolved=False,
            threshold=1,
            sink_cms=alicloud.sls.AlertConfigurationSinkCmsArgs(
                enabled=False,
            ),
            condition_configuration=alicloud.sls.AlertConfigurationConditionConfigurationArgs(
                condition="cnt > 3",
                count_condition="__count__ < 3",
            ),
            policy_configuration=alicloud.sls.AlertConfigurationPolicyConfigurationArgs(
                alert_policy_id="sls.builtin.dynamic",
                action_policy_id="wkb-action",
                repeat_interval="1m",
            ),
            dashboard="internal-alert",
            type="tpl",
            query_lists=[
                alicloud.sls.AlertConfigurationQueryListArgs(
                    ui="{}",
                    role_arn="acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
                    query="* | select *",
                    time_span_type="Relative",
                    project=default_ins_mgl.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",
                ),
                alicloud.sls.AlertConfigurationQueryListArgs(
                    store_type="meta",
                    store="user.rds_ip_whitelist",
                ),
                alicloud.sls.AlertConfigurationQueryListArgs(
                    store_type="meta",
                    store="myexample1",
                ),
            ],
            join_configurations=[
                alicloud.sls.AlertConfigurationJoinConfigurationArgs(
                    type="no_join",
                    condition="aa",
                ),
                alicloud.sls.AlertConfigurationJoinConfigurationArgs(
                    type="cross_join",
                    condition="qqq",
                ),
                alicloud.sls.AlertConfigurationJoinConfigurationArgs(
                    type="inner_join",
                    condition="fefefe",
                ),
            ],
            sink_event_store=alicloud.sls.AlertConfigurationSinkEventStoreArgs(
                enabled=True,
                endpoint="cn-shanghai-intranet.log.aliyuncs.com",
                project="wkb-wangren",
                event_store="alert",
                role_arn="acs:ram::1654218965343050:role/aliyunlogetlrole",
            ),
            sink_alerthub=alicloud.sls.AlertConfigurationSinkAlerthubArgs(
                enabled=False,
            ),
            no_data_severity=6,
            tags=[
                "wkb",
                "wangren",
                "sls",
            ],
        ),
        alert_name=alert_name,
        project_name=default_ins_mgl.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.String(fmt.Sprintf("%v-%v", projectName, _default.Result)),
    			Name:        pulumi.String(fmt.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.Map{
    						"a": pulumi.Any("b"),
    					},
    					Annotations: pulumi.Map{
    						"x": pulumi.Any("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.Name,
    						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.Name,
    		})
    		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}",
            Name = $"{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.Name,
                        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.Name,
        });
    
    });
    
    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()))
                .name(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.name())
                            .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.name())
                .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}
          name: ${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.name}
                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.name}
    

    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", "any" },
                },
                Lang = "string",
                TemplateId = "string",
                Tokens = 
                {
                    { "string", "any" },
                },
                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.Map{
    				"string": pulumi.Any("any"),
    			},
    			Lang:       pulumi.String("string"),
    			TemplateId: pulumi.String("string"),
    			Tokens: pulumi.Map{
    				"string": pulumi.Any("any"),
    			},
    			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", "any"))
                .lang("string")
                .templateId("string")
                .tokens(Map.of("string", "any"))
                .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": "any",
                },
                lang="string",
                template_id="string",
                tokens={
                    "string": "any",
                },
                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: "any",
                },
                lang: "string",
                templateId: "string",
                tokens: {
                    string: "any",
                },
                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: any
                lang: string
                templateId: string
                tokens:
                    string: any
                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
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    AlertConfigurationConditionConfiguration, AlertConfigurationConditionConfigurationArgs

    AlertConfigurationGroupConfiguration, AlertConfigurationGroupConfigurationArgs

    Fields List<string>
    Type string
    Fields []string
    Type string
    fields List<String>
    type String
    fields string[]
    type string
    fields Sequence[str]
    type str
    fields List<String>
    type String

    AlertConfigurationJoinConfiguration, AlertConfigurationJoinConfigurationArgs

    Condition string
    Type string
    Condition string
    Type string
    condition String
    type String
    condition string
    type string
    condition String
    type String

    AlertConfigurationLabel, AlertConfigurationLabelArgs

    Key string
    Value string
    Key string
    Value string
    key String
    value String
    key string
    value string
    key str
    value str
    key String
    value String

    AlertConfigurationPolicyConfiguration, AlertConfigurationPolicyConfigurationArgs

    AlertConfigurationQueryList, 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
    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
    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
    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
    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

    AlertConfigurationSeverityConfiguration, AlertConfigurationSeverityConfigurationArgs

    AlertConfigurationSeverityConfigurationEvalCondition, AlertConfigurationSeverityConfigurationEvalConditionArgs

    AlertConfigurationSinkAlerthub, AlertConfigurationSinkAlerthubArgs

    Enabled bool
    Enabled bool
    enabled Boolean
    enabled boolean
    enabled bool
    enabled Boolean

    AlertConfigurationSinkCms, AlertConfigurationSinkCmsArgs

    Enabled bool
    Enabled bool
    enabled Boolean
    enabled boolean
    enabled bool
    enabled Boolean

    AlertConfigurationSinkEventStore, AlertConfigurationSinkEventStoreArgs

    Enabled bool
    Endpoint string
    EventStore string
    Project string
    RoleArn string
    Enabled bool
    Endpoint string
    EventStore string
    Project string
    RoleArn string
    enabled Boolean
    endpoint String
    eventStore String
    project String
    roleArn String
    enabled boolean
    endpoint string
    eventStore string
    project string
    roleArn string
    enabled Boolean
    endpoint String
    eventStore String
    project String
    roleArn String

    AlertConfigurationTemplateConfiguration, AlertConfigurationTemplateConfigurationArgs

    Annotations Dictionary<string, object>
    Lang string
    TemplateId string
    Tokens Dictionary<string, object>
    Type string
    Version string
    Annotations map[string]interface{}
    Lang string
    TemplateId string
    Tokens map[string]interface{}
    Type string
    Version string
    annotations Map<String,Object>
    lang String
    templateId String
    tokens Map<String,Object>
    type String
    version String
    annotations {[key: string]: any}
    lang string
    templateId string
    tokens {[key: string]: any}
    type string
    version string
    annotations Mapping[str, Any]
    lang str
    template_id str
    tokens Mapping[str, Any]
    type str
    version str
    annotations Map<Any>
    lang String
    templateId String
    tokens Map<Any>
    type String
    version String

    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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi