alicloud.sls.Alert
Explore with Pulumi AI
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)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:
- Alert
Name string - Alert rule ID, unique under Project.
 - Configuration
Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - Display
Name string - Display name of the alarm rule.
 - Project
Name string - Project Name.
 - Schedule
Pulumi.
Ali Cloud. Sls. Inputs. Alert Schedule  - Check the frequency-dependent configuration. See 
schedulebelow. - Description string
 - Compatible fields, set to empty strings.
 - Status string
 - Resource attribute field representing alarm status.
 
- Alert
Name string - Alert rule ID, unique under Project.
 - Configuration
Alert
Configuration Args  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - Display
Name string - Display name of the alarm rule.
 - Project
Name string - Project Name.
 - Schedule
Alert
Schedule Args  - Check the frequency-dependent configuration. See 
schedulebelow. - Description string
 - Compatible fields, set to empty strings.
 - Status string
 - Resource attribute field representing alarm status.
 
- alert
Name String - Alert rule ID, unique under Project.
 - configuration
Alert
Configuration  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - display
Name String - Display name of the alarm rule.
 - project
Name String - Project Name.
 - schedule
Alert
Schedule  - Check the frequency-dependent configuration. See 
schedulebelow. - description String
 - Compatible fields, set to empty strings.
 - status String
 - Resource attribute field representing alarm status.
 
- alert
Name string - Alert rule ID, unique under Project.
 - configuration
Alert
Configuration  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - display
Name string - Display name of the alarm rule.
 - project
Name string - Project Name.
 - schedule
Alert
Schedule  - Check the frequency-dependent configuration. See 
schedulebelow. - 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
Alert
Configuration Args  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - display_
name str - Display name of the alarm rule.
 - project_
name str - Project Name.
 - schedule
Alert
Schedule Args  - Check the frequency-dependent configuration. See 
schedulebelow. - description str
 - Compatible fields, set to empty strings.
 - status str
 - Resource attribute field representing alarm status.
 
- alert
Name String - Alert rule ID, unique under Project.
 - configuration Property Map
 - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - display
Name String - Display name of the alarm rule.
 - project
Name String - Project Name.
 - schedule Property Map
 - Check the frequency-dependent configuration. See 
schedulebelow. - 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:
- Create
Time int - Alarm rule creation time.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 
- Create
Time int - Alarm rule creation time.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 
- create
Time Integer - Alarm rule creation time.
 - id String
 - The provider-assigned unique ID for this managed resource.
 
- create
Time 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.
 
- create
Time 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) -> Alertfunc 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.
 
- Alert
Name string - Alert rule ID, unique under Project.
 - Configuration
Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - Create
Time int - Alarm rule creation time.
 - Description string
 - Compatible fields, set to empty strings.
 - Display
Name string - Display name of the alarm rule.
 - Project
Name string - Project Name.
 - Schedule
Pulumi.
Ali Cloud. Sls. Inputs. Alert Schedule  - Check the frequency-dependent configuration. See 
schedulebelow. - Status string
 - Resource attribute field representing alarm status.
 
- Alert
Name string - Alert rule ID, unique under Project.
 - Configuration
Alert
Configuration Args  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - Create
Time int - Alarm rule creation time.
 - Description string
 - Compatible fields, set to empty strings.
 - Display
Name string - Display name of the alarm rule.
 - Project
Name string - Project Name.
 - Schedule
Alert
Schedule Args  - Check the frequency-dependent configuration. See 
schedulebelow. - Status string
 - Resource attribute field representing alarm status.
 
- alert
Name String - Alert rule ID, unique under Project.
 - configuration
Alert
Configuration  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - create
Time Integer - Alarm rule creation time.
 - description String
 - Compatible fields, set to empty strings.
 - display
Name String - Display name of the alarm rule.
 - project
Name String - Project Name.
 - schedule
Alert
Schedule  - Check the frequency-dependent configuration. See 
schedulebelow. - status String
 - Resource attribute field representing alarm status.
 
