1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. sls
  5. getAlerts
Alibaba Cloud v3.81.0 published on Monday, Jun 23, 2025 by Pulumi

alicloud.sls.getAlerts

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.81.0 published on Monday, Jun 23, 2025 by Pulumi

    This data source provides Sls Alert available to the user.What is Alert

    NOTE: Available since v1.250.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    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 defaultINsMgl = new alicloud.log.Project("defaultINsMgl", {
        description: "terraform-alert-example",
        name: "terraform-alert-example",
    });
    const defaultAlert = new alicloud.sls.Alert("default", {
        configuration: {
            type: "tpl",
            version: "2",
            queryLists: [
                {
                    query: "* | select *",
                    timeSpanType: "Relative",
                    start: "-15m",
                    end: "now",
                    storeType: "log",
                    project: defaultINsMgl.id,
                    store: "alert",
                    region: "cn-beijing",
                    powerSqlMode: "disable",
                    chartTitle: "wkb-chart",
                    dashboardId: "wkb-dashboard",
                    ui: "{}",
                    roleArn: "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
                },
                {
                    storeType: "meta",
                    store: "user.rds_ip_whitelist",
                },
                {
                    storeType: "meta",
                    store: "myexample1",
                },
            ],
            groupConfiguration: {
                type: "no_group",
                fields: [
                    "a",
                    "b",
                ],
            },
            joinConfigurations: [
                {
                    type: "no_join",
                    condition: "aa",
                },
                {
                    type: "cross_join",
                    condition: "qqq",
                },
                {
                    type: "inner_join",
                    condition: "fefefe",
                },
            ],
            severityConfigurations: [{
                severity: 6,
                evalCondition: {
                    condition: "__count__ > 1",
                    countCondition: "cnt > 0",
                },
            }],
            labels: [{
                key: "a",
                value: "b",
            }],
            annotations: [{
                key: "x",
                value: "y",
            }],
            autoAnnotation: true,
            sendResolved: false,
            threshold: 1,
            noDataFire: false,
            sinkEventStore: {
                enabled: true,
                endpoint: "cn-shanghai-intranet.log.aliyuncs.com",
                project: "wkb-wangren",
                eventStore: "alert",
                roleArn: "acs:ram::1654218965343050:role/aliyunlogetlrole",
            },
            sinkCms: {
                enabled: false,
            },
            sinkAlerthub: {
                enabled: false,
            },
            templateConfiguration: {
                templateId: "sls.app.ack.autoscaler.cluster_unhealthy",
                type: "sys",
                version: "1.0",
                lang: "cn",
            },
            conditionConfiguration: {
                condition: "cnt > 3",
                countCondition: "__count__ < 3",
            },
            policyConfiguration: {
                alertPolicyId: "sls.builtin.dynamic",
                actionPolicyId: "wkb-action",
                repeatInterval: "1m",
            },
            dashboard: "internal-alert",
            muteUntil: 0,
            noDataSeverity: 6,
            tags: [
                "wkb",
                "wangren",
                "sls",
            ],
        },
        alertName: alertName,
        projectName: defaultINsMgl.id,
        schedule: {
            type: "Cron",
            runImmdiately: true,
            timeZone: "+0800",
            delay: 10,
            cronExpression: "0/5 * * * *",
        },
        displayName: "openapi-terraform",
        description: "create alert",
    });
    const _default = alicloud.sls.getAlertsOutput({
        ids: [defaultAlert.id],
        nameRegex: defaultAlert.alertName,
        projectName: defaultINsMgl.id,
    });
    export const alicloudSlsAlertExampleId = _default.apply(_default => _default.alerts?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    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_ins_mgl = alicloud.log.Project("defaultINsMgl",
        description="terraform-alert-example",
        name="terraform-alert-example")
    default_alert = alicloud.sls.Alert("default",
        configuration={
            "type": "tpl",
            "version": "2",
            "query_lists": [
                {
                    "query": "* | select *",
                    "time_span_type": "Relative",
                    "start": "-15m",
                    "end": "now",
                    "store_type": "log",
                    "project": default_ins_mgl.id,
                    "store": "alert",
                    "region": "cn-beijing",
                    "power_sql_mode": "disable",
                    "chart_title": "wkb-chart",
                    "dashboard_id": "wkb-dashboard",
                    "ui": "{}",
                    "role_arn": "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
                },
                {
                    "store_type": "meta",
                    "store": "user.rds_ip_whitelist",
                },
                {
                    "store_type": "meta",
                    "store": "myexample1",
                },
            ],
            "group_configuration": {
                "type": "no_group",
                "fields": [
                    "a",
                    "b",
                ],
            },
            "join_configurations": [
                {
                    "type": "no_join",
                    "condition": "aa",
                },
                {
                    "type": "cross_join",
                    "condition": "qqq",
                },
                {
                    "type": "inner_join",
                    "condition": "fefefe",
                },
            ],
            "severity_configurations": [{
                "severity": 6,
                "eval_condition": {
                    "condition": "__count__ > 1",
                    "count_condition": "cnt > 0",
                },
            }],
            "labels": [{
                "key": "a",
                "value": "b",
            }],
            "annotations": [{
                "key": "x",
                "value": "y",
            }],
            "auto_annotation": True,
            "send_resolved": False,
            "threshold": 1,
            "no_data_fire": False,
            "sink_event_store": {
                "enabled": True,
                "endpoint": "cn-shanghai-intranet.log.aliyuncs.com",
                "project": "wkb-wangren",
                "event_store": "alert",
                "role_arn": "acs:ram::1654218965343050:role/aliyunlogetlrole",
            },
            "sink_cms": {
                "enabled": False,
            },
            "sink_alerthub": {
                "enabled": False,
            },
            "template_configuration": {
                "template_id": "sls.app.ack.autoscaler.cluster_unhealthy",
                "type": "sys",
                "version": "1.0",
                "lang": "cn",
            },
            "condition_configuration": {
                "condition": "cnt > 3",
                "count_condition": "__count__ < 3",
            },
            "policy_configuration": {
                "alert_policy_id": "sls.builtin.dynamic",
                "action_policy_id": "wkb-action",
                "repeat_interval": "1m",
            },
            "dashboard": "internal-alert",
            "mute_until": 0,
            "no_data_severity": 6,
            "tags": [
                "wkb",
                "wangren",
                "sls",
            ],
        },
        alert_name=alert_name,
        project_name=default_ins_mgl.id,
        schedule={
            "type": "Cron",
            "run_immdiately": True,
            "time_zone": "+0800",
            "delay": 10,
            "cron_expression": "0/5 * * * *",
        },
        display_name="openapi-terraform",
        description="create alert")
    default = alicloud.sls.get_alerts_output(ids=[default_alert.id],
        name_regex=default_alert.alert_name,
        project_name=default_ins_mgl.id)
    pulumi.export("alicloudSlsAlertExampleId", default.alerts[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sls"
    	"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
    }
    defaultINsMgl, err := log.NewProject(ctx, "defaultINsMgl", &log.ProjectArgs{
    Description: pulumi.String("terraform-alert-example"),
    Name: pulumi.String("terraform-alert-example"),
    })
    if err != nil {
    return err
    }
    defaultAlert, err := sls.NewAlert(ctx, "default", &sls.AlertArgs{
    Configuration: &sls.AlertConfigurationArgs{
    Type: pulumi.String("tpl"),
    Version: pulumi.String("2"),
    QueryLists: sls.AlertConfigurationQueryListArray{
    &sls.AlertConfigurationQueryListArgs{
    Query: pulumi.String("* | select *"),
    TimeSpanType: pulumi.String("Relative"),
    Start: pulumi.String("-15m"),
    End: pulumi.String("now"),
    StoreType: pulumi.String("log"),
    Project: defaultINsMgl.ID(),
    Store: pulumi.String("alert"),
    Region: pulumi.String("cn-beijing"),
    PowerSqlMode: pulumi.String("disable"),
    ChartTitle: pulumi.String("wkb-chart"),
    DashboardId: pulumi.String("wkb-dashboard"),
    Ui: pulumi.String("{}"),
    RoleArn: pulumi.String("acs:ram::1654218965343050:role/aliyunslsalertmonitorrole"),
    },
    &sls.AlertConfigurationQueryListArgs{
    StoreType: pulumi.String("meta"),
    Store: pulumi.String("user.rds_ip_whitelist"),
    },
    &sls.AlertConfigurationQueryListArgs{
    StoreType: pulumi.String("meta"),
    Store: pulumi.String("myexample1"),
    },
    },
    GroupConfiguration: &sls.AlertConfigurationGroupConfigurationArgs{
    Type: pulumi.String("no_group"),
    Fields: pulumi.StringArray{
    pulumi.String("a"),
    pulumi.String("b"),
    },
    },
    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"),
    },
    },
    SeverityConfigurations: sls.AlertConfigurationSeverityConfigurationArray{
    &sls.AlertConfigurationSeverityConfigurationArgs{
    Severity: pulumi.Int(6),
    EvalCondition: &sls.AlertConfigurationSeverityConfigurationEvalConditionArgs{
    Condition: pulumi.String("__count__ > 1"),
    CountCondition: pulumi.String("cnt > 0"),
    },
    },
    },
    Labels: sls.AlertConfigurationLabelArray{
    &sls.AlertConfigurationLabelArgs{
    Key: pulumi.String("a"),
    Value: pulumi.String("b"),
    },
    },
    Annotations: sls.AlertConfigurationAnnotationArray{
    &sls.AlertConfigurationAnnotationArgs{
    Key: pulumi.String("x"),
    Value: pulumi.String("y"),
    },
    },
    AutoAnnotation: pulumi.Bool(true),
    SendResolved: pulumi.Bool(false),
    Threshold: pulumi.Int(1),
    NoDataFire: pulumi.Bool(false),
    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"),
    },
    SinkCms: &sls.AlertConfigurationSinkCmsArgs{
    Enabled: pulumi.Bool(false),
    },
    SinkAlerthub: &sls.AlertConfigurationSinkAlerthubArgs{
    Enabled: pulumi.Bool(false),
    },
    TemplateConfiguration: &sls.AlertConfigurationTemplateConfigurationArgs{
    TemplateId: pulumi.String("sls.app.ack.autoscaler.cluster_unhealthy"),
    Type: pulumi.String("sys"),
    Version: pulumi.String("1.0"),
    Lang: pulumi.String("cn"),
    },
    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"),
    MuteUntil: pulumi.Int(0),
    NoDataSeverity: pulumi.Int(6),
    Tags: pulumi.StringArray{
    pulumi.String("wkb"),
    pulumi.String("wangren"),
    pulumi.String("sls"),
    },
    },
    AlertName: pulumi.String(alertName),
    ProjectName: defaultINsMgl.ID(),
    Schedule: &sls.AlertScheduleArgs{
    Type: pulumi.String("Cron"),
    RunImmdiately: pulumi.Bool(true),
    TimeZone: pulumi.String("+0800"),
    Delay: pulumi.Int(10),
    CronExpression: pulumi.String("0/5 * * * *"),
    },
    DisplayName: pulumi.String("openapi-terraform"),
    Description: pulumi.String("create alert"),
    })
    if err != nil {
    return err
    }
    _default := sls.GetAlertsOutput(ctx, sls.GetAlertsOutputArgs{
    Ids: pulumi.StringArray{
    defaultAlert.ID(),
    },
    NameRegex: defaultAlert.AlertName,
    ProjectName: defaultINsMgl.ID(),
    }, nil);
    ctx.Export("alicloudSlsAlertExampleId", _default.ApplyT(func(_default sls.GetAlertsResult) (*string, error) {
    return &default.Alerts[0].Id, nil
    }).(pulumi.StringPtrOutput))
    return nil
    })
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    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 defaultINsMgl = new AliCloud.Log.Project("defaultINsMgl", new()
        {
            Description = "terraform-alert-example",
            Name = "terraform-alert-example",
        });
    
        var defaultAlert = new AliCloud.Sls.Alert("default", new()
        {
            Configuration = new AliCloud.Sls.Inputs.AlertConfigurationArgs
            {
                Type = "tpl",
                Version = "2",
                QueryLists = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
                    {
                        Query = "* | select *",
                        TimeSpanType = "Relative",
                        Start = "-15m",
                        End = "now",
                        StoreType = "log",
                        Project = defaultINsMgl.Id,
                        Store = "alert",
                        Region = "cn-beijing",
                        PowerSqlMode = "disable",
                        ChartTitle = "wkb-chart",
                        DashboardId = "wkb-dashboard",
                        Ui = "{}",
                        RoleArn = "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
                    },
                    new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
                    {
                        StoreType = "meta",
                        Store = "user.rds_ip_whitelist",
                    },
                    new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
                    {
                        StoreType = "meta",
                        Store = "myexample1",
                    },
                },
                GroupConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationGroupConfigurationArgs
                {
                    Type = "no_group",
                    Fields = new[]
                    {
                        "a",
                        "b",
                    },
                },
                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",
                    },
                },
                SeverityConfigurations = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationArgs
                    {
                        Severity = 6,
                        EvalCondition = new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationEvalConditionArgs
                        {
                            Condition = "__count__ > 1",
                            CountCondition = "cnt > 0",
                        },
                    },
                },
                Labels = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationLabelArgs
                    {
                        Key = "a",
                        Value = "b",
                    },
                },
                Annotations = new[]
                {
                    new AliCloud.Sls.Inputs.AlertConfigurationAnnotationArgs
                    {
                        Key = "x",
                        Value = "y",
                    },
                },
                AutoAnnotation = true,
                SendResolved = false,
                Threshold = 1,
                NoDataFire = false,
                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",
                },
                SinkCms = new AliCloud.Sls.Inputs.AlertConfigurationSinkCmsArgs
                {
                    Enabled = false,
                },
                SinkAlerthub = new AliCloud.Sls.Inputs.AlertConfigurationSinkAlerthubArgs
                {
                    Enabled = false,
                },
                TemplateConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationTemplateConfigurationArgs
                {
                    TemplateId = "sls.app.ack.autoscaler.cluster_unhealthy",
                    Type = "sys",
                    Version = "1.0",
                    Lang = "cn",
                },
                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",
                MuteUntil = 0,
                NoDataSeverity = 6,
                Tags = new[]
                {
                    "wkb",
                    "wangren",
                    "sls",
                },
            },
            AlertName = alertName,
            ProjectName = defaultINsMgl.Id,
            Schedule = new AliCloud.Sls.Inputs.AlertScheduleArgs
            {
                Type = "Cron",
                RunImmdiately = true,
                TimeZone = "+0800",
                Delay = 10,
                CronExpression = "0/5 * * * *",
            },
            DisplayName = "openapi-terraform",
            Description = "create alert",
        });
    
        var @default = AliCloud.Sls.GetAlerts.Invoke(new()
        {
            Ids = new[]
            {
                defaultAlert.Id,
            },
            NameRegex = defaultAlert.AlertName,
            ProjectName = defaultINsMgl.Id,
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudSlsAlertExampleId"] = @default.Apply(@default => @default.Apply(getAlertsResult => getAlertsResult.Alerts[0]?.Id)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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.AlertConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationGroupConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkEventStoreArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkCmsArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkAlerthubArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationTemplateConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationConditionConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertConfigurationPolicyConfigurationArgs;
    import com.pulumi.alicloud.sls.inputs.AlertScheduleArgs;
    import com.pulumi.alicloud.sls.SlsFunctions;
    import com.pulumi.alicloud.sls.inputs.GetAlertsArgs;
    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 defaultINsMgl = new Project("defaultINsMgl", ProjectArgs.builder()
                .description("terraform-alert-example")
                .name("terraform-alert-example")
                .build());
    
            var defaultAlert = new Alert("defaultAlert", AlertArgs.builder()
                .configuration(AlertConfigurationArgs.builder()
                    .type("tpl")
                    .version("2")
                    .queryLists(                
                        AlertConfigurationQueryListArgs.builder()
                            .query("* | select *")
                            .timeSpanType("Relative")
                            .start("-15m")
                            .end("now")
                            .storeType("log")
                            .project(defaultINsMgl.id())
                            .store("alert")
                            .region("cn-beijing")
                            .powerSqlMode("disable")
                            .chartTitle("wkb-chart")
                            .dashboardId("wkb-dashboard")
                            .ui("{}")
                            .roleArn("acs:ram::1654218965343050:role/aliyunslsalertmonitorrole")
                            .build(),
                        AlertConfigurationQueryListArgs.builder()
                            .storeType("meta")
                            .store("user.rds_ip_whitelist")
                            .build(),
                        AlertConfigurationQueryListArgs.builder()
                            .storeType("meta")
                            .store("myexample1")
                            .build())
                    .groupConfiguration(AlertConfigurationGroupConfigurationArgs.builder()
                        .type("no_group")
                        .fields(                    
                            "a",
                            "b")
                        .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())
                    .severityConfigurations(AlertConfigurationSeverityConfigurationArgs.builder()
                        .severity(6)
                        .evalCondition(AlertConfigurationSeverityConfigurationEvalConditionArgs.builder()
                            .condition("__count__ > 1")
                            .countCondition("cnt > 0")
                            .build())
                        .build())
                    .labels(AlertConfigurationLabelArgs.builder()
                        .key("a")
                        .value("b")
                        .build())
                    .annotations(AlertConfigurationAnnotationArgs.builder()
                        .key("x")
                        .value("y")
                        .build())
                    .autoAnnotation(true)
                    .sendResolved(false)
                    .threshold(1)
                    .noDataFire(false)
                    .sinkEventStore(AlertConfigurationSinkEventStoreArgs.builder()
                        .enabled(true)
                        .endpoint("cn-shanghai-intranet.log.aliyuncs.com")
                        .project("wkb-wangren")
                        .eventStore("alert")
                        .roleArn("acs:ram::1654218965343050:role/aliyunlogetlrole")
                        .build())
                    .sinkCms(AlertConfigurationSinkCmsArgs.builder()
                        .enabled(false)
                        .build())
                    .sinkAlerthub(AlertConfigurationSinkAlerthubArgs.builder()
                        .enabled(false)
                        .build())
                    .templateConfiguration(AlertConfigurationTemplateConfigurationArgs.builder()
                        .templateId("sls.app.ack.autoscaler.cluster_unhealthy")
                        .type("sys")
                        .version("1.0")
                        .lang("cn")
                        .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")
                    .muteUntil(0)
                    .noDataSeverity(6)
                    .tags(                
                        "wkb",
                        "wangren",
                        "sls")
                    .build())
                .alertName(alertName)
                .projectName(defaultINsMgl.id())
                .schedule(AlertScheduleArgs.builder()
                    .type("Cron")
                    .runImmdiately(true)
                    .timeZone("+0800")
                    .delay(10)
                    .cronExpression("0/5 * * * *")
                    .build())
                .displayName("openapi-terraform")
                .description("create alert")
                .build());
    
            final var default = SlsFunctions.getAlerts(GetAlertsArgs.builder()
                .ids(defaultAlert.id())
                .nameRegex(defaultAlert.alertName())
                .projectName(defaultINsMgl.id())
                .build());
    
            ctx.export("alicloudSlsAlertExampleId", default_.applyValue(_default_ -> _default_.alerts()[0].id()));
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      alertName:
        type: string
        default: openapi-terraform-alert
      projectName:
        type: string
        default: terraform-alert-example
    resources:
      defaultINsMgl:
        type: alicloud:log:Project
        properties:
          description: terraform-alert-example
          name: terraform-alert-example
      defaultAlert:
        type: alicloud:sls:Alert
        name: default
        properties:
          configuration:
            type: tpl
            version: '2'
            queryLists:
              - query: '* | select *'
                timeSpanType: Relative
                start: -15m
                end: now
                storeType: log
                project: ${defaultINsMgl.id}
                store: alert
                region: cn-beijing
                powerSqlMode: disable
                chartTitle: wkb-chart
                dashboardId: wkb-dashboard
                ui: '{}'
                roleArn: acs:ram::1654218965343050:role/aliyunslsalertmonitorrole
              - storeType: meta
                store: user.rds_ip_whitelist
              - storeType: meta
                store: myexample1
            groupConfiguration:
              type: no_group
              fields:
                - a
                - b
            joinConfigurations:
              - type: no_join
                condition: aa
              - type: cross_join
                condition: qqq
              - type: inner_join
                condition: fefefe
            severityConfigurations:
              - severity: '6'
                evalCondition:
                  condition: __count__ > 1
                  countCondition: cnt > 0
            labels:
              - key: a
                value: b
            annotations:
              - key: x
                value: y
            autoAnnotation: true
            sendResolved: false
            threshold: '1'
            noDataFire: false
            sinkEventStore:
              enabled: true
              endpoint: cn-shanghai-intranet.log.aliyuncs.com
              project: wkb-wangren
              eventStore: alert
              roleArn: acs:ram::1654218965343050:role/aliyunlogetlrole
            sinkCms:
              enabled: false
            sinkAlerthub:
              enabled: false
            templateConfiguration:
              templateId: sls.app.ack.autoscaler.cluster_unhealthy
              type: sys
              version: '1.0'
              lang: cn
            conditionConfiguration:
              condition: cnt > 3
              countCondition: __count__ < 3
            policyConfiguration:
              alertPolicyId: sls.builtin.dynamic
              actionPolicyId: wkb-action
              repeatInterval: 1m
            dashboard: internal-alert
            muteUntil: '0'
            noDataSeverity: '6'
            tags:
              - wkb
              - wangren
              - sls
          alertName: ${alertName}
          projectName: ${defaultINsMgl.id}
          schedule:
            type: Cron
            runImmdiately: true
            timeZone: '+0800'
            delay: '10'
            cronExpression: 0/5 * * * *
          displayName: openapi-terraform
          description: create alert
    variables:
      default:
        fn::invoke:
          function: alicloud:sls:getAlerts
          arguments:
            ids:
              - ${defaultAlert.id}
            nameRegex: ${defaultAlert.alertName}
            projectName: ${defaultINsMgl.id}
    outputs:
      alicloudSlsAlertExampleId: ${default.alerts[0].id}
    

    Using getAlerts

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAlerts(args: GetAlertsArgs, opts?: InvokeOptions): Promise<GetAlertsResult>
    function getAlertsOutput(args: GetAlertsOutputArgs, opts?: InvokeOptions): Output<GetAlertsResult>
    def get_alerts(ids: Optional[Sequence[str]] = None,
                   name_regex: Optional[str] = None,
                   output_file: Optional[str] = None,
                   project_name: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetAlertsResult
    def get_alerts_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   name_regex: Optional[pulumi.Input[str]] = None,
                   output_file: Optional[pulumi.Input[str]] = None,
                   project_name: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetAlertsResult]
    func GetAlerts(ctx *Context, args *GetAlertsArgs, opts ...InvokeOption) (*GetAlertsResult, error)
    func GetAlertsOutput(ctx *Context, args *GetAlertsOutputArgs, opts ...InvokeOption) GetAlertsResultOutput

    > Note: This function is named GetAlerts in the Go SDK.

    public static class GetAlerts 
    {
        public static Task<GetAlertsResult> InvokeAsync(GetAlertsArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertsResult> Invoke(GetAlertsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertsResult> getAlerts(GetAlertsArgs args, InvokeOptions options)
    public static Output<GetAlertsResult> getAlerts(GetAlertsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: alicloud:sls/getAlerts:getAlerts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectName string
    Project Name
    Ids List<string>
    A list of Alert IDs. The value is formulated as <project_name>:<alert_name>.
    NameRegex string
    A regex string to filter results by Group Metric Rule name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ProjectName string
    Project Name
    Ids []string
    A list of Alert IDs. The value is formulated as <project_name>:<alert_name>.
    NameRegex string
    A regex string to filter results by Group Metric Rule name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    projectName String
    Project Name
    ids List<String>
    A list of Alert IDs. The value is formulated as <project_name>:<alert_name>.
    nameRegex String
    A regex string to filter results by Group Metric Rule name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    projectName string
    Project Name
    ids string[]
    A list of Alert IDs. The value is formulated as <project_name>:<alert_name>.
    nameRegex string
    A regex string to filter results by Group Metric Rule name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    project_name str
    Project Name
    ids Sequence[str]
    A list of Alert IDs. The value is formulated as <project_name>:<alert_name>.
    name_regex str
    A regex string to filter results by Group Metric Rule name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    projectName String
    Project Name
    ids List<String>
    A list of Alert IDs. The value is formulated as <project_name>:<alert_name>.
    nameRegex String
    A regex string to filter results by Group Metric Rule name.
    outputFile String
    File name where to save data source results (after running pulumi preview).

    getAlerts Result

    The following output properties are available:

    Alerts List<Pulumi.AliCloud.Sls.Outputs.GetAlertsAlert>
    A list of Alert Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Alert IDs.
    Names List<string>
    A list of name of Alerts.
    ProjectName string
    NameRegex string
    OutputFile string
    Alerts []GetAlertsAlert
    A list of Alert Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Alert IDs.
    Names []string
    A list of name of Alerts.
    ProjectName string
    NameRegex string
    OutputFile string
    alerts List<GetAlertsAlert>
    A list of Alert Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Alert IDs.
    names List<String>
    A list of name of Alerts.
    projectName String
    nameRegex String
    outputFile String
    alerts GetAlertsAlert[]
    A list of Alert Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Alert IDs.
    names string[]
    A list of name of Alerts.
    projectName string
    nameRegex string
    outputFile string
    alerts Sequence[GetAlertsAlert]
    A list of Alert Entries. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Alert IDs.
    names Sequence[str]
    A list of name of Alerts.
    project_name str
    name_regex str
    output_file str
    alerts List<Property Map>
    A list of Alert Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Alert IDs.
    names List<String>
    A list of name of Alerts.
    projectName String
    nameRegex String
    outputFile String

    Supporting Types

    GetAlertsAlert

    AlertName string
    Alert rule ID, unique under Project
    Configuration Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfiguration
    Detailed configuration of alarm monitoring rules
    Description string
    Compatible fields, set to empty strings.
    DisplayName string
    Display name of the alarm rule
    Id string
    The ID of the resource supplied above.
    Schedule Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertSchedule
    Check the frequency-dependent configuration
    AlertName string
    Alert rule ID, unique under Project
    Configuration GetAlertsAlertConfiguration
    Detailed configuration of alarm monitoring rules
    Description string
    Compatible fields, set to empty strings.
    DisplayName string
    Display name of the alarm rule
    Id string
    The ID of the resource supplied above.
    Schedule GetAlertsAlertSchedule
    Check the frequency-dependent configuration
    alertName String
    Alert rule ID, unique under Project
    configuration GetAlertsAlertConfiguration
    Detailed configuration of alarm monitoring rules
    description String
    Compatible fields, set to empty strings.
    displayName String
    Display name of the alarm rule
    id String
    The ID of the resource supplied above.
    schedule GetAlertsAlertSchedule
    Check the frequency-dependent configuration
    alertName string
    Alert rule ID, unique under Project
    configuration GetAlertsAlertConfiguration
    Detailed configuration of alarm monitoring rules
    description string
    Compatible fields, set to empty strings.
    displayName string
    Display name of the alarm rule
    id string
    The ID of the resource supplied above.
    schedule GetAlertsAlertSchedule
    Check the frequency-dependent configuration
    alert_name str
    Alert rule ID, unique under Project
    configuration GetAlertsAlertConfiguration
    Detailed configuration of alarm monitoring rules
    description str
    Compatible fields, set to empty strings.
    display_name str
    Display name of the alarm rule
    id str
    The ID of the resource supplied above.
    schedule GetAlertsAlertSchedule
    Check the frequency-dependent configuration
    alertName String
    Alert rule ID, unique under Project
    configuration Property Map
    Detailed configuration of alarm monitoring rules
    description String
    Compatible fields, set to empty strings.
    displayName String
    Display name of the alarm rule
    id String
    The ID of the resource supplied above.
    schedule Property Map
    Check the frequency-dependent configuration

    GetAlertsAlertConfiguration

    Annotations List<Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationAnnotation>
    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.GetAlertsAlertConfigurationConditionConfiguration
    Alarm trigger condition.
    Dashboard string
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    GroupConfiguration Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationGroupConfiguration
    Group evaluation configuration.
    JoinConfigurations List<Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationJoinConfiguration>
    Set operation configuration.
    Labels List<Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationLabel>
    Label.
    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.GetAlertsAlertConfigurationPolicyConfiguration
    Alert policy configuration.
    QueryLists List<Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationQueryList>
    Query the statistical list.
    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.GetAlertsAlertConfigurationSeverityConfiguration>
    Trigger condition, set at least one trigger condition.
    SinkAlerthub Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub.
    SinkCms Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor.
    SinkEventStore Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore.
    Tags List<string>
    Customize the category of alarm monitoring rules.
    TemplateConfiguration Pulumi.AliCloud.Sls.Inputs.GetAlertsAlertConfigurationTemplateConfiguration
    Alarm rule template configuration.
    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
    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.
    Version string
    Fixed as 2.0.
    Annotations []GetAlertsAlertConfigurationAnnotation
    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 GetAlertsAlertConfigurationConditionConfiguration
    Alarm trigger condition.
    Dashboard string
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    GroupConfiguration GetAlertsAlertConfigurationGroupConfiguration
    Group evaluation configuration.
    JoinConfigurations []GetAlertsAlertConfigurationJoinConfiguration
    Set operation configuration.
    Labels []GetAlertsAlertConfigurationLabel
    Label.
    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 GetAlertsAlertConfigurationPolicyConfiguration
    Alert policy configuration.
    QueryLists []GetAlertsAlertConfigurationQueryList
    Query the statistical list.
    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 []GetAlertsAlertConfigurationSeverityConfiguration
    Trigger condition, set at least one trigger condition.
    SinkAlerthub GetAlertsAlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub.
    SinkCms GetAlertsAlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor.
    SinkEventStore GetAlertsAlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore.
    Tags []string
    Customize the category of alarm monitoring rules.
    TemplateConfiguration GetAlertsAlertConfigurationTemplateConfiguration
    Alarm rule template configuration.
    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
    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.
    Version string
    Fixed as 2.0.
    annotations List<GetAlertsAlertConfigurationAnnotation>
    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 GetAlertsAlertConfigurationConditionConfiguration
    Alarm trigger condition.
    dashboard String
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    groupConfiguration GetAlertsAlertConfigurationGroupConfiguration
    Group evaluation configuration.
    joinConfigurations List<GetAlertsAlertConfigurationJoinConfiguration>
    Set operation configuration.
    labels List<GetAlertsAlertConfigurationLabel>
    Label.
    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 GetAlertsAlertConfigurationPolicyConfiguration
    Alert policy configuration.
    queryLists List<GetAlertsAlertConfigurationQueryList>
    Query the statistical list.
    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<GetAlertsAlertConfigurationSeverityConfiguration>
    Trigger condition, set at least one trigger condition.
    sinkAlerthub GetAlertsAlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub.
    sinkCms GetAlertsAlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor.
    sinkEventStore GetAlertsAlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore.
    tags List<String>
    Customize the category of alarm monitoring rules.
    templateConfiguration GetAlertsAlertConfigurationTemplateConfiguration
    Alarm rule template configuration.
    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
    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.
    version String
    Fixed as 2.0.
    annotations GetAlertsAlertConfigurationAnnotation[]
    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 GetAlertsAlertConfigurationConditionConfiguration
    Alarm trigger condition.
    dashboard string
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    groupConfiguration GetAlertsAlertConfigurationGroupConfiguration
    Group evaluation configuration.
    joinConfigurations GetAlertsAlertConfigurationJoinConfiguration[]
    Set operation configuration.
    labels GetAlertsAlertConfigurationLabel[]
    Label.
    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 GetAlertsAlertConfigurationPolicyConfiguration
    Alert policy configuration.
    queryLists GetAlertsAlertConfigurationQueryList[]
    Query the statistical list.
    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 GetAlertsAlertConfigurationSeverityConfiguration[]
    Trigger condition, set at least one trigger condition.
    sinkAlerthub GetAlertsAlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub.
    sinkCms GetAlertsAlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor.
    sinkEventStore GetAlertsAlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore.
    tags string[]
    Customize the category of alarm monitoring rules.
    templateConfiguration GetAlertsAlertConfigurationTemplateConfiguration
    Alarm rule template configuration.
    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
    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.
    version string
    Fixed as 2.0.
    annotations Sequence[GetAlertsAlertConfigurationAnnotation]
    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 GetAlertsAlertConfigurationConditionConfiguration
    Alarm trigger condition.
    dashboard str
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    group_configuration GetAlertsAlertConfigurationGroupConfiguration
    Group evaluation configuration.
    join_configurations Sequence[GetAlertsAlertConfigurationJoinConfiguration]
    Set operation configuration.
    labels Sequence[GetAlertsAlertConfigurationLabel]
    Label.
    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 GetAlertsAlertConfigurationPolicyConfiguration
    Alert policy configuration.
    query_lists Sequence[GetAlertsAlertConfigurationQueryList]
    Query the statistical list.
    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[GetAlertsAlertConfigurationSeverityConfiguration]
    Trigger condition, set at least one trigger condition.
    sink_alerthub GetAlertsAlertConfigurationSinkAlerthub
    Configuration of Alerts Sent to Alerthub.
    sink_cms GetAlertsAlertConfigurationSinkCms
    Configure alerts sent to CloudMonitor.
    sink_event_store GetAlertsAlertConfigurationSinkEventStore
    Configuration of sending alarms to EventStore.
    tags Sequence[str]
    Customize the category of alarm monitoring rules.
    template_configuration GetAlertsAlertConfigurationTemplateConfiguration
    Alarm rule template configuration.
    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
    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.
    version str
    Fixed as 2.0.
    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.
    dashboard String
    The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
    groupConfiguration Property Map
    Group evaluation configuration.
    joinConfigurations List<Property Map>
    Set operation configuration.
    labels List<Property Map>
    Label.
    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.
    queryLists List<Property Map>
    Query the statistical list.
    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.
    sinkAlerthub Property Map
    Configuration of Alerts Sent to Alerthub.
    sinkCms Property Map
    Configure alerts sent to CloudMonitor.
    sinkEventStore Property Map
    Configuration of sending alarms to EventStore.
    tags List<String>
    Customize the category of alarm monitoring rules.
    templateConfiguration Property Map
    Alarm rule template configuration.
    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
    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.
    version String
    Fixed as 2.0.

    GetAlertsAlertConfigurationAnnotation

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

    GetAlertsAlertConfigurationConditionConfiguration

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

    GetAlertsAlertConfigurationGroupConfiguration

    Fields List<string>
    The field used for grouping evaluation.When type is set to custom, fields must be set.
    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.
    Fields []string
    The field used for grouping evaluation.When type is set to custom, fields must be set.
    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.
    fields List<String>
    The field used for grouping evaluation.When type is set to custom, fields must be set.
    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.
    fields string[]
    The field used for grouping evaluation.When type is set to custom, fields must be set.
    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.
    fields Sequence[str]
    The field used for grouping evaluation.When type is set to custom, fields must be set.
    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.
    fields List<String>
    The field used for grouping evaluation.When type is set to custom, fields must be set.
    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.

    GetAlertsAlertConfigurationJoinConfiguration

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

    GetAlertsAlertConfigurationLabel

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

    GetAlertsAlertConfigurationPolicyConfiguration

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

    GetAlertsAlertConfigurationQueryList

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

    GetAlertsAlertConfigurationSeverityConfiguration

    evalCondition Property Map
    Trigger condition.
    severity Number
    Alarm severity.

    GetAlertsAlertConfigurationSeverityConfigurationEvalCondition

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

    GetAlertsAlertConfigurationSinkAlerthub

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

    GetAlertsAlertConfigurationSinkCms

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

    GetAlertsAlertConfigurationSinkEventStore

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

    GetAlertsAlertConfigurationTemplateConfiguration

    Annotations Dictionary<string, string>
    Template Annotations.
    Lang string
    Template Language.
    TemplateId string
    Template ID.
    Tokens Dictionary<string, string>
    Template Variables.
    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.
    Version string
    Fixed as 2.0.
    Annotations map[string]string
    Template Annotations.
    Lang string
    Template Language.
    TemplateId string
    Template ID.
    Tokens map[string]string
    Template Variables.
    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.
    Version string
    Fixed as 2.0.
    annotations Map<String,String>
    Template Annotations.
    lang String
    Template Language.
    templateId String
    Template ID.
    tokens Map<String,String>
    Template Variables.
    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.
    version String
    Fixed as 2.0.
    annotations {[key: string]: string}
    Template Annotations.
    lang string
    Template Language.
    templateId string
    Template ID.
    tokens {[key: string]: string}
    Template Variables.
    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.
    version string
    Fixed as 2.0.
    annotations Mapping[str, str]
    Template Annotations.
    lang str
    Template Language.
    template_id str
    Template ID.
    tokens Mapping[str, str]
    Template Variables.
    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.
    version str
    Fixed as 2.0.
    annotations Map<String>
    Template Annotations.
    lang String
    Template Language.
    templateId String
    Template ID.
    tokens Map<String>
    Template Variables.
    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.
    version String
    Fixed as 2.0.

    GetAlertsAlertSchedule

    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.

    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.81.0 published on Monday, Jun 23, 2025 by Pulumi