alicloud.sls.Alert
Explore with Pulumi AI
Provides a SLS Alert resource.
For information about SLS Alert and how to use it, see What is Alert.
NOTE: Available since v1.223.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const alertName = config.get("alertName") || "openapi-terraform-alert";
const projectName = config.get("projectName") || "terraform-alert-example";
const _default = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const defaultINsMgl = new alicloud.log.Project("defaultINsMgl", {
description: `${projectName}-${_default.result}`,
projectName: `${projectName}-${_default.result}`,
});
const defaultAlert = new alicloud.sls.Alert("default", {
schedule: {
type: "FixedRate",
runImmdiately: true,
interval: "1m",
timeZone: "+0800",
delay: 10,
},
displayName: "openapi-terraform",
description: "create alert",
status: "ENABLED",
configuration: {
groupConfiguration: {
fields: [
"a",
"b",
],
type: "no_group",
},
noDataFire: false,
version: "2",
severityConfigurations: [{
severity: 6,
evalCondition: {
countCondition: "cnt > 0",
condition: "__count__ > 1",
},
}],
labels: [{
key: "a",
value: "b",
}],
autoAnnotation: true,
templateConfiguration: {
lang: "cn",
tokens: {
a: "b",
},
annotations: {
x: "y",
},
templateId: "sls.app.ack.autoscaler.cluster_unhealthy",
type: "sys",
version: "1.0",
},
muteUntil: 0,
annotations: [{
key: "x",
value: "y",
}],
sendResolved: false,
threshold: 1,
sinkCms: {
enabled: false,
},
conditionConfiguration: {
condition: "cnt > 3",
countCondition: "__count__ < 3",
},
policyConfiguration: {
alertPolicyId: "sls.builtin.dynamic",
actionPolicyId: "wkb-action",
repeatInterval: "1m",
},
dashboard: "internal-alert",
type: "tpl",
queryLists: [
{
ui: "{}",
roleArn: "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
query: "* | select *",
timeSpanType: "Relative",
project: defaultINsMgl.projectName,
powerSqlMode: "disable",
dashboardId: "wkb-dashboard",
chartTitle: "wkb-chart",
start: "-15m",
end: "now",
storeType: "log",
store: "alert",
region: "cn-shanghai",
},
{
storeType: "meta",
store: "user.rds_ip_whitelist",
},
{
storeType: "meta",
store: "myexample1",
},
],
joinConfigurations: [
{
type: "no_join",
condition: "aa",
},
{
type: "cross_join",
condition: "qqq",
},
{
type: "inner_join",
condition: "fefefe",
},
],
sinkEventStore: {
enabled: true,
endpoint: "cn-shanghai-intranet.log.aliyuncs.com",
project: "wkb-wangren",
eventStore: "alert",
roleArn: "acs:ram::1654218965343050:role/aliyunlogetlrole",
},
sinkAlerthub: {
enabled: false,
},
noDataSeverity: 6,
tags: [
"wkb",
"wangren",
"sls",
],
},
alertName: alertName,
projectName: defaultINsMgl.projectName,
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
alert_name = config.get("alertName")
if alert_name is None:
alert_name = "openapi-terraform-alert"
project_name = config.get("projectName")
if project_name is None:
project_name = "terraform-alert-example"
default = random.index.Integer("default",
min=10000,
max=99999)
default_ins_mgl = alicloud.log.Project("defaultINsMgl",
description=f"{project_name}-{default['result']}",
project_name=f"{project_name}-{default['result']}")
default_alert = alicloud.sls.Alert("default",
schedule={
"type": "FixedRate",
"run_immdiately": True,
"interval": "1m",
"time_zone": "+0800",
"delay": 10,
},
display_name="openapi-terraform",
description="create alert",
status="ENABLED",
configuration={
"group_configuration": {
"fields": [
"a",
"b",
],
"type": "no_group",
},
"no_data_fire": False,
"version": "2",
"severity_configurations": [{
"severity": 6,
"eval_condition": {
"count_condition": "cnt > 0",
"condition": "__count__ > 1",
},
}],
"labels": [{
"key": "a",
"value": "b",
}],
"auto_annotation": True,
"template_configuration": {
"lang": "cn",
"tokens": {
"a": "b",
},
"annotations": {
"x": "y",
},
"template_id": "sls.app.ack.autoscaler.cluster_unhealthy",
"type": "sys",
"version": "1.0",
},
"mute_until": 0,
"annotations": [{
"key": "x",
"value": "y",
}],
"send_resolved": False,
"threshold": 1,
"sink_cms": {
"enabled": False,
},
"condition_configuration": {
"condition": "cnt > 3",
"count_condition": "__count__ < 3",
},
"policy_configuration": {
"alert_policy_id": "sls.builtin.dynamic",
"action_policy_id": "wkb-action",
"repeat_interval": "1m",
},
"dashboard": "internal-alert",
"type": "tpl",
"query_lists": [
{
"ui": "{}",
"role_arn": "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
"query": "* | select *",
"time_span_type": "Relative",
"project": default_ins_mgl.project_name,
"power_sql_mode": "disable",
"dashboard_id": "wkb-dashboard",
"chart_title": "wkb-chart",
"start": "-15m",
"end": "now",
"store_type": "log",
"store": "alert",
"region": "cn-shanghai",
},
{
"store_type": "meta",
"store": "user.rds_ip_whitelist",
},
{
"store_type": "meta",
"store": "myexample1",
},
],
"join_configurations": [
{
"type": "no_join",
"condition": "aa",
},
{
"type": "cross_join",
"condition": "qqq",
},
{
"type": "inner_join",
"condition": "fefefe",
},
],
"sink_event_store": {
"enabled": True,
"endpoint": "cn-shanghai-intranet.log.aliyuncs.com",
"project": "wkb-wangren",
"event_store": "alert",
"role_arn": "acs:ram::1654218965343050:role/aliyunlogetlrole",
},
"sink_alerthub": {
"enabled": False,
},
"no_data_severity": 6,
"tags": [
"wkb",
"wangren",
"sls",
],
},
alert_name=alert_name,
project_name=default_ins_mgl.project_name)
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sls"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
alertName := "openapi-terraform-alert"
if param := cfg.Get("alertName"); param != "" {
alertName = param
}
projectName := "terraform-alert-example"
if param := cfg.Get("projectName"); param != "" {
projectName = param
}
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
defaultINsMgl, err := log.NewProject(ctx, "defaultINsMgl", &log.ProjectArgs{
Description: pulumi.Sprintf("%v-%v", projectName, _default.Result),
ProjectName: pulumi.Sprintf("%v-%v", projectName, _default.Result),
})
if err != nil {
return err
}
_, err = sls.NewAlert(ctx, "default", &sls.AlertArgs{
Schedule: &sls.AlertScheduleArgs{
Type: pulumi.String("FixedRate"),
RunImmdiately: pulumi.Bool(true),
Interval: pulumi.String("1m"),
TimeZone: pulumi.String("+0800"),
Delay: pulumi.Int(10),
},
DisplayName: pulumi.String("openapi-terraform"),
Description: pulumi.String("create alert"),
Status: pulumi.String("ENABLED"),
Configuration: &sls.AlertConfigurationArgs{
GroupConfiguration: &sls.AlertConfigurationGroupConfigurationArgs{
Fields: pulumi.StringArray{
pulumi.String("a"),
pulumi.String("b"),
},
Type: pulumi.String("no_group"),
},
NoDataFire: pulumi.Bool(false),
Version: pulumi.String("2"),
SeverityConfigurations: sls.AlertConfigurationSeverityConfigurationArray{
&sls.AlertConfigurationSeverityConfigurationArgs{
Severity: pulumi.Int(6),
EvalCondition: &sls.AlertConfigurationSeverityConfigurationEvalConditionArgs{
CountCondition: pulumi.String("cnt > 0"),
Condition: pulumi.String("__count__ > 1"),
},
},
},
Labels: sls.AlertConfigurationLabelArray{
&sls.AlertConfigurationLabelArgs{
Key: pulumi.String("a"),
Value: pulumi.String("b"),
},
},
AutoAnnotation: pulumi.Bool(true),
TemplateConfiguration: &sls.AlertConfigurationTemplateConfigurationArgs{
Lang: pulumi.String("cn"),
Tokens: pulumi.StringMap{
"a": pulumi.String("b"),
},
Annotations: pulumi.StringMap{
"x": pulumi.String("y"),
},
TemplateId: pulumi.String("sls.app.ack.autoscaler.cluster_unhealthy"),
Type: pulumi.String("sys"),
Version: pulumi.String("1.0"),
},
MuteUntil: pulumi.Int(0),
Annotations: sls.AlertConfigurationAnnotationArray{
&sls.AlertConfigurationAnnotationArgs{
Key: pulumi.String("x"),
Value: pulumi.String("y"),
},
},
SendResolved: pulumi.Bool(false),
Threshold: pulumi.Int(1),
SinkCms: &sls.AlertConfigurationSinkCmsArgs{
Enabled: pulumi.Bool(false),
},
ConditionConfiguration: &sls.AlertConfigurationConditionConfigurationArgs{
Condition: pulumi.String("cnt > 3"),
CountCondition: pulumi.String("__count__ < 3"),
},
PolicyConfiguration: &sls.AlertConfigurationPolicyConfigurationArgs{
AlertPolicyId: pulumi.String("sls.builtin.dynamic"),
ActionPolicyId: pulumi.String("wkb-action"),
RepeatInterval: pulumi.String("1m"),
},
Dashboard: pulumi.String("internal-alert"),
Type: pulumi.String("tpl"),
QueryLists: sls.AlertConfigurationQueryListArray{
&sls.AlertConfigurationQueryListArgs{
Ui: pulumi.String("{}"),
RoleArn: pulumi.String("acs:ram::1654218965343050:role/aliyunslsalertmonitorrole"),
Query: pulumi.String("* | select *"),
TimeSpanType: pulumi.String("Relative"),
Project: defaultINsMgl.ProjectName,
PowerSqlMode: pulumi.String("disable"),
DashboardId: pulumi.String("wkb-dashboard"),
ChartTitle: pulumi.String("wkb-chart"),
Start: pulumi.String("-15m"),
End: pulumi.String("now"),
StoreType: pulumi.String("log"),
Store: pulumi.String("alert"),
Region: pulumi.String("cn-shanghai"),
},
&sls.AlertConfigurationQueryListArgs{
StoreType: pulumi.String("meta"),
Store: pulumi.String("user.rds_ip_whitelist"),
},
&sls.AlertConfigurationQueryListArgs{
StoreType: pulumi.String("meta"),
Store: pulumi.String("myexample1"),
},
},
JoinConfigurations: sls.AlertConfigurationJoinConfigurationArray{
&sls.AlertConfigurationJoinConfigurationArgs{
Type: pulumi.String("no_join"),
Condition: pulumi.String("aa"),
},
&sls.AlertConfigurationJoinConfigurationArgs{
Type: pulumi.String("cross_join"),
Condition: pulumi.String("qqq"),
},
&sls.AlertConfigurationJoinConfigurationArgs{
Type: pulumi.String("inner_join"),
Condition: pulumi.String("fefefe"),
},
},
SinkEventStore: &sls.AlertConfigurationSinkEventStoreArgs{
Enabled: pulumi.Bool(true),
Endpoint: pulumi.String("cn-shanghai-intranet.log.aliyuncs.com"),
Project: pulumi.String("wkb-wangren"),
EventStore: pulumi.String("alert"),
RoleArn: pulumi.String("acs:ram::1654218965343050:role/aliyunlogetlrole"),
},
SinkAlerthub: &sls.AlertConfigurationSinkAlerthubArgs{
Enabled: pulumi.Bool(false),
},
NoDataSeverity: pulumi.Int(6),
Tags: pulumi.StringArray{
pulumi.String("wkb"),
pulumi.String("wangren"),
pulumi.String("sls"),
},
},
AlertName: pulumi.String(alertName),
ProjectName: defaultINsMgl.ProjectName,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var alertName = config.Get("alertName") ?? "openapi-terraform-alert";
var projectName = config.Get("projectName") ?? "terraform-alert-example";
var @default = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var defaultINsMgl = new AliCloud.Log.Project("defaultINsMgl", new()
{
Description = $"{projectName}-{@default.Result}",
ProjectName = $"{projectName}-{@default.Result}",
});
var defaultAlert = new AliCloud.Sls.Alert("default", new()
{
Schedule = new AliCloud.Sls.Inputs.AlertScheduleArgs
{
Type = "FixedRate",
RunImmdiately = true,
Interval = "1m",
TimeZone = "+0800",
Delay = 10,
},
DisplayName = "openapi-terraform",
Description = "create alert",
Status = "ENABLED",
Configuration = new AliCloud.Sls.Inputs.AlertConfigurationArgs
{
GroupConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationGroupConfigurationArgs
{
Fields = new[]
{
"a",
"b",
},
Type = "no_group",
},
NoDataFire = false,
Version = "2",
SeverityConfigurations = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationArgs
{
Severity = 6,
EvalCondition = new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationEvalConditionArgs
{
CountCondition = "cnt > 0",
Condition = "__count__ > 1",
},
},
},
Labels = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationLabelArgs
{
Key = "a",
Value = "b",
},
},
AutoAnnotation = true,
TemplateConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationTemplateConfigurationArgs
{
Lang = "cn",
Tokens =
{
{ "a", "b" },
},
Annotations =
{
{ "x", "y" },
},
TemplateId = "sls.app.ack.autoscaler.cluster_unhealthy",
Type = "sys",
Version = "1.0",
},
MuteUntil = 0,
Annotations = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationAnnotationArgs
{
Key = "x",
Value = "y",
},
},
SendResolved = false,
Threshold = 1,
SinkCms = new AliCloud.Sls.Inputs.AlertConfigurationSinkCmsArgs
{
Enabled = false,
},
ConditionConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationConditionConfigurationArgs
{
Condition = "cnt > 3",
CountCondition = "__count__ < 3",
},
PolicyConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationPolicyConfigurationArgs
{
AlertPolicyId = "sls.builtin.dynamic",
ActionPolicyId = "wkb-action",
RepeatInterval = "1m",
},
Dashboard = "internal-alert",
Type = "tpl",
QueryLists = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
{
Ui = "{}",
RoleArn = "acs:ram::1654218965343050:role/aliyunslsalertmonitorrole",
Query = "* | select *",
TimeSpanType = "Relative",
Project = defaultINsMgl.ProjectName,
PowerSqlMode = "disable",
DashboardId = "wkb-dashboard",
ChartTitle = "wkb-chart",
Start = "-15m",
End = "now",
StoreType = "log",
Store = "alert",
Region = "cn-shanghai",
},
new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
{
StoreType = "meta",
Store = "user.rds_ip_whitelist",
},
new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
{
StoreType = "meta",
Store = "myexample1",
},
},
JoinConfigurations = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
{
Type = "no_join",
Condition = "aa",
},
new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
{
Type = "cross_join",
Condition = "qqq",
},
new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
{
Type = "inner_join",
Condition = "fefefe",
},
},
SinkEventStore = new AliCloud.Sls.Inputs.AlertConfigurationSinkEventStoreArgs
{
Enabled = true,
Endpoint = "cn-shanghai-intranet.log.aliyuncs.com",
Project = "wkb-wangren",
EventStore = "alert",
RoleArn = "acs:ram::1654218965343050:role/aliyunlogetlrole",
},
SinkAlerthub = new AliCloud.Sls.Inputs.AlertConfigurationSinkAlerthubArgs
{
Enabled = false,
},
NoDataSeverity = 6,
Tags = new[]
{
"wkb",
"wangren",
"sls",
},
},
AlertName = alertName,
ProjectName = defaultINsMgl.ProjectName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.log.Project;
import com.pulumi.alicloud.log.ProjectArgs;
import com.pulumi.alicloud.sls.Alert;
import com.pulumi.alicloud.sls.AlertArgs;
import com.pulumi.alicloud.sls.inputs.AlertScheduleArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationGroupConfigurationArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationTemplateConfigurationArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkCmsArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationConditionConfigurationArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationPolicyConfigurationArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkEventStoreArgs;
import com.pulumi.alicloud.sls.inputs.AlertConfigurationSinkAlerthubArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
final var alertName = config.get("alertName").orElse("openapi-terraform-alert");
final var projectName = config.get("projectName").orElse("terraform-alert-example");
var default_ = new Integer("default", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
var defaultINsMgl = new Project("defaultINsMgl", ProjectArgs.builder()
.description(String.format("%s-%s", projectName,default_.result()))
.projectName(String.format("%s-%s", projectName,default_.result()))
.build());
var defaultAlert = new Alert("defaultAlert", AlertArgs.builder()
.schedule(AlertScheduleArgs.builder()
.type("FixedRate")
.runImmdiately("true")
.interval("1m")
.timeZone("+0800")
.delay("10")
.build())
.displayName("openapi-terraform")
.description("create alert")
.status("ENABLED")
.configuration(AlertConfigurationArgs.builder()
.groupConfiguration(AlertConfigurationGroupConfigurationArgs.builder()
.fields(
"a",
"b")
.type("no_group")
.build())
.noDataFire("false")
.version("2")
.severityConfigurations(AlertConfigurationSeverityConfigurationArgs.builder()
.severity("6")
.evalCondition(AlertConfigurationSeverityConfigurationEvalConditionArgs.builder()
.countCondition("cnt > 0")
.condition("__count__ > 1")
.build())
.build())
.labels(AlertConfigurationLabelArgs.builder()
.key("a")
.value("b")
.build())
.autoAnnotation("true")
.templateConfiguration(AlertConfigurationTemplateConfigurationArgs.builder()
.lang("cn")
.tokens(Map.of("a", "b"))
.annotations(Map.of("x", "y"))
.templateId("sls.app.ack.autoscaler.cluster_unhealthy")
.type("sys")
.version("1.0")
.build())
.muteUntil("0")
.annotations(AlertConfigurationAnnotationArgs.builder()
.key("x")
.value("y")
.build())
.sendResolved("false")
.threshold("1")
.sinkCms(AlertConfigurationSinkCmsArgs.builder()
.enabled("false")
.build())
.conditionConfiguration(AlertConfigurationConditionConfigurationArgs.builder()
.condition("cnt > 3")
.countCondition("__count__ < 3")
.build())
.policyConfiguration(AlertConfigurationPolicyConfigurationArgs.builder()
.alertPolicyId("sls.builtin.dynamic")
.actionPolicyId("wkb-action")
.repeatInterval("1m")
.build())
.dashboard("internal-alert")
.type("tpl")
.queryLists(
AlertConfigurationQueryListArgs.builder()
.ui("{}")
.roleArn("acs:ram::1654218965343050:role/aliyunslsalertmonitorrole")
.query("* | select *")
.timeSpanType("Relative")
.project(defaultINsMgl.projectName())
.powerSqlMode("disable")
.dashboardId("wkb-dashboard")
.chartTitle("wkb-chart")
.start("-15m")
.end("now")
.storeType("log")
.store("alert")
.region("cn-shanghai")
.build(),
AlertConfigurationQueryListArgs.builder()
.storeType("meta")
.store("user.rds_ip_whitelist")
.build(),
AlertConfigurationQueryListArgs.builder()
.storeType("meta")
.store("myexample1")
.build())
.joinConfigurations(
AlertConfigurationJoinConfigurationArgs.builder()
.type("no_join")
.condition("aa")
.build(),
AlertConfigurationJoinConfigurationArgs.builder()
.type("cross_join")
.condition("qqq")
.build(),
AlertConfigurationJoinConfigurationArgs.builder()
.type("inner_join")
.condition("fefefe")
.build())
.sinkEventStore(AlertConfigurationSinkEventStoreArgs.builder()
.enabled("true")
.endpoint("cn-shanghai-intranet.log.aliyuncs.com")
.project("wkb-wangren")
.eventStore("alert")
.roleArn("acs:ram::1654218965343050:role/aliyunlogetlrole")
.build())
.sinkAlerthub(AlertConfigurationSinkAlerthubArgs.builder()
.enabled("false")
.build())
.noDataSeverity("6")
.tags(
"wkb",
"wangren",
"sls")
.build())
.alertName(alertName)
.projectName(defaultINsMgl.projectName())
.build());
}
}
configuration:
name:
type: string
default: terraform-example
alertName:
type: string
default: openapi-terraform-alert
projectName:
type: string
default: terraform-alert-example
resources:
default:
type: random:integer
properties:
min: 10000
max: 99999
defaultINsMgl:
type: alicloud:log:Project
properties:
description: ${projectName}-${default.result}
projectName: ${projectName}-${default.result}
defaultAlert:
type: alicloud:sls:Alert
name: default
properties:
schedule:
type: FixedRate
runImmdiately: 'true'
interval: 1m
timeZone: '+0800'
delay: '10'
displayName: openapi-terraform
description: create alert
status: ENABLED
configuration:
groupConfiguration:
fields:
- a
- b
type: no_group
noDataFire: 'false'
version: '2'
severityConfigurations:
- severity: '6'
evalCondition:
countCondition: cnt > 0
condition: __count__ > 1
labels:
- key: a
value: b
autoAnnotation: 'true'
templateConfiguration:
lang: cn
tokens:
a: b
annotations:
x: y
templateId: sls.app.ack.autoscaler.cluster_unhealthy
type: sys
version: '1.0'
muteUntil: '0'
annotations:
- key: x
value: y
sendResolved: 'false'
threshold: '1'
sinkCms:
enabled: 'false'
conditionConfiguration:
condition: cnt > 3
countCondition: __count__ < 3
policyConfiguration:
alertPolicyId: sls.builtin.dynamic
actionPolicyId: wkb-action
repeatInterval: 1m
dashboard: internal-alert
type: tpl
queryLists:
- ui: '{}'
roleArn: acs:ram::1654218965343050:role/aliyunslsalertmonitorrole
query: '* | select *'
timeSpanType: Relative
project: ${defaultINsMgl.projectName}
powerSqlMode: disable
dashboardId: wkb-dashboard
chartTitle: wkb-chart
start: -15m
end: now
storeType: log
store: alert
region: cn-shanghai
- storeType: meta
store: user.rds_ip_whitelist
- storeType: meta
store: myexample1
joinConfigurations:
- type: no_join
condition: aa
- type: cross_join
condition: qqq
- type: inner_join
condition: fefefe
sinkEventStore:
enabled: 'true'
endpoint: cn-shanghai-intranet.log.aliyuncs.com
project: wkb-wangren
eventStore: alert
roleArn: acs:ram::1654218965343050:role/aliyunlogetlrole
sinkAlerthub:
enabled: 'false'
noDataSeverity: '6'
tags:
- wkb
- wangren
- sls
alertName: ${alertName}
projectName: ${defaultINsMgl.projectName}
Create Alert Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alert(name: string, args: AlertArgs, opts?: CustomResourceOptions);
@overload
def Alert(resource_name: str,
args: AlertArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alert(resource_name: str,
opts: Optional[ResourceOptions] = None,
alert_name: Optional[str] = None,
configuration: Optional[AlertConfigurationArgs] = None,
display_name: Optional[str] = None,
project_name: Optional[str] = None,
schedule: Optional[AlertScheduleArgs] = None,
description: Optional[str] = None,
status: Optional[str] = None)
func NewAlert(ctx *Context, name string, args AlertArgs, opts ...ResourceOption) (*Alert, error)
public Alert(string name, AlertArgs args, CustomResourceOptions? opts = null)
type: alicloud:sls:Alert
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlertArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudAlertResource = new AliCloud.Sls.Alert("alicloudAlertResource", new()
{
AlertName = "string",
Configuration = new AliCloud.Sls.Inputs.AlertConfigurationArgs
{
Annotations = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationAnnotationArgs
{
Key = "string",
Value = "string",
},
},
AutoAnnotation = false,
ConditionConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationConditionConfigurationArgs
{
Condition = "string",
CountCondition = "string",
},
Dashboard = "string",
GroupConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationGroupConfigurationArgs
{
Fields = new[]
{
"string",
},
Type = "string",
},
JoinConfigurations = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationJoinConfigurationArgs
{
Condition = "string",
Type = "string",
},
},
Labels = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationLabelArgs
{
Key = "string",
Value = "string",
},
},
MuteUntil = 0,
NoDataFire = false,
NoDataSeverity = 0,
PolicyConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationPolicyConfigurationArgs
{
ActionPolicyId = "string",
AlertPolicyId = "string",
RepeatInterval = "string",
},
QueryLists = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationQueryListArgs
{
ChartTitle = "string",
DashboardId = "string",
End = "string",
PowerSqlMode = "string",
Project = "string",
Query = "string",
Region = "string",
RoleArn = "string",
Start = "string",
Store = "string",
StoreType = "string",
TimeSpanType = "string",
Ui = "string",
},
},
SendResolved = false,
SeverityConfigurations = new[]
{
new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationArgs
{
EvalCondition = new AliCloud.Sls.Inputs.AlertConfigurationSeverityConfigurationEvalConditionArgs
{
Condition = "string",
CountCondition = "string",
},
Severity = 0,
},
},
SinkAlerthub = new AliCloud.Sls.Inputs.AlertConfigurationSinkAlerthubArgs
{
Enabled = false,
},
SinkCms = new AliCloud.Sls.Inputs.AlertConfigurationSinkCmsArgs
{
Enabled = false,
},
SinkEventStore = new AliCloud.Sls.Inputs.AlertConfigurationSinkEventStoreArgs
{
Enabled = false,
Endpoint = "string",
EventStore = "string",
Project = "string",
RoleArn = "string",
},
Tags = new[]
{
"string",
},
TemplateConfiguration = new AliCloud.Sls.Inputs.AlertConfigurationTemplateConfigurationArgs
{
Annotations =
{
{ "string", "string" },
},
Lang = "string",
TemplateId = "string",
Tokens =
{
{ "string", "string" },
},
Type = "string",
Version = "string",
},
Threshold = 0,
Type = "string",
Version = "string",
},
DisplayName = "string",
ProjectName = "string",
Schedule = new AliCloud.Sls.Inputs.AlertScheduleArgs
{
CronExpression = "string",
Delay = 0,
Interval = "string",
RunImmdiately = false,
TimeZone = "string",
Type = "string",
},
Description = "string",
Status = "string",
});
example, err := sls.NewAlert(ctx, "alicloudAlertResource", &sls.AlertArgs{
AlertName: pulumi.String("string"),
Configuration: &sls.AlertConfigurationArgs{
Annotations: sls.AlertConfigurationAnnotationArray{
&sls.AlertConfigurationAnnotationArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
AutoAnnotation: pulumi.Bool(false),
ConditionConfiguration: &sls.AlertConfigurationConditionConfigurationArgs{
Condition: pulumi.String("string"),
CountCondition: pulumi.String("string"),
},
Dashboard: pulumi.String("string"),
GroupConfiguration: &sls.AlertConfigurationGroupConfigurationArgs{
Fields: pulumi.StringArray{
pulumi.String("string"),
},
Type: pulumi.String("string"),
},
JoinConfigurations: sls.AlertConfigurationJoinConfigurationArray{
&sls.AlertConfigurationJoinConfigurationArgs{
Condition: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Labels: sls.AlertConfigurationLabelArray{
&sls.AlertConfigurationLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MuteUntil: pulumi.Int(0),
NoDataFire: pulumi.Bool(false),
NoDataSeverity: pulumi.Int(0),
PolicyConfiguration: &sls.AlertConfigurationPolicyConfigurationArgs{
ActionPolicyId: pulumi.String("string"),
AlertPolicyId: pulumi.String("string"),
RepeatInterval: pulumi.String("string"),
},
QueryLists: sls.AlertConfigurationQueryListArray{
&sls.AlertConfigurationQueryListArgs{
ChartTitle: pulumi.String("string"),
DashboardId: pulumi.String("string"),
End: pulumi.String("string"),
PowerSqlMode: pulumi.String("string"),
Project: pulumi.String("string"),
Query: pulumi.String("string"),
Region: pulumi.String("string"),
RoleArn: pulumi.String("string"),
Start: pulumi.String("string"),
Store: pulumi.String("string"),
StoreType: pulumi.String("string"),
TimeSpanType: pulumi.String("string"),
Ui: pulumi.String("string"),
},
},
SendResolved: pulumi.Bool(false),
SeverityConfigurations: sls.AlertConfigurationSeverityConfigurationArray{
&sls.AlertConfigurationSeverityConfigurationArgs{
EvalCondition: &sls.AlertConfigurationSeverityConfigurationEvalConditionArgs{
Condition: pulumi.String("string"),
CountCondition: pulumi.String("string"),
},
Severity: pulumi.Int(0),
},
},
SinkAlerthub: &sls.AlertConfigurationSinkAlerthubArgs{
Enabled: pulumi.Bool(false),
},
SinkCms: &sls.AlertConfigurationSinkCmsArgs{
Enabled: pulumi.Bool(false),
},
SinkEventStore: &sls.AlertConfigurationSinkEventStoreArgs{
Enabled: pulumi.Bool(false),
Endpoint: pulumi.String("string"),
EventStore: pulumi.String("string"),
Project: pulumi.String("string"),
RoleArn: pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TemplateConfiguration: &sls.AlertConfigurationTemplateConfigurationArgs{
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Lang: pulumi.String("string"),
TemplateId: pulumi.String("string"),
Tokens: pulumi.StringMap{
"string": pulumi.String("string"),
},
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
Threshold: pulumi.Int(0),
Type: pulumi.String("string"),
Version: pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
ProjectName: pulumi.String("string"),
Schedule: &sls.AlertScheduleArgs{
CronExpression: pulumi.String("string"),
Delay: pulumi.Int(0),
Interval: pulumi.String("string"),
RunImmdiately: pulumi.Bool(false),
TimeZone: pulumi.String("string"),
Type: pulumi.String("string"),
},
Description: pulumi.String("string"),
Status: pulumi.String("string"),
})
var alicloudAlertResource = new Alert("alicloudAlertResource", AlertArgs.builder()
.alertName("string")
.configuration(AlertConfigurationArgs.builder()
.annotations(AlertConfigurationAnnotationArgs.builder()
.key("string")
.value("string")
.build())
.autoAnnotation(false)
.conditionConfiguration(AlertConfigurationConditionConfigurationArgs.builder()
.condition("string")
.countCondition("string")
.build())
.dashboard("string")
.groupConfiguration(AlertConfigurationGroupConfigurationArgs.builder()
.fields("string")
.type("string")
.build())
.joinConfigurations(AlertConfigurationJoinConfigurationArgs.builder()
.condition("string")
.type("string")
.build())
.labels(AlertConfigurationLabelArgs.builder()
.key("string")
.value("string")
.build())
.muteUntil(0)
.noDataFire(false)
.noDataSeverity(0)
.policyConfiguration(AlertConfigurationPolicyConfigurationArgs.builder()
.actionPolicyId("string")
.alertPolicyId("string")
.repeatInterval("string")
.build())
.queryLists(AlertConfigurationQueryListArgs.builder()
.chartTitle("string")
.dashboardId("string")
.end("string")
.powerSqlMode("string")
.project("string")
.query("string")
.region("string")
.roleArn("string")
.start("string")
.store("string")
.storeType("string")
.timeSpanType("string")
.ui("string")
.build())
.sendResolved(false)
.severityConfigurations(AlertConfigurationSeverityConfigurationArgs.builder()
.evalCondition(AlertConfigurationSeverityConfigurationEvalConditionArgs.builder()
.condition("string")
.countCondition("string")
.build())
.severity(0)
.build())
.sinkAlerthub(AlertConfigurationSinkAlerthubArgs.builder()
.enabled(false)
.build())
.sinkCms(AlertConfigurationSinkCmsArgs.builder()
.enabled(false)
.build())
.sinkEventStore(AlertConfigurationSinkEventStoreArgs.builder()
.enabled(false)
.endpoint("string")
.eventStore("string")
.project("string")
.roleArn("string")
.build())
.tags("string")
.templateConfiguration(AlertConfigurationTemplateConfigurationArgs.builder()
.annotations(Map.of("string", "string"))
.lang("string")
.templateId("string")
.tokens(Map.of("string", "string"))
.type("string")
.version("string")
.build())
.threshold(0)
.type("string")
.version("string")
.build())
.displayName("string")
.projectName("string")
.schedule(AlertScheduleArgs.builder()
.cronExpression("string")
.delay(0)
.interval("string")
.runImmdiately(false)
.timeZone("string")
.type("string")
.build())
.description("string")
.status("string")
.build());
alicloud_alert_resource = alicloud.sls.Alert("alicloudAlertResource",
alert_name="string",
configuration={
"annotations": [{
"key": "string",
"value": "string",
}],
"auto_annotation": False,
"condition_configuration": {
"condition": "string",
"count_condition": "string",
},
"dashboard": "string",
"group_configuration": {
"fields": ["string"],
"type": "string",
},
"join_configurations": [{
"condition": "string",
"type": "string",
}],
"labels": [{
"key": "string",
"value": "string",
}],
"mute_until": 0,
"no_data_fire": False,
"no_data_severity": 0,
"policy_configuration": {
"action_policy_id": "string",
"alert_policy_id": "string",
"repeat_interval": "string",
},
"query_lists": [{
"chart_title": "string",
"dashboard_id": "string",
"end": "string",
"power_sql_mode": "string",
"project": "string",
"query": "string",
"region": "string",
"role_arn": "string",
"start": "string",
"store": "string",
"store_type": "string",
"time_span_type": "string",
"ui": "string",
}],
"send_resolved": False,
"severity_configurations": [{
"eval_condition": {
"condition": "string",
"count_condition": "string",
},
"severity": 0,
}],
"sink_alerthub": {
"enabled": False,
},
"sink_cms": {
"enabled": False,
},
"sink_event_store": {
"enabled": False,
"endpoint": "string",
"event_store": "string",
"project": "string",
"role_arn": "string",
},
"tags": ["string"],
"template_configuration": {
"annotations": {
"string": "string",
},
"lang": "string",
"template_id": "string",
"tokens": {
"string": "string",
},
"type": "string",
"version": "string",
},
"threshold": 0,
"type": "string",
"version": "string",
},
display_name="string",
project_name="string",
schedule={
"cron_expression": "string",
"delay": 0,
"interval": "string",
"run_immdiately": False,
"time_zone": "string",
"type": "string",
},
description="string",
status="string")
const alicloudAlertResource = new alicloud.sls.Alert("alicloudAlertResource", {
alertName: "string",
configuration: {
annotations: [{
key: "string",
value: "string",
}],
autoAnnotation: false,
conditionConfiguration: {
condition: "string",
countCondition: "string",
},
dashboard: "string",
groupConfiguration: {
fields: ["string"],
type: "string",
},
joinConfigurations: [{
condition: "string",
type: "string",
}],
labels: [{
key: "string",
value: "string",
}],
muteUntil: 0,
noDataFire: false,
noDataSeverity: 0,
policyConfiguration: {
actionPolicyId: "string",
alertPolicyId: "string",
repeatInterval: "string",
},
queryLists: [{
chartTitle: "string",
dashboardId: "string",
end: "string",
powerSqlMode: "string",
project: "string",
query: "string",
region: "string",
roleArn: "string",
start: "string",
store: "string",
storeType: "string",
timeSpanType: "string",
ui: "string",
}],
sendResolved: false,
severityConfigurations: [{
evalCondition: {
condition: "string",
countCondition: "string",
},
severity: 0,
}],
sinkAlerthub: {
enabled: false,
},
sinkCms: {
enabled: false,
},
sinkEventStore: {
enabled: false,
endpoint: "string",
eventStore: "string",
project: "string",
roleArn: "string",
},
tags: ["string"],
templateConfiguration: {
annotations: {
string: "string",
},
lang: "string",
templateId: "string",
tokens: {
string: "string",
},
type: "string",
version: "string",
},
threshold: 0,
type: "string",
version: "string",
},
displayName: "string",
projectName: "string",
schedule: {
cronExpression: "string",
delay: 0,
interval: "string",
runImmdiately: false,
timeZone: "string",
type: "string",
},
description: "string",
status: "string",
});
type: alicloud:sls:Alert
properties:
alertName: string
configuration:
annotations:
- key: string
value: string
autoAnnotation: false
conditionConfiguration:
condition: string
countCondition: string
dashboard: string
groupConfiguration:
fields:
- string
type: string
joinConfigurations:
- condition: string
type: string
labels:
- key: string
value: string
muteUntil: 0
noDataFire: false
noDataSeverity: 0
policyConfiguration:
actionPolicyId: string
alertPolicyId: string
repeatInterval: string
queryLists:
- chartTitle: string
dashboardId: string
end: string
powerSqlMode: string
project: string
query: string
region: string
roleArn: string
start: string
store: string
storeType: string
timeSpanType: string
ui: string
sendResolved: false
severityConfigurations:
- evalCondition:
condition: string
countCondition: string
severity: 0
sinkAlerthub:
enabled: false
sinkCms:
enabled: false
sinkEventStore:
enabled: false
endpoint: string
eventStore: string
project: string
roleArn: string
tags:
- string
templateConfiguration:
annotations:
string: string
lang: string
templateId: string
tokens:
string: string
type: string
version: string
threshold: 0
type: string
version: string
description: string
displayName: string
projectName: string
schedule:
cronExpression: string
delay: 0
interval: string
runImmdiately: false
timeZone: string
type: string
status: string
Alert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Alert resource accepts the following input properties:
- Alert
Name string - Alert rule ID, unique under Project.
- Configuration
Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration - Detailed configuration of alarm monitoring rules. See
configuration
below. - Display
Name string - Display name of the alarm rule.
- Project
Name string - Project Name.
- Schedule
Pulumi.
Ali Cloud. Sls. Inputs. Alert Schedule - Check the frequency-dependent configuration. See
schedule
below. - Description string
- Compatible fields, set to empty strings.
- Status string
- Resource attribute field representing alarm status.
- Alert
Name string - Alert rule ID, unique under Project.
- Configuration
Alert
Configuration Args - Detailed configuration of alarm monitoring rules. See
configuration
below. - Display
Name string - Display name of the alarm rule.
- Project
Name string - Project Name.
- Schedule
Alert
Schedule Args - Check the frequency-dependent configuration. See
schedule
below. - Description string
- Compatible fields, set to empty strings.
- Status string
- Resource attribute field representing alarm status.
- alert
Name String - Alert rule ID, unique under Project.
- configuration
Alert
Configuration - Detailed configuration of alarm monitoring rules. See
configuration
below. - display
Name String - Display name of the alarm rule.
- project
Name String - Project Name.
- schedule
Alert
Schedule - Check the frequency-dependent configuration. See
schedule
below. - description String
- Compatible fields, set to empty strings.
- status String
- Resource attribute field representing alarm status.
- alert
Name string - Alert rule ID, unique under Project.
- configuration
Alert
Configuration - Detailed configuration of alarm monitoring rules. See
configuration
below. - display
Name string - Display name of the alarm rule.
- project
Name string - Project Name.
- schedule
Alert
Schedule - Check the frequency-dependent configuration. See
schedule
below. - description string
- Compatible fields, set to empty strings.
- status string
- Resource attribute field representing alarm status.
- alert_
name str - Alert rule ID, unique under Project.
- configuration
Alert
Configuration Args - Detailed configuration of alarm monitoring rules. See
configuration
below. - display_
name str - Display name of the alarm rule.
- project_
name str - Project Name.
- schedule
Alert
Schedule Args - Check the frequency-dependent configuration. See
schedule
below. - description str
- Compatible fields, set to empty strings.
- status str
- Resource attribute field representing alarm status.
- alert
Name String - Alert rule ID, unique under Project.
- configuration Property Map
- Detailed configuration of alarm monitoring rules. See
configuration
below. - display
Name String - Display name of the alarm rule.
- project
Name String - Project Name.
- schedule Property Map
- Check the frequency-dependent configuration. See
schedule
below. - description String
- Compatible fields, set to empty strings.
- status String
- Resource attribute field representing alarm status.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:
- Create
Time int - Alarm rule creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time int - Alarm rule creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time Integer - Alarm rule creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time number - Alarm rule creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time int - Alarm rule creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time Number - Alarm rule creation time.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Alert Resource
Get an existing Alert resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: AlertState, opts?: CustomResourceOptions): Alert
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alert_name: Optional[str] = None,
configuration: Optional[AlertConfigurationArgs] = None,
create_time: Optional[int] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
project_name: Optional[str] = None,
schedule: Optional[AlertScheduleArgs] = None,
status: Optional[str] = None) -> Alert
func GetAlert(ctx *Context, name string, id IDInput, state *AlertState, opts ...ResourceOption) (*Alert, error)
public static Alert Get(string name, Input<string> id, AlertState? state, CustomResourceOptions? opts = null)
public static Alert get(String name, Output<String> id, AlertState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Alert
Name string - Alert rule ID, unique under Project.
- Configuration
Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration - Detailed configuration of alarm monitoring rules. See
configuration
below. - Create
Time int - Alarm rule creation time.
- Description string
- Compatible fields, set to empty strings.
- Display
Name string - Display name of the alarm rule.
- Project
Name string - Project Name.
- Schedule
Pulumi.
Ali Cloud. Sls. Inputs. Alert Schedule - Check the frequency-dependent configuration. See
schedule
below. - Status string
- Resource attribute field representing alarm status.
- Alert
Name string - Alert rule ID, unique under Project.
- Configuration
Alert
Configuration Args - Detailed configuration of alarm monitoring rules. See
configuration
below. - Create
Time int - Alarm rule creation time.
- Description string
- Compatible fields, set to empty strings.
- Display
Name string - Display name of the alarm rule.
- Project
Name string - Project Name.
- Schedule
Alert
Schedule Args - Check the frequency-dependent configuration. See
schedule
below. - Status string
- Resource attribute field representing alarm status.
- alert
Name String - Alert rule ID, unique under Project.
- configuration
Alert
Configuration - Detailed configuration of alarm monitoring rules. See
configuration
below. - create
Time Integer - Alarm rule creation time.
- description String
- Compatible fields, set to empty strings.
- display
Name String - Display name of the alarm rule.
- project
Name String - Project Name.
- schedule
Alert
Schedule - Check the frequency-dependent configuration. See
schedule
below. - status String
- Resource attribute field representing alarm status.
- alert
Name string - Alert rule ID, unique under Project.
- configuration
Alert
Configuration - Detailed configuration of alarm monitoring rules. See
configuration
below. - create
Time number - Alarm rule creation time.
- description string
- Compatible fields, set to empty strings.
- display
Name string - Display name of the alarm rule.
- project
Name string - Project Name.
- schedule
Alert
Schedule - Check the frequency-dependent configuration. See
schedule
below. - status string
- Resource attribute field representing alarm status.
- alert_
name str - Alert rule ID, unique under Project.
- configuration
Alert
Configuration Args - Detailed configuration of alarm monitoring rules. See
configuration
below. - create_
time int - Alarm rule creation time.
- description str
- Compatible fields, set to empty strings.
- display_
name str - Display name of the alarm rule.
- project_
name str - Project Name.
- schedule
Alert
Schedule Args - Check the frequency-dependent configuration. See
schedule
below. - status str
- Resource attribute field representing alarm status.
- alert
Name String - Alert rule ID, unique under Project.
- configuration Property Map
- Detailed configuration of alarm monitoring rules. See
configuration
below. - create
Time Number - Alarm rule creation time.
- description String
- Compatible fields, set to empty strings.
- display
Name String - Display name of the alarm rule.
- project
Name String - Project Name.
- schedule Property Map
- Check the frequency-dependent configuration. See
schedule
below. - status String
- Resource attribute field representing alarm status.
Supporting Types
AlertConfiguration, AlertConfigurationArgs
- Annotations
List<Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration Annotation> - Template Annotations.
- Auto
Annotation bool - Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
- Condition
Configuration Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Condition Configuration - Alarm trigger condition. See
condition_configuration
below. - Dashboard string
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- Group
Configuration Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Group Configuration - Group evaluation configuration. See
group_configuration
below. - Join
Configurations List<Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Join Configuration> - Set operation configuration. See
join_configurations
below. - Labels
List<Pulumi.
Ali Cloud. Sls. Inputs. Alert Configuration Label> - Label. See
labels
below. - Mute
Until int - Second-level timestamp representing the temporary shutdown deadline.
- No
Data boolFire - Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
- No
Data intSeverity - Alarm severity when no data triggers an alarm.
- Policy
Configuration Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Policy Configuration - Alert policy configuration. See
policy_configuration
below. - Query
Lists List<Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Query List> - Query the statistical list. See
query_list
below. - Send
Resolved bool - Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
- Severity
Configurations List<Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Severity Configuration> - Trigger condition, set at least one trigger condition. See
severity_configurations
below. - Sink
Alerthub Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Sink Alerthub - Configuration of Alerts Sent to Alerthub. See
sink_alerthub
below. - Sink
Cms Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Sink Cms - Configure alerts sent to CloudMonitor. See
sink_cms
below. - Sink
Event Pulumi.Store Ali Cloud. Sls. Inputs. Alert Configuration Sink Event Store - Configuration of sending alarms to EventStore. See
sink_event_store
below. - List<string>
- Customize the category of alarm monitoring rules.
- Template
Configuration Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Template Configuration - Alarm rule template configuration. See
template_configuration
below. - Threshold int
- Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
- Type string
- Template Type.
- Version string
- Template Version.
- Annotations
[]Alert
Configuration Annotation - Template Annotations.
- Auto
Annotation bool - Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
- Condition
Configuration AlertConfiguration Condition Configuration - Alarm trigger condition. See
condition_configuration
below. - Dashboard string
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- Group
Configuration AlertConfiguration Group Configuration - Group evaluation configuration. See
group_configuration
below. - Join
Configurations []AlertConfiguration Join Configuration - Set operation configuration. See
join_configurations
below. - Labels
[]Alert
Configuration Label - Label. See
labels
below. - Mute
Until int - Second-level timestamp representing the temporary shutdown deadline.
- No
Data boolFire - Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
- No
Data intSeverity - Alarm severity when no data triggers an alarm.
- Policy
Configuration AlertConfiguration Policy Configuration - Alert policy configuration. See
policy_configuration
below. - Query
Lists []AlertConfiguration Query List - Query the statistical list. See
query_list
below. - Send
Resolved bool - Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
- Severity
Configurations []AlertConfiguration Severity Configuration - Trigger condition, set at least one trigger condition. See
severity_configurations
below. - Sink
Alerthub AlertConfiguration Sink Alerthub - Configuration of Alerts Sent to Alerthub. See
sink_alerthub
below. - Sink
Cms AlertConfiguration Sink Cms - Configure alerts sent to CloudMonitor. See
sink_cms
below. - Sink
Event AlertStore Configuration Sink Event Store - Configuration of sending alarms to EventStore. See
sink_event_store
below. - []string
- Customize the category of alarm monitoring rules.
- Template
Configuration AlertConfiguration Template Configuration - Alarm rule template configuration. See
template_configuration
below. - Threshold int
- Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
- Type string
- Template Type.
- Version string
- Template Version.
- annotations
List<Alert
Configuration Annotation> - Template Annotations.
- auto
Annotation Boolean - Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
- condition
Configuration AlertConfiguration Condition Configuration - Alarm trigger condition. See
condition_configuration
below. - dashboard String
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group
Configuration AlertConfiguration Group Configuration - Group evaluation configuration. See
group_configuration
below. - join
Configurations List<AlertConfiguration Join Configuration> - Set operation configuration. See
join_configurations
below. - labels
List<Alert
Configuration Label> - Label. See
labels
below. - mute
Until Integer - Second-level timestamp representing the temporary shutdown deadline.
- no
Data BooleanFire - Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
- no
Data IntegerSeverity - Alarm severity when no data triggers an alarm.
- policy
Configuration AlertConfiguration Policy Configuration - Alert policy configuration. See
policy_configuration
below. - query
Lists List<AlertConfiguration Query List> - Query the statistical list. See
query_list
below. - send
Resolved Boolean - Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
- severity
Configurations List<AlertConfiguration Severity Configuration> - Trigger condition, set at least one trigger condition. See
severity_configurations
below. - sink
Alerthub AlertConfiguration Sink Alerthub - Configuration of Alerts Sent to Alerthub. See
sink_alerthub
below. - sink
Cms AlertConfiguration Sink Cms - Configure alerts sent to CloudMonitor. See
sink_cms
below. - sink
Event AlertStore Configuration Sink Event Store - Configuration of sending alarms to EventStore. See
sink_event_store
below. - List<String>
- Customize the category of alarm monitoring rules.
- template
Configuration AlertConfiguration Template Configuration - Alarm rule template configuration. See
template_configuration
below. - threshold Integer
- Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
- type String
- Template Type.
- version String
- Template Version.
- annotations
Alert
Configuration Annotation[] - Template Annotations.
- auto
Annotation boolean - Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
- condition
Configuration AlertConfiguration Condition Configuration - Alarm trigger condition. See
condition_configuration
below. - dashboard string
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group
Configuration AlertConfiguration Group Configuration - Group evaluation configuration. See
group_configuration
below. - join
Configurations AlertConfiguration Join Configuration[] - Set operation configuration. See
join_configurations
below. - labels
Alert
Configuration Label[] - Label. See
labels
below. - mute
Until number - Second-level timestamp representing the temporary shutdown deadline.
- no
Data booleanFire - Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
- no
Data numberSeverity - Alarm severity when no data triggers an alarm.
- policy
Configuration AlertConfiguration Policy Configuration - Alert policy configuration. See
policy_configuration
below. - query
Lists AlertConfiguration Query List[] - Query the statistical list. See
query_list
below. - send
Resolved boolean - Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
- severity
Configurations AlertConfiguration Severity Configuration[] - Trigger condition, set at least one trigger condition. See
severity_configurations
below. - sink
Alerthub AlertConfiguration Sink Alerthub - Configuration of Alerts Sent to Alerthub. See
sink_alerthub
below. - sink
Cms AlertConfiguration Sink Cms - Configure alerts sent to CloudMonitor. See
sink_cms
below. - sink
Event AlertStore Configuration Sink Event Store - Configuration of sending alarms to EventStore. See
sink_event_store
below. - string[]
- Customize the category of alarm monitoring rules.
- template
Configuration AlertConfiguration Template Configuration - Alarm rule template configuration. See
template_configuration
below. - threshold number
- Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
- type string
- Template Type.
- version string
- Template Version.
- annotations
Sequence[Alert
Configuration Annotation] - Template Annotations.
- auto_
annotation bool - Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
- condition_
configuration AlertConfiguration Condition Configuration - Alarm trigger condition. See
condition_configuration
below. - dashboard str
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group_
configuration AlertConfiguration Group Configuration - Group evaluation configuration. See
group_configuration
below. - join_
configurations Sequence[AlertConfiguration Join Configuration] - Set operation configuration. See
join_configurations
below. - labels
Sequence[Alert
Configuration Label] - Label. See
labels
below. - mute_
until int - Second-level timestamp representing the temporary shutdown deadline.
- no_
data_ boolfire - Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
- no_
data_ intseverity - Alarm severity when no data triggers an alarm.
- policy_
configuration AlertConfiguration Policy Configuration - Alert policy configuration. See
policy_configuration
below. - query_
lists Sequence[AlertConfiguration Query List] - Query the statistical list. See
query_list
below. - send_
resolved bool - Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
- severity_
configurations Sequence[AlertConfiguration Severity Configuration] - Trigger condition, set at least one trigger condition. See
severity_configurations
below. - sink_
alerthub AlertConfiguration Sink Alerthub - Configuration of Alerts Sent to Alerthub. See
sink_alerthub
below. - sink_
cms AlertConfiguration Sink Cms - Configure alerts sent to CloudMonitor. See
sink_cms
below. - sink_
event_ Alertstore Configuration Sink Event Store - Configuration of sending alarms to EventStore. See
sink_event_store
below. - Sequence[str]
- Customize the category of alarm monitoring rules.
- template_
configuration AlertConfiguration Template Configuration - Alarm rule template configuration. See
template_configuration
below. - threshold int
- Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
- type str
- Template Type.
- version str
- Template Version.
- annotations List<Property Map>
- Template Annotations.
- auto
Annotation Boolean - Whether to turn on automatic labeling. true (default): The automatic annotation function is enabled, and the system automatically adds information such as__county__to the alarm. For more information, see Automatic Labeling. false: Turn off the automatic annotation function.
- condition
Configuration Property Map - Alarm trigger condition. See
condition_configuration
below. - dashboard String
- The instrument cluster associated with the alarm. It is recommended to set to internal-alert-analysis.
- group
Configuration Property Map - Group evaluation configuration. See
group_configuration
below. - join
Configurations List<Property Map> - Set operation configuration. See
join_configurations
below. - labels List<Property Map>
- Label. See
labels
below. - mute
Until Number - Second-level timestamp representing the temporary shutdown deadline.
- no
Data BooleanFire - Whether no data triggers an alarm. true: If the number of times the query and analysis results (if there are multiple results, the result after the collection operation) is no data exceeds the continuous trigger threshold, an alarm is generated. false (default): Turn off the no data alarm function.
- no
Data NumberSeverity - Alarm severity when no data triggers an alarm.
- policy
Configuration Property Map - Alert policy configuration. See
policy_configuration
below. - query
Lists List<Property Map> - Query the statistical list. See
query_list
below. - send
Resolved Boolean - Whether to send a recovery notification. true: A recovery alarm is triggered when the alarm is restored. false (default): Turn off the alarm recovery notification function.
- severity
Configurations List<Property Map> - Trigger condition, set at least one trigger condition. See
severity_configurations
below. - sink
Alerthub Property Map - Configuration of Alerts Sent to Alerthub. See
sink_alerthub
below. - sink
Cms Property Map - Configure alerts sent to CloudMonitor. See
sink_cms
below. - sink
Event Property MapStore - Configuration of sending alarms to EventStore. See
sink_event_store
below. - List<String>
- Customize the category of alarm monitoring rules.
- template
Configuration Property Map - Alarm rule template configuration. See
template_configuration
below. - threshold Number
- Set the continuous trigger threshold. When the cumulative number of triggers reaches this value, an alarm is generated. The statistics are not counted when the trigger condition is not met.
- type String
- Template Type.
- version String
- Template Version.
AlertConfigurationAnnotation, AlertConfigurationAnnotationArgs
AlertConfigurationConditionConfiguration, AlertConfigurationConditionConfigurationArgs
- Condition string
- Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
- 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.
AlertConfigurationGroupConfiguration, AlertConfigurationGroupConfigurationArgs
AlertConfigurationJoinConfiguration, AlertConfigurationJoinConfigurationArgs
AlertConfigurationLabel, AlertConfigurationLabelArgs
AlertConfigurationPolicyConfiguration, AlertConfigurationPolicyConfigurationArgs
- 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.
AlertConfigurationQueryList, AlertConfigurationQueryListArgs
- 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.
AlertConfigurationSeverityConfiguration, AlertConfigurationSeverityConfigurationArgs
- Eval
Condition Pulumi.Ali Cloud. Sls. Inputs. Alert Configuration Severity Configuration Eval Condition - Trigger condition. See
eval_condition
below. - Severity int
- Alarm severity.
- Eval
Condition AlertConfiguration Severity Configuration Eval Condition - Trigger condition. See
eval_condition
below. - Severity int
- Alarm severity.
- eval
Condition AlertConfiguration Severity Configuration Eval Condition - Trigger condition. See
eval_condition
below. - severity Integer
- Alarm severity.
- eval
Condition AlertConfiguration Severity Configuration Eval Condition - Trigger condition. See
eval_condition
below. - severity number
- Alarm severity.
- eval_
condition AlertConfiguration Severity Configuration Eval Condition - Trigger condition. See
eval_condition
below. - severity int
- Alarm severity.
- eval
Condition Property Map - Trigger condition. See
eval_condition
below. - severity Number
- Alarm severity.
AlertConfigurationSeverityConfigurationEvalCondition, AlertConfigurationSeverityConfigurationEvalConditionArgs
- Condition string
- Data matching expression. When the data content does not need to be determined, set it to an empty string. In other cases, it needs to be set as an expression, for example, errCnt> 10.
- 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.
AlertConfigurationSinkAlerthub, AlertConfigurationSinkAlerthubArgs
- Enabled bool
- Open.
- Enabled bool
- Open.
- enabled Boolean
- Open.
- enabled boolean
- Open.
- enabled bool
- Open.
- enabled Boolean
- Open.
AlertConfigurationSinkCms, AlertConfigurationSinkCmsArgs
- Enabled bool
- Open.
- Enabled bool
- Open.
- enabled Boolean
- Open.
- enabled boolean
- Open.
- enabled bool
- Open.
- enabled Boolean
- Open.
AlertConfigurationSinkEventStore, AlertConfigurationSinkEventStoreArgs
- Enabled bool
- Open.
- Endpoint string
- SLS service endpoint.
- 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.
AlertConfigurationTemplateConfiguration, AlertConfigurationTemplateConfigurationArgs
- Annotations Dictionary<string, string>
- Template Annotations.
- Lang string
- Template Language.
- Template
Id string - Template ID.
- Tokens Dictionary<string, string>
- Template Variables.
- Type string
- Version string
- Template Version.
- Annotations map[string]string
- Template Annotations.
- Lang string
- Template Language.
- Template
Id string - Template ID.
- Tokens map[string]string
- Template Variables.
- Type string
- Version string
- Template Version.
- annotations Map<String,String>
- Template Annotations.
- lang String
- Template Language.
- template
Id String - Template ID.
- tokens Map<String,String>
- Template Variables.
- type String
- version String
- Template Version.
- annotations {[key: string]: string}
- Template Annotations.
- lang string
- Template Language.
- template
Id string - Template ID.
- tokens {[key: string]: string}
- Template Variables.
- type string
- version string
- Template Version.
- annotations Mapping[str, str]
- Template Annotations.
- lang str
- Template Language.
- template_
id str - Template ID.
- tokens Mapping[str, str]
- Template Variables.
- type str
- version str
- Template Version.
- annotations Map<String>
- Template Annotations.
- lang String
- Template Language.
- template
Id String - Template ID.
- tokens Map<String>
- Template Variables.
- type String
- version String
- Template Version.
AlertSchedule, AlertScheduleArgs
- Cron
Expression string - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
- Delay int
- Timed task execution delay (unit: s).
- Interval string
- Fixed interval for scheduling.
- Run
Immdiately bool - Dispatch immediately.
- Time
Zone string - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- Type string
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- Cron
Expression string - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
- Delay int
- Timed task execution delay (unit: s).
- Interval string
- Fixed interval for scheduling.
- Run
Immdiately bool - Dispatch immediately.
- Time
Zone string - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- Type string
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron
Expression String - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
- delay Integer
- Timed task execution delay (unit: s).
- interval String
- Fixed interval for scheduling.
- run
Immdiately Boolean - Dispatch immediately.
- time
Zone String - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type String
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron
Expression string - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
- delay number
- Timed task execution delay (unit: s).
- interval string
- Fixed interval for scheduling.
- run
Immdiately boolean - Dispatch immediately.
- time
Zone string - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type string
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron_
expression str - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
- delay int
- Timed task execution delay (unit: s).
- interval str
- Fixed interval for scheduling.
- run_
immdiately bool - Dispatch immediately.
- time_
zone str - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type str
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
- cron
Expression String - Cron expression, the minimum accuracy is minutes, 24 hours. For example, 0 0/1 * * * means that the check is conducted every 1 hour from 00:00. When type is set to Cron, cronExpression must be set.
- delay Number
- Timed task execution delay (unit: s).
- interval String
- Fixed interval for scheduling.
- run
Immdiately Boolean - Dispatch immediately.
- time
Zone String - The time zone where the Cron expression is located. The default value is null, indicating the eighth zone in the east.
- type String
- Check the frequency type. Log Service checks the query and analysis results according to the frequency you configured. The values are as follows: Fixedate: checks query and analysis results at regular intervals. Cron: specifies the time interval by using the Cron expression, and checks the query and analysis results at the specified time interval.
Import
SLS Alert can be imported using the id, e.g.
$ pulumi import alicloud:sls/alert:Alert example <project_name>:<alert_name>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.