- alert
Name string - Alert rule ID, unique under Project.
 - configuration
Alert
Configuration  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - create
Time number - Alarm rule creation time.
 - description string
 - Compatible fields, set to empty strings.
 - display
Name string - Display name of the alarm rule.
 - project
Name string - Project Name.
 - schedule
Alert
Schedule  - Check the frequency-dependent configuration. See 
schedulebelow. - status string
 - Resource attribute field representing alarm status.
 
- alert_
name str - Alert rule ID, unique under Project.
 - configuration
Alert
Configuration Args  - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - 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
Alert
Schedule Args  - Check the frequency-dependent configuration. See 
schedulebelow. - status str
 - Resource attribute field representing alarm status.
 
- alert
Name String - Alert rule ID, unique under Project.
 - configuration Property Map
 - Detailed configuration of alarm monitoring rules. See 
configurationbelow. - create
Time Number - Alarm rule creation time.
 - description String
 - Compatible fields, set to empty strings.
 - display
Name String - Display name of the alarm rule.
 - project
Name String - Project Name.
 - schedule Property Map
 - Check the frequency-dependent configuration. See 
schedulebelow. - status String
 - Resource attribute field representing alarm status.
 
Supporting Types
AlertConfiguration, AlertConfigurationArgs    
- Annotations
List<Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration Annotation>  - 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 Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Condition Configuration  - Alarm trigger condition. See 
condition_configurationbelow. - Dashboard string
 - The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
 - Group
Configuration Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Group Configuration  - Group evaluation configuration. See 
group_configurationbelow. - Join
Configurations List<Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Join Configuration>  - Set operation configuration. See 
join_configurationsbelow. - Labels
List<Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration Label>  - Label. See 
labelsbelow. - Mute
Until int - Second-level timestamp representing the temporary shutdown deadline.
 - No
Data boolFire  - 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 intSeverity  - Alarm severity when no data triggers an alarm.
 - Policy
Configuration Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Policy Configuration  - Alert policy configuration. See 
policy_configurationbelow. - Query
Lists List<Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Query List>  - Query the statistical list. See 
query_listbelow. - 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 List<Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Severity Configuration>  - Trigger condition, set at least one trigger condition. See 
severity_configurationsbelow. - Sink
Alerthub Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Sink Alerthub  - Configuration of Alerts Sent to Alerthub. See 
sink_alerthubbelow. - Sink
Cms Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Sink Cms  - Configure alerts sent to CloudMonitor. See 
sink_cmsbelow. - Sink
Event Pulumi.Store Ali Cloud. Sls. Inputs. Alert Configuration Sink Event Store  - Configuration of sending alarms to EventStore. See 
sink_event_storebelow. - List<string>
 - Customize the category of alarm monitoring rules.
 - Template
Configuration Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Template Configuration  - Alarm rule template configuration. See 
template_configurationbelow. - 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
[]Alert
Configuration Annotation  - 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 AlertConfiguration Condition Configuration  - Alarm trigger condition. See 
condition_configurationbelow. - Dashboard string
 - The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
 - Group
Configuration AlertConfiguration Group Configuration  - Group evaluation configuration. See 
group_configurationbelow. - Join
Configurations []AlertConfiguration Join Configuration  - Set operation configuration. See 
join_configurationsbelow. - Labels
[]Alert
Configuration Label  - Label. See 
labelsbelow. - Mute
Until int - Second-level timestamp representing the temporary shutdown deadline.
 - No
Data boolFire  - 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 intSeverity  - Alarm severity when no data triggers an alarm.
 - Policy
Configuration AlertConfiguration Policy Configuration  - Alert policy configuration. See 
policy_configurationbelow. - Query
Lists []AlertConfiguration Query List  - Query the statistical list. See 
query_listbelow. - 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 []AlertConfiguration Severity Configuration  - Trigger condition, set at least one trigger condition. See 
severity_configurationsbelow. - Sink
Alerthub AlertConfiguration Sink Alerthub  - Configuration of Alerts Sent to Alerthub. See 
sink_alerthubbelow. - Sink
Cms AlertConfiguration Sink Cms  - Configure alerts sent to CloudMonitor. See 
sink_cmsbelow. - Sink
Event AlertStore Configuration Sink Event Store  - Configuration of sending alarms to EventStore. See 
sink_event_storebelow. - []string
 - Customize the category of alarm monitoring rules.
 - Template
