Alibaba Cloud v3.81.0 published on Monday, Jun 23, 2025 by Pulumi
alicloud.sls.getAlerts
Explore with Pulumi AI
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:
- Project
Name string - Project Name
- Ids List<string>
- A list of Alert IDs. The value is formulated as
<project_name>:<alert_name>
. - Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- Project
Name string - Project Name
- Ids []string
- A list of Alert IDs. The value is formulated as
<project_name>:<alert_name>
. - Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
).
- project
Name String - Project Name
- ids List<String>
- A list of Alert IDs. The value is formulated as
<project_name>:<alert_name>
. - name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
- project
Name string - Project Name
- ids string[]
- A list of Alert IDs. The value is formulated as
<project_name>:<alert_name>
. - name
Regex string - A regex string to filter results by Group Metric Rule name.
- output
File 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
).
- project
Name String - Project Name
- ids List<String>
- A list of Alert IDs. The value is formulated as
<project_name>:<alert_name>
. - name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
).
getAlerts Result
The following output properties are available:
- Alerts
List<Pulumi.
Ali Cloud. Sls. Outputs. Get Alerts Alert> - 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.
- Project
Name string - Name
Regex string - Output
File string
- Alerts
[]Get
Alerts Alert - 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.
- Project
Name string - Name
Regex string - Output
File string
- alerts
List<Get
Alerts Alert> - 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.
- project
Name String - name
Regex String - output
File String
- alerts
Get
Alerts Alert[] - 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.
- project
Name string - name
Regex string - output
File string
- alerts
Sequence[Get
Alerts Alert] - 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.
- project
Name String - name
Regex String - output
File String
Supporting Types
GetAlertsAlert
- Alert
Name string - Alert rule ID, unique under Project
- Configuration
Pulumi.
Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration - Detailed configuration of alarm monitoring rules
- Description string
- Compatible fields, set to empty strings.
- Display
Name string - Display name of the alarm rule
- Id string
- The ID of the resource supplied above.
- Schedule
Pulumi.
Ali Cloud. Sls. Inputs. Get Alerts Alert Schedule - Check the frequency-dependent configuration
- Alert
Name string - Alert rule ID, unique under Project
- Configuration
Get
Alerts Alert Configuration - Detailed configuration of alarm monitoring rules
- Description string
- Compatible fields, set to empty strings.
- Display
Name string - Display name of the alarm rule
- Id string
- The ID of the resource supplied above.
- Schedule
Get
Alerts Alert Schedule - Check the frequency-dependent configuration
- alert
Name String - Alert rule ID, unique under Project
- configuration
Get
Alerts Alert Configuration - Detailed configuration of alarm monitoring rules
- description String
- Compatible fields, set to empty strings.
- display
Name String - Display name of the alarm rule
- id String
- The ID of the resource supplied above.
- schedule
Get
Alerts Alert Schedule - Check the frequency-dependent configuration
- alert
Name string - Alert rule ID, unique under Project
- configuration
Get
Alerts Alert Configuration - Detailed configuration of alarm monitoring rules
- description string
- Compatible fields, set to empty strings.
- display
Name string - Display name of the alarm rule
- id string
- The ID of the resource supplied above.
- schedule
Get
Alerts Alert Schedule - Check the frequency-dependent configuration
- alert_
name str - Alert rule ID, unique under Project
- configuration
Get
Alerts Alert Configuration - 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
Get
Alerts Alert Schedule - Check the frequency-dependent configuration
- alert
Name String - Alert rule ID, unique under Project
- configuration Property Map
- Detailed configuration of alarm monitoring rules
- description String
- Compatible fields, set to empty strings.
- display
Name 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.
Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Annotation> - Template Annotations.
- Auto
Annotation bool - Whether to turn on automatic labeling.true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling.false: Turn off the automatic annotation function.
- Condition
Configuration Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Condition Configuration - Alarm trigger condition.
- Dashboard string
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- Group
Configuration Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Group Configuration - Group evaluation configuration.
- Join
Configurations List<Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Join Configuration> - Set operation configuration.
- Labels
List<Pulumi.
Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Label> - Label.
- Mute
Until int - Second-level timestamp representing the temporary shutdown deadline.
- No
Data boolFire - Whether no data triggers an alarm.true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated.false (default): Turn off the no data alarm function.
- No
Data intSeverity - Alarm severity when no data triggers an alarm.
- Policy
Configuration Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Policy Configuration - Alert policy configuration.
- Query
Lists List<Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Query List> - 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 List<Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Severity Configuration> - Trigger condition, set at least one trigger condition.
- Sink
Alerthub Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Sink Alerthub - Configuration of Alerts Sent to Alerthub.
- Sink
Cms Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Sink Cms - Configure alerts sent to CloudMonitor.
- Sink
Event Pulumi.Store Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Sink Event Store - Configuration of sending alarms to EventStore.
- List<string>
- Customize the category of alarm monitoring rules.
- Template
Configuration Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Template Configuration - 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
[]Get
Alerts Alert Configuration Annotation - Template Annotations.
- Auto
Annotation bool - Whether to turn on automatic labeling.true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling.false: Turn off the automatic annotation function.
- Condition
Configuration GetAlerts Alert Configuration Condition Configuration - Alarm trigger condition.
- Dashboard string
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- Group
Configuration GetAlerts Alert Configuration Group Configuration - Group evaluation configuration.
- Join
Configurations []GetAlerts Alert Configuration Join Configuration - Set operation configuration.
- Labels
[]Get
Alerts Alert Configuration Label - Label.
- Mute
Until int - Second-level timestamp representing the temporary shutdown deadline.
- No
Data boolFire - Whether no data triggers an alarm.true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated.false (default): Turn off the no data alarm function.
- No
Data intSeverity - Alarm severity when no data triggers an alarm.
- Policy
Configuration GetAlerts Alert Configuration Policy Configuration - Alert policy configuration.
- Query
Lists []GetAlerts Alert Configuration Query List - 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 []GetAlerts Alert Configuration Severity Configuration - Trigger condition, set at least one trigger condition.
- Sink
Alerthub GetAlerts Alert Configuration Sink Alerthub - Configuration of Alerts Sent to Alerthub.
- Sink
Cms GetAlerts Alert Configuration Sink Cms - Configure alerts sent to CloudMonitor.
- Sink
Event GetStore Alerts Alert Configuration Sink Event Store - Configuration of sending alarms to EventStore.
- []string
- Customize the category of alarm monitoring rules.
- Template
Configuration GetAlerts Alert Configuration Template Configuration - 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<Get
Alerts Alert Configuration Annotation> - Template Annotations.
- auto
Annotation Boolean - Whether to turn on automatic labeling.true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling.false: Turn off the automatic annotation function.
- condition
Configuration GetAlerts Alert Configuration Condition Configuration - Alarm trigger condition.
- dashboard String
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group
Configuration GetAlerts Alert Configuration Group Configuration - Group evaluation configuration.
- join
Configurations List<GetAlerts Alert Configuration Join Configuration> - Set operation configuration.
- labels
List<Get
Alerts Alert Configuration Label> - Label.
- mute
Until Integer - Second-level timestamp representing the temporary shutdown deadline.
- no
Data BooleanFire - Whether no data triggers an alarm.true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated.false (default): Turn off the no data alarm function.
- no
Data IntegerSeverity - Alarm severity when no data triggers an alarm.
- policy
Configuration GetAlerts Alert Configuration Policy Configuration - Alert policy configuration.
- query
Lists List<GetAlerts Alert Configuration Query List> - Query the statistical list.
- send
Resolved Boolean - Whether to send a recovery notification.true: A recovery alarm is triggered when the alarm is restored.false (default): Turn off the alarm recovery notification function.
- severity
Configurations List<GetAlerts Alert Configuration Severity Configuration> - Trigger condition, set at least one trigger condition.
- sink
Alerthub GetAlerts Alert Configuration Sink Alerthub - Configuration of Alerts Sent to Alerthub.
- sink
Cms GetAlerts Alert Configuration Sink Cms - Configure alerts sent to CloudMonitor.
- sink
Event GetStore Alerts Alert Configuration Sink Event Store - Configuration of sending alarms to EventStore.
- List<String>
- Customize the category of alarm monitoring rules.
- template
Configuration GetAlerts Alert Configuration Template Configuration - 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
Get
Alerts Alert Configuration Annotation[] - Template Annotations.
- auto
Annotation boolean - Whether to turn on automatic labeling.true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling.false: Turn off the automatic annotation function.
- condition
Configuration GetAlerts Alert Configuration Condition Configuration - Alarm trigger condition.
- dashboard string
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group
Configuration GetAlerts Alert Configuration Group Configuration - Group evaluation configuration.
- join
Configurations GetAlerts Alert Configuration Join Configuration[] - Set operation configuration.
- labels
Get
Alerts Alert Configuration Label[] - Label.
- mute
Until number - Second-level timestamp representing the temporary shutdown deadline.
- no
Data booleanFire - Whether no data triggers an alarm.true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated.false (default): Turn off the no data alarm function.
- no
Data numberSeverity - Alarm severity when no data triggers an alarm.
- policy
Configuration GetAlerts Alert Configuration Policy Configuration - Alert policy configuration.
- query
Lists GetAlerts Alert Configuration Query List[] - Query the statistical list.
- send
Resolved boolean - Whether to send a recovery notification.true: A recovery alarm is triggered when the alarm is restored.false (default): Turn off the alarm recovery notification function.
- severity
Configurations GetAlerts Alert Configuration Severity Configuration[] - Trigger condition, set at least one trigger condition.
- sink
Alerthub GetAlerts Alert Configuration Sink Alerthub - Configuration of Alerts Sent to Alerthub.
- sink
Cms GetAlerts Alert Configuration Sink Cms - Configure alerts sent to CloudMonitor.
- sink
Event GetStore Alerts Alert Configuration Sink Event Store - Configuration of sending alarms to EventStore.
- string[]
- Customize the category of alarm monitoring rules.
- template
Configuration GetAlerts Alert Configuration Template Configuration - 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[Get
Alerts Alert Configuration Annotation] - Template Annotations.
- auto_
annotation bool - Whether to turn on automatic labeling.true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling.false: Turn off the automatic annotation function.
- condition_
configuration GetAlerts Alert Configuration Condition Configuration - Alarm trigger condition.
- dashboard str
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group_
configuration GetAlerts Alert Configuration Group Configuration - Group evaluation configuration.
- join_
configurations Sequence[GetAlerts Alert Configuration Join Configuration] - Set operation configuration.
- labels
Sequence[Get
Alerts Alert Configuration Label] - Label.
- mute_
until int - Second-level timestamp representing the temporary shutdown deadline.
- no_
data_ boolfire - Whether no data triggers an alarm.true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated.false (default): Turn off the no data alarm function.
- no_
data_ intseverity - Alarm severity when no data triggers an alarm.
- policy_
configuration GetAlerts Alert Configuration Policy Configuration - Alert policy configuration.
- query_
lists Sequence[GetAlerts Alert Configuration Query List] - 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[GetAlerts Alert Configuration Severity Configuration] - Trigger condition, set at least one trigger condition.
- sink_
alerthub GetAlerts Alert Configuration Sink Alerthub - Configuration of Alerts Sent to Alerthub.
- sink_
cms GetAlerts Alert Configuration Sink Cms - Configure alerts sent to CloudMonitor.
- sink_
event_ Getstore Alerts Alert Configuration Sink Event Store - Configuration of sending alarms to EventStore.
- Sequence[str]
- Customize the category of alarm monitoring rules.
- template_
configuration GetAlerts Alert Configuration Template Configuration - 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.
- auto
Annotation Boolean - Whether to turn on automatic labeling.true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling.false: Turn off the automatic annotation function.
- condition
Configuration Property Map - Alarm trigger condition.
- dashboard String
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group
Configuration Property Map - Group evaluation configuration.
- join
Configurations List<Property Map> - Set operation configuration.
- labels List<Property Map>
- Label.
- mute
Until Number - Second-level timestamp representing the temporary shutdown deadline.
- no
Data BooleanFire - Whether no data triggers an alarm.true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated.false (default): Turn off the no data alarm function.
- no
Data NumberSeverity - Alarm severity when no data triggers an alarm.
- policy
Configuration Property Map - Alert policy configuration.
- query
Lists List<Property Map> - Query the statistical list.
- send
Resolved Boolean - Whether to send a recovery notification.true: A recovery alarm is triggered when the alarm is restored.false (default): Turn off the alarm recovery notification function.
- severity
Configurations List<Property Map> - Trigger condition, set at least one trigger condition.
- sink
Alerthub Property Map - Configuration of Alerts Sent to Alerthub.
- sink
Cms Property Map - Configure alerts sent to CloudMonitor.
- sink
Event Property MapStore - Configuration of sending alarms to EventStore.
- List<String>
- Customize the category of alarm monitoring rules.
- template
Configuration 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
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.
- Count
Condition 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.
- Count
Condition 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.
- count
Condition 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.
- count
Condition 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.
- count
Condition 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
GetAlertsAlertConfigurationPolicyConfiguration
- Action
Policy stringId - 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 stringId - 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 string - Repeat the waiting time. For example, 5m, 1H, etc.
- Action
Policy stringId - 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 stringId - 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 string - Repeat the waiting time. For example, 5m, 1H, etc.
- action
Policy StringId - 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 StringId - 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 String - Repeat the waiting time. For example, 5m, 1H, etc.
- action
Policy stringId - 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 stringId - 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 string - Repeat the waiting time. For example, 5m, 1H, etc.
- action_
policy_ strid - 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_ strid - 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.
- action
Policy StringId - 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 StringId - 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 String - Repeat the waiting time. For example, 5m, 1H, etc.
GetAlertsAlertConfigurationQueryList
- Chart
Title string - Chart Name.
- Dashboard
Id string - Dashboard ID.
- End string
- End time. When storeType is set to log or metric, end must be set.
- Power
Sql stringMode - 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.
- Role
Arn 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.
- Store
Type string - Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
- Time
Span stringType - Time Type.
- Ui string
- Use of specific scene alarm front end.
- Chart
Title string - Chart Name.
- Dashboard
Id string - Dashboard ID.
- End string
- End time. When storeType is set to log or metric, end must be set.
- Power
Sql stringMode - 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.
- Role
Arn 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.
- Store
Type string - Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
- Time
Span stringType - Time Type.
- Ui string
- Use of specific scene alarm front end.
- chart
Title String - Chart Name.
- dashboard
Id String - Dashboard ID.
- end String
- End time. When storeType is set to log or metric, end must be set.
- power
Sql StringMode - 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.
- role
Arn 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.
- store
Type String - Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
- time
Span StringType - Time Type.
- ui String
- Use of specific scene alarm front end.
- chart
Title string - Chart Name.
- dashboard
Id string - Dashboard ID.
- end string
- End time. When storeType is set to log or metric, end must be set.
- power
Sql stringMode - 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.
- role
Arn 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.
- store
Type string - Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
- time
Span stringType - 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_ strmode - 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_ strtype - Time Type.
- ui str
- Use of specific scene alarm front end.
- chart
Title String - Chart Name.
- dashboard
Id String - Dashboard ID.
- end String
- End time. When storeType is set to log or metric, end must be set.
- power
Sql StringMode - 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.
- role
Arn 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.
- store
Type String - Query the data source type. The value is as follows: log: Logstore. metric: Time series Library. meta: resource data.
- time
Span StringType - Time Type.
- ui String
- Use of specific scene alarm front end.
GetAlertsAlertConfigurationSeverityConfiguration
- Eval
Condition Pulumi.Ali Cloud. Sls. Inputs. Get Alerts Alert Configuration Severity Configuration Eval Condition - Trigger condition.
- Severity int
- Alarm severity.
- Eval
Condition GetAlerts Alert Configuration Severity Configuration Eval Condition - Trigger condition.
- Severity int
- Alarm severity.
- eval
Condition GetAlerts Alert Configuration Severity Configuration Eval Condition - Trigger condition.
- severity Integer
- Alarm severity.
- eval
Condition GetAlerts Alert Configuration Severity Configuration Eval Condition - Trigger condition.
- severity number
- Alarm severity.
- eval_
condition GetAlerts Alert Configuration Severity Configuration Eval Condition - Trigger condition.
- severity int
- Alarm severity.
- eval
Condition 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.
- Count
Condition 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.
- Count
Condition 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.
- count
Condition 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.
- count
Condition 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.
- count
Condition 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.
- Event
Store string - Event Library Name.
- Project string
- Project Name.
- Role
Arn string - Roles used to write alarm data to the event Library.
- Enabled bool
- Open.
- Endpoint string
- SLS service endpoint.
- Event
Store string - Event Library Name.
- Project string
- Project Name.
- Role
Arn string - Roles used to write alarm data to the event Library.
- enabled Boolean
- Open.
- endpoint String
- SLS service endpoint.
- event
Store String - Event Library Name.
- project String
- Project Name.
- role
Arn String - Roles used to write alarm data to the event Library.
- enabled boolean
- Open.
- endpoint string
- SLS service endpoint.
- event
Store string - Event Library Name.
- project string
- Project Name.
- role
Arn 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.
- event
Store String - Event Library Name.
- project String
- Project Name.
- role
Arn String - Roles used to write alarm data to the event Library.
GetAlertsAlertConfigurationTemplateConfiguration
- Annotations Dictionary<string, string>
- Template Annotations.
- Lang string
- Template Language.
- Template
Id 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.
- Template
Id 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.
- template
Id 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.
- template
Id 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.
- template
Id 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
- Cron
Expression string - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00.When type is set to Cron, cronExpression must be set.
- Delay int
- Timed task execution delay (unit: s).
- Interval string
- Fixed interval for scheduling.
- Run
Immdiately bool - Dispatch immediately.
- Time
Zone string - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- Type string
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows:Fixedate: checks query and analysis results at regular intervals.Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- Cron
Expression string - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00.When type is set to Cron, cronExpression must be set.
- Delay int
- Timed task execution delay (unit: s).
- Interval string
- Fixed interval for scheduling.
- Run
Immdiately bool - Dispatch immediately.
- Time
Zone string - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- Type string
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows:Fixedate: checks query and analysis results at regular intervals.Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron
Expression String - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00.When type is set to Cron, cronExpression must be set.
- delay Integer
- Timed task execution delay (unit: s).
- interval String
- Fixed interval for scheduling.
- run
Immdiately Boolean - Dispatch immediately.
- time
Zone String - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type String
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows:Fixedate: checks query and analysis results at regular intervals.Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron
Expression string - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00.When type is set to Cron, cronExpression must be set.
- delay number
- Timed task execution delay (unit: s).
- interval string
- Fixed interval for scheduling.
- run
Immdiately boolean - Dispatch immediately.
- time
Zone string - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type string
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows:Fixedate: checks query and analysis results at regular intervals.Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron_
expression str - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00.When type is set to Cron, cronExpression must be set.
- delay int
- Timed task execution delay (unit: s).
- interval str
- Fixed interval for scheduling.
- run_
immdiately bool - Dispatch immediately.
- time_
zone str - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type str
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows:Fixedate: checks query and analysis results at regular intervals.Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron
Expression String - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00.When type is set to Cron, cronExpression must be set.
- delay Number
- Timed task execution delay (unit: s).
- interval String
- Fixed interval for scheduling.
- run
Immdiately Boolean - Dispatch immediately.
- time
Zone String - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type String
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows:Fixedate: checks query and analysis results at regular intervals.Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.