Configuration AlertConfiguration Template Configuration  - Alarm rule template configuration. See 
template_configurationbelow. - 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<Alert
Configuration Annotation>  - Template Annotations.
 - auto
Annotation 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.
 - condition
Configuration AlertConfiguration Condition Configuration  - Alarm trigger condition. See 
condition_configurationbelow. - dashboard String
 - The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
 - group
Configuration AlertConfiguration Group Configuration  - Group evaluation configuration. See 
group_configurationbelow. - join
Configurations List<AlertConfiguration Join Configuration>  - Set operation configuration. See 
join_configurationsbelow. - labels
List<Alert
Configuration Label>  - Label. See 
labelsbelow. - mute
Until Integer - Second-level timestamp representing the temporary shutdown deadline.
 - no
Data BooleanFire  - 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 IntegerSeverity  - Alarm severity when no data triggers an alarm.
 - policy
Configuration AlertConfiguration Policy Configuration  - Alert policy configuration. See 
policy_configurationbelow. - query
Lists List<AlertConfiguration Query List>  - Query the statistical list. See 
query_listbelow. - send
Resolved 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.
 - severity
Configurations List<AlertConfiguration Severity Configuration>  - Trigger condition, set at least one trigger condition. See 
severity_configurationsbelow. - sink
Alerthub AlertConfiguration Sink Alerthub  - Configuration of Alerts Sent to Alerthub. See 
sink_alerthubbelow. - sink
Cms AlertConfiguration Sink Cms  - Configure alerts sent to CloudMonitor. See 
sink_cmsbelow. - sink
Event AlertStore Configuration Sink Event Store  - Configuration of sending alarms to EventStore. See 
sink_event_storebelow. - List<String>
 - Customize the category of alarm monitoring rules.
 - template
Configuration AlertConfiguration Template Configuration  - Alarm rule template configuration. See 
template_configurationbelow. - 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
Alert
Configuration Annotation[]  - Template Annotations.
 - auto
Annotation 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.
 - condition
Configuration AlertConfiguration Condition Configuration  - Alarm trigger condition. See 
condition_configurationbelow. - dashboard string
 - The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
 - group
Configuration AlertConfiguration Group Configuration  - Group evaluation configuration. See 
group_configurationbelow. - join
Configurations AlertConfiguration Join Configuration[]  - Set operation configuration. See 
join_configurationsbelow. - labels
Alert
Configuration Label[]  - Label. See 
labelsbelow. - mute
Until number - Second-level timestamp representing the temporary shutdown deadline.
 - no
Data booleanFire  - 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 numberSeverity  - Alarm severity when no data triggers an alarm.
 - policy
Configuration AlertConfiguration Policy Configuration  - Alert policy configuration. See 
policy_configurationbelow. - query
Lists AlertConfiguration Query List[]  - Query the statistical list. See 
query_listbelow. - send
Resolved 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.
 - severity
Configurations AlertConfiguration Severity Configuration[]  - Trigger condition, set at least one trigger condition. See 
severity_configurationsbelow. - sink
Alerthub AlertConfiguration Sink Alerthub  - Configuration of Alerts Sent to Alerthub. See 
sink_alerthubbelow. - sink
Cms AlertConfiguration Sink Cms  - Configure alerts sent to CloudMonitor. See 
sink_cmsbelow. - sink
Event AlertStore Configuration Sink Event Store  - Configuration of sending alarms to EventStore. See 
sink_event_storebelow. - string[]
 - Customize the category of alarm monitoring rules.
 - template
Configuration AlertConfiguration Template Configuration  - Alarm rule template configuration. See 
template_configurationbelow. - 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[Alert
Configuration Annotation]  - 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 AlertConfiguration Condition Configuration  - Alarm trigger condition. See 
condition_configurationbelow. - dashboard str
 - The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
 - group_
configuration AlertConfiguration Group Configuration  - Group evaluation configuration. See 
group_configurationbelow. - join_
configurations Sequence[AlertConfiguration Join Configuration]  - Set operation configuration. See 
join_configurationsbelow. - labels
Sequence[Alert
Configuration Label]  - Label. See 
labelsbelow. - mute_
until int - Second-level timestamp representing the temporary shutdown deadline.
 - no_
data_ boolfire  - 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_ intseverity  - Alarm severity when no data triggers an alarm.
 - policy_
configuration AlertConfiguration Policy Configuration  - Alert policy configuration. See 
policy_configurationbelow. - query_
lists Sequence[AlertConfiguration Query List]  - Query the statistical list. See 
query_listbelow. - 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[AlertConfiguration Severity Configuration]  - Trigger condition, set at least one trigger condition. See 
severity_configurationsbelow. - sink_
alerthub AlertConfiguration Sink Alerthub  - Configuration of Alerts Sent to Alerthub. See 
sink_alerthubbelow. - sink_
cms AlertConfiguration Sink Cms  - Configure alerts sent to CloudMonitor. See 
sink_cmsbelow. - sink_
event_ Alertstore Configuration Sink Event Store  - Configuration of sending alarms to EventStore. See 
sink_event_storebelow. - Sequence[str]
 - Customize the category of alarm monitoring rules.
 - template_
configuration AlertConfiguration Template Configuration  - Alarm rule template configuration. See 
template_configurationbelow. - 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.
 - auto
Annotation 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.
 - condition
Configuration Property Map - Alarm trigger condition. See 
condition_configurationbelow. - dashboard String
 - The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
 - group
Configuration Property Map - Group evaluation configuration. See 
group_configurationbelow. - join
Configurations List<Property Map> - Set operation configuration. See 
join_configurationsbelow. - labels List<Property Map>
 - Label. See 
labelsbelow. - mute
Until Number - Second-level timestamp representing the temporary shutdown deadline.
 - no
Data BooleanFire  - 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 NumberSeverity  - Alarm severity when no data triggers an alarm.
 - policy
Configuration Property Map - Alert policy configuration. See 
policy_configurationbelow. - query
Lists List<Property Map> - Query the statistical list. See 
query_listbelow. - send
Resolved 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.
 - severity
Configurations List<Property Map> - Trigger condition, set at least one trigger condition. See 
severity_configurationsbelow. - sink
Alerthub Property Map - Configuration of Alerts Sent to Alerthub. See 
sink_alerthubbelow. - sink
Cms Property Map - Configure alerts sent to CloudMonitor. See 
sink_cmsbelow. - sink
Event Property MapStore  - Configuration of sending alarms to EventStore. See 
sink_event_storebelow. - List<String>
 - Customize the category of alarm monitoring rules.
 - template
Configuration Property Map - Alarm rule template configuration. See 
template_configurationbelow. - 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      
AlertConfigurationConditionConfiguration, AlertConfigurationConditionConfigurationArgs        
- Condition string
 - Count
Condition string 
- Condition string
 - Count
Condition string 
- condition String
 - count
Condition String 
- condition string
 - count
Condition string 
- condition str
 - count_
condition str 
- condition String
 - count
Condition String 
AlertConfigurationGroupConfiguration, AlertConfigurationGroupConfigurationArgs        
AlertConfigurationJoinConfiguration, AlertConfigurationJoinConfigurationArgs        
AlertConfigurationLabel, AlertConfigurationLabelArgs      
AlertConfigurationPolicyConfiguration, AlertConfigurationPolicyConfigurationArgs        
- Action
Policy stringId  - Alert
Policy stringId  - Repeat
Interval string 
- Action
Policy stringId  - Alert
Policy stringId  - Repeat
Interval string 
- action
Policy StringId  - alert
Policy StringId  - repeat
Interval String 
- action
Policy stringId  - alert
Policy stringId  - repeat
Interval string 
- action_
policy_ strid  - alert_
policy_ strid  - repeat_
interval str 
- action
Policy StringId  - alert
Policy StringId  - repeat
Interval String 
AlertConfigurationQueryList, AlertConfigurationQueryListArgs        
- Chart
Title string - Dashboard
Id string - End string
 - Power
Sql stringMode  - Project string
 - Query string
 - Region string
 - Role
Arn string - Start string
 - Store string
 - Store
Type string - Time
Span stringType  - Ui string
 
- Chart
Title string - Dashboard
Id string - End string
 - Power
Sql stringMode  - Project string
 - Query string
 - Region string
 - Role
Arn string - Start string
 - Store string
 - Store
Type string - Time
Span stringType  - Ui string
 
- chart
Title String - dashboard
Id String - end String
 - power
Sql StringMode  - project String
 - query String
 - region String
 - role
Arn String - start String
 - store String
 - store
Type String - time
Span StringType  - ui String
 
- chart
Title string - dashboard
Id string - end string
 - power
Sql stringMode  - project string
 - query string
 - region string
 - role
Arn string - start string
 - store string
 - store
Type string - time
Span stringType  - ui string
 
- chart_
title str - dashboard_
id str - end str
 - power_
sql_ strmode  - project str
 - query str
 - region str
 - role_
arn str - start str
 - store str
 - store_
type str - time_
span_ strtype  - ui str
 
- chart
Title String - dashboard
Id String - end String
 - power
Sql StringMode  - project String
 - query String
 - region String
 - role
Arn String - start String
 - store String
 - store
Type String - time
Span StringType  - ui String
 
AlertConfigurationSeverityConfiguration, AlertConfigurationSeverityConfigurationArgs        
AlertConfigurationSeverityConfigurationEvalCondition, AlertConfigurationSeverityConfigurationEvalConditionArgs            
- Condition string
 - Count
Condition string 
- Condition string
 - Count
Condition string 
- condition String
 - count
Condition String 
- condition string
 - count
Condition string 
- condition str
 - count_
condition str 
- condition String
 - count
Condition String 
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
 - Event
Store string - Project string
 - Role
Arn string 
- Enabled bool
 - Endpoint string
 - Event
Store string - Project string
 - Role
Arn string 
- enabled Boolean
 - endpoint String
 - event
Store String - project String
 - role
Arn String 
- enabled boolean
 - endpoint string
 - event
Store string - project string
 - role
Arn string 
- enabled bool
 - endpoint str
 - event_
store str - project str
 - role_
arn str 
- enabled Boolean
 - endpoint String
 - event
Store String - project String
 - role
Arn String 
AlertConfigurationTemplateConfiguration, AlertConfigurationTemplateConfigurationArgs        
- Annotations Dictionary<string, object>
 - Lang string
 - Template
Id string - Tokens Dictionary<string, object>
 - Type string
 - Version string
 
- Annotations map[string]interface{}
 - Lang string
 - Template
Id string - Tokens map[string]interface{}
 - Type string
 - Version string
 
- annotations Map<String,Object>
 - lang String
 - template
Id String - tokens Map<String,Object>
 - type String
 - version String
 
- annotations {[key: string]: any}
 - lang string
 - template
Id 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
 - template
Id String - tokens Map<Any>
 - type String
 - version String
 
AlertSchedule, AlertScheduleArgs    
- Cron
Expression 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.
 - Run
Immdiately bool - Dispatch immediately.
 - Time
Zone 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 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.
 - Run
Immdiately bool - Dispatch immediately.
 - Time
Zone 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 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.
 - run
Immdiately Boolean - Dispatch immediately.
 - time
Zone 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 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.
 - run
Immdiately boolean - Dispatch immediately.
 - time
Zone 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.
 
- cron
Expression 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.
 - run
Immdiately Boolean - Dispatch immediately.
 - time
Zone 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 
alicloudTerraform Provider.