alicloud.log.Alert
Explore with Pulumi AI
Log alert is a unit of log service, which is used to monitor and alert the user’s logstore status information. Log Service enables you to configure alerts based on the charts in a dashboard to monitor the service status in real time.
For information about SLS Alert and how to use it, see SLS Alert Overview
NOTE: Available in 1.78.0
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
max: 99999,
min: 10000,
});
const example = new alicloud.log.Project("example", {
name: `terraform-example-${_default.result}`,
description: "terraform-example",
});
const exampleStore = new alicloud.log.Store("example", {
project: example.name,
name: "example-store",
retentionPeriod: 3650,
shardCount: 3,
autoSplit: true,
maxSplitShardCount: 60,
appendMeta: true,
});
const exampleAlert = new alicloud.log.Alert("example", {
projectName: example.name,
alertName: "example-alert",
alertDisplayname: "example-alert",
condition: "count> 100",
dashboard: "example-dashboard",
schedule: {
type: "FixedRate",
interval: "5m",
hour: 0,
dayOfWeek: 0,
delay: 0,
runImmediately: false,
},
queryLists: [{
logstore: exampleStore.name,
chartTitle: "chart_title",
start: "-60s",
end: "20s",
query: "* AND aliyun",
}],
notificationLists: [
{
type: "SMS",
mobileLists: [
"12345678",
"87654321",
],
content: "alert content",
},
{
type: "Email",
emailLists: [
"aliyun@alibaba-inc.com",
"tf-example@123.com",
],
content: "alert content",
},
{
type: "DingTalk",
serviceUri: "www.aliyun.com",
content: "alert content",
},
],
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
max=99999,
min=10000)
example = alicloud.log.Project("example",
name=f"terraform-example-{default['result']}",
description="terraform-example")
example_store = alicloud.log.Store("example",
project=example.name,
name="example-store",
retention_period=3650,
shard_count=3,
auto_split=True,
max_split_shard_count=60,
append_meta=True)
example_alert = alicloud.log.Alert("example",
project_name=example.name,
alert_name="example-alert",
alert_displayname="example-alert",
condition="count> 100",
dashboard="example-dashboard",
schedule=alicloud.log.AlertScheduleArgs(
type="FixedRate",
interval="5m",
hour=0,
day_of_week=0,
delay=0,
run_immediately=False,
),
query_lists=[alicloud.log.AlertQueryListArgs(
logstore=example_store.name,
chart_title="chart_title",
start="-60s",
end="20s",
query="* AND aliyun",
)],
notification_lists=[
alicloud.log.AlertNotificationListArgs(
type="SMS",
mobile_lists=[
"12345678",
"87654321",
],
content="alert content",
),
alicloud.log.AlertNotificationListArgs(
type="Email",
email_lists=[
"aliyun@alibaba-inc.com",
"tf-example@123.com",
],
content="alert content",
),
alicloud.log.AlertNotificationListArgs(
type="DingTalk",
service_uri="www.aliyun.com",
content="alert content",
),
])
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Max: 99999,
Min: 10000,
})
if err != nil {
return err
}
example, err := log.NewProject(ctx, "example", &log.ProjectArgs{
Name: pulumi.String(fmt.Sprintf("terraform-example-%v", _default.Result)),
Description: pulumi.String("terraform-example"),
})
if err != nil {
return err
}
exampleStore, err := log.NewStore(ctx, "example", &log.StoreArgs{
Project: example.Name,
Name: pulumi.String("example-store"),
RetentionPeriod: pulumi.Int(3650),
ShardCount: pulumi.Int(3),
AutoSplit: pulumi.Bool(true),
MaxSplitShardCount: pulumi.Int(60),
AppendMeta: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = log.NewAlert(ctx, "example", &log.AlertArgs{
ProjectName: example.Name,
AlertName: pulumi.String("example-alert"),
AlertDisplayname: pulumi.String("example-alert"),
Condition: pulumi.String("count> 100"),
Dashboard: pulumi.String("example-dashboard"),
Schedule: &log.AlertScheduleArgs{
Type: pulumi.String("FixedRate"),
Interval: pulumi.String("5m"),
Hour: pulumi.Int(0),
DayOfWeek: pulumi.Int(0),
Delay: pulumi.Int(0),
RunImmediately: pulumi.Bool(false),
},
QueryLists: log.AlertQueryListArray{
&log.AlertQueryListArgs{
Logstore: exampleStore.Name,
ChartTitle: pulumi.String("chart_title"),
Start: pulumi.String("-60s"),
End: pulumi.String("20s"),
Query: pulumi.String("* AND aliyun"),
},
},
NotificationLists: log.AlertNotificationListArray{
&log.AlertNotificationListArgs{
Type: pulumi.String("SMS"),
MobileLists: pulumi.StringArray{
pulumi.String("12345678"),
pulumi.String("87654321"),
},
Content: pulumi.String("alert content"),
},
&log.AlertNotificationListArgs{
Type: pulumi.String("Email"),
EmailLists: pulumi.StringArray{
pulumi.String("aliyun@alibaba-inc.com"),
pulumi.String("tf-example@123.com"),
},
Content: pulumi.String("alert content"),
},
&log.AlertNotificationListArgs{
Type: pulumi.String("DingTalk"),
ServiceUri: pulumi.String("www.aliyun.com"),
Content: pulumi.String("alert content"),
},
},
})
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 @default = new Random.Index.Integer("default", new()
{
Max = 99999,
Min = 10000,
});
var example = new AliCloud.Log.Project("example", new()
{
Name = $"terraform-example-{@default.Result}",
Description = "terraform-example",
});
var exampleStore = new AliCloud.Log.Store("example", new()
{
Project = example.Name,
Name = "example-store",
RetentionPeriod = 3650,
ShardCount = 3,
AutoSplit = true,
MaxSplitShardCount = 60,
AppendMeta = true,
});
var exampleAlert = new AliCloud.Log.Alert("example", new()
{
ProjectName = example.Name,
AlertName = "example-alert",
AlertDisplayname = "example-alert",
Condition = "count> 100",
Dashboard = "example-dashboard",
Schedule = new AliCloud.Log.Inputs.AlertScheduleArgs
{
Type = "FixedRate",
Interval = "5m",
Hour = 0,
DayOfWeek = 0,
Delay = 0,
RunImmediately = false,
},
QueryLists = new[]
{
new AliCloud.Log.Inputs.AlertQueryListArgs
{
Logstore = exampleStore.Name,
ChartTitle = "chart_title",
Start = "-60s",
End = "20s",
Query = "* AND aliyun",
},
},
NotificationLists = new[]
{
new AliCloud.Log.Inputs.AlertNotificationListArgs
{
Type = "SMS",
MobileLists = new[]
{
"12345678",
"87654321",
},
Content = "alert content",
},
new AliCloud.Log.Inputs.AlertNotificationListArgs
{
Type = "Email",
EmailLists = new[]
{
"aliyun@alibaba-inc.com",
"tf-example@123.com",
},
Content = "alert content",
},
new AliCloud.Log.Inputs.AlertNotificationListArgs
{
Type = "DingTalk",
ServiceUri = "www.aliyun.com",
Content = "alert content",
},
},
});
});
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.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.log.Alert;
import com.pulumi.alicloud.log.AlertArgs;
import com.pulumi.alicloud.log.inputs.AlertScheduleArgs;
import com.pulumi.alicloud.log.inputs.AlertQueryListArgs;
import com.pulumi.alicloud.log.inputs.AlertNotificationListArgs;
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) {
var default_ = new Integer("default", IntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var example = new Project("example", ProjectArgs.builder()
.name(String.format("terraform-example-%s", default_.result()))
.description("terraform-example")
.build());
var exampleStore = new Store("exampleStore", StoreArgs.builder()
.project(example.name())
.name("example-store")
.retentionPeriod(3650)
.shardCount(3)
.autoSplit(true)
.maxSplitShardCount(60)
.appendMeta(true)
.build());
var exampleAlert = new Alert("exampleAlert", AlertArgs.builder()
.projectName(example.name())
.alertName("example-alert")
.alertDisplayname("example-alert")
.condition("count> 100")
.dashboard("example-dashboard")
.schedule(AlertScheduleArgs.builder()
.type("FixedRate")
.interval("5m")
.hour(0)
.dayOfWeek(0)
.delay(0)
.runImmediately(false)
.build())
.queryLists(AlertQueryListArgs.builder()
.logstore(exampleStore.name())
.chartTitle("chart_title")
.start("-60s")
.end("20s")
.query("* AND aliyun")
.build())
.notificationLists(
AlertNotificationListArgs.builder()
.type("SMS")
.mobileLists(
"12345678",
"87654321")
.content("alert content")
.build(),
AlertNotificationListArgs.builder()
.type("Email")
.emailLists(
"aliyun@alibaba-inc.com",
"tf-example@123.com")
.content("alert content")
.build(),
AlertNotificationListArgs.builder()
.type("DingTalk")
.serviceUri("www.aliyun.com")
.content("alert content")
.build())
.build());
}
}
resources:
default:
type: random:integer
properties:
max: 99999
min: 10000
example:
type: alicloud:log:Project
properties:
name: terraform-example-${default.result}
description: terraform-example
exampleStore:
type: alicloud:log:Store
name: example
properties:
project: ${example.name}
name: example-store
retentionPeriod: 3650
shardCount: 3
autoSplit: true
maxSplitShardCount: 60
appendMeta: true
exampleAlert:
type: alicloud:log:Alert
name: example
properties:
projectName: ${example.name}
alertName: example-alert
alertDisplayname: example-alert
condition: count> 100
dashboard: example-dashboard
schedule:
type: FixedRate
interval: 5m
hour: 0
dayOfWeek: 0
delay: 0
runImmediately: false
queryLists:
- logstore: ${exampleStore.name}
chartTitle: chart_title
start: -60s
end: 20s
query: '* AND aliyun'
notificationLists:
- type: SMS
mobileLists:
- '12345678'
- '87654321'
content: alert content
- type: Email
emailLists:
- aliyun@alibaba-inc.com
- tf-example@123.com
content: alert content
- type: DingTalk
serviceUri: www.aliyun.com
content: alert content
Basic Usage for new alert
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
max: 99999,
min: 10000,
});
const example = new alicloud.log.Project("example", {
name: `terraform-example-${_default.result}`,
description: "terraform-example",
});
const exampleStore = new alicloud.log.Store("example", {
project: example.name,
name: "example-store",
retentionPeriod: 3650,
shardCount: 3,
autoSplit: true,
maxSplitShardCount: 60,
appendMeta: true,
});
const example_2 = new alicloud.log.Alert("example-2", {
version: "2.0",
type: "default",
projectName: example.name,
alertName: "example-alert",
alertDisplayname: "example-alert",
muteUntil: 1632486684,
noDataFire: false,
noDataSeverity: 8,
sendResolved: true,
autoAnnotation: true,
dashboard: "example-dashboard",
schedule: {
type: "FixedRate",
interval: "5m",
hour: 0,
dayOfWeek: 0,
delay: 0,
runImmediately: false,
},
queryLists: [
{
store: exampleStore.name,
storeType: "log",
project: example.name,
region: "cn-heyuan",
chartTitle: "chart_title",
start: "-60s",
end: "20s",
query: "* AND aliyun | select count(1) as cnt",
powerSqlMode: "auto",
},
{
store: exampleStore.name,
storeType: "log",
project: example.name,
region: "cn-heyuan",
chartTitle: "chart_title",
start: "-60s",
end: "20s",
query: "error | select count(1) as error_cnt",
powerSqlMode: "enable",
},
],
labels: [{
key: "env",
value: "test",
}],
annotations: [
{
key: "title",
value: "alert title",
},
{
key: "desc",
value: "alert desc",
},
{
key: "test_key",
value: "test value",
},
],
groupConfiguration: {
type: "custom",
fields: ["cnt"],
},
policyConfiguration: {
alertPolicyId: "sls.bultin",
actionPolicyId: "sls_test_action",
repeatInterval: "4h",
},
severityConfigurations: [
{
severity: 8,
evalCondition: {
condition: "cnt > 3",
count_condition: "__count__ > 3",
},
},
{
severity: 6,
evalCondition: {
condition: "",
count_condition: "__count__ > 0",
},
},
{
severity: 2,
evalCondition: {
condition: "",
count_condition: "",
},
},
],
joinConfigurations: [{
type: "cross_join",
condition: "",
}],
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
max=99999,
min=10000)
example = alicloud.log.Project("example",
name=f"terraform-example-{default['result']}",
description="terraform-example")
example_store = alicloud.log.Store("example",
project=example.name,
name="example-store",
retention_period=3650,
shard_count=3,
auto_split=True,
max_split_shard_count=60,
append_meta=True)
example_2 = alicloud.log.Alert("example-2",
version="2.0",
type="default",
project_name=example.name,
alert_name="example-alert",
alert_displayname="example-alert",
mute_until=1632486684,
no_data_fire=False,
no_data_severity=8,
send_resolved=True,
auto_annotation=True,
dashboard="example-dashboard",
schedule=alicloud.log.AlertScheduleArgs(
type="FixedRate",
interval="5m",
hour=0,
day_of_week=0,
delay=0,
run_immediately=False,
),
query_lists=[
alicloud.log.AlertQueryListArgs(
store=example_store.name,
store_type="log",
project=example.name,
region="cn-heyuan",
chart_title="chart_title",
start="-60s",
end="20s",
query="* AND aliyun | select count(1) as cnt",
power_sql_mode="auto",
),
alicloud.log.AlertQueryListArgs(
store=example_store.name,
store_type="log",
project=example.name,
region="cn-heyuan",
chart_title="chart_title",
start="-60s",
end="20s",
query="error | select count(1) as error_cnt",
power_sql_mode="enable",
),
],
labels=[alicloud.log.AlertLabelArgs(
key="env",
value="test",
)],
annotations=[
alicloud.log.AlertAnnotationArgs(
key="title",
value="alert title",
),
alicloud.log.AlertAnnotationArgs(
key="desc",
value="alert desc",
),
alicloud.log.AlertAnnotationArgs(
key="test_key",
value="test value",
),
],
group_configuration=alicloud.log.AlertGroupConfigurationArgs(
type="custom",
fields=["cnt"],
),
policy_configuration=alicloud.log.AlertPolicyConfigurationArgs(
alert_policy_id="sls.bultin",
action_policy_id="sls_test_action",
repeat_interval="4h",
),
severity_configurations=[
alicloud.log.AlertSeverityConfigurationArgs(
severity=8,
eval_condition={
"condition": "cnt > 3",
"count_condition": "__count__ > 3",
},
),
alicloud.log.AlertSeverityConfigurationArgs(
severity=6,
eval_condition={
"condition": "",
"count_condition": "__count__ > 0",
},
),
alicloud.log.AlertSeverityConfigurationArgs(
severity=2,
eval_condition={
"condition": "",
"count_condition": "",
},
),
],
join_configurations=[alicloud.log.AlertJoinConfigurationArgs(
type="cross_join",
condition="",
)])
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Max: 99999,
Min: 10000,
})
if err != nil {
return err
}
example, err := log.NewProject(ctx, "example", &log.ProjectArgs{
Name: pulumi.String(fmt.Sprintf("terraform-example-%v", _default.Result)),
Description: pulumi.String("terraform-example"),
})
if err != nil {
return err
}
exampleStore, err := log.NewStore(ctx, "example", &log.StoreArgs{
Project: example.Name,
Name: pulumi.String("example-store"),
RetentionPeriod: pulumi.Int(3650),
ShardCount: pulumi.Int(3),
AutoSplit: pulumi.Bool(true),
MaxSplitShardCount: pulumi.Int(60),
AppendMeta: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = log.NewAlert(ctx, "example-2", &log.AlertArgs{
Version: pulumi.String("2.0"),
Type: pulumi.String("default"),
ProjectName: example.Name,
AlertName: pulumi.String("example-alert"),
AlertDisplayname: pulumi.String("example-alert"),
MuteUntil: pulumi.Int(1632486684),
NoDataFire: pulumi.Bool(false),
NoDataSeverity: pulumi.Int(8),
SendResolved: pulumi.Bool(true),
AutoAnnotation: pulumi.Bool(true),
Dashboard: pulumi.String("example-dashboard"),
Schedule: &log.AlertScheduleArgs{
Type: pulumi.String("FixedRate"),
Interval: pulumi.String("5m"),
Hour: pulumi.Int(0),
DayOfWeek: pulumi.Int(0),
Delay: pulumi.Int(0),
RunImmediately: pulumi.Bool(false),
},
QueryLists: log.AlertQueryListArray{
&log.AlertQueryListArgs{
Store: exampleStore.Name,
StoreType: pulumi.String("log"),
Project: example.Name,
Region: pulumi.String("cn-heyuan"),
ChartTitle: pulumi.String("chart_title"),
Start: pulumi.String("-60s"),
End: pulumi.String("20s"),
Query: pulumi.String("* AND aliyun | select count(1) as cnt"),
PowerSqlMode: pulumi.String("auto"),
},
&log.AlertQueryListArgs{
Store: exampleStore.Name,
StoreType: pulumi.String("log"),
Project: example.Name,
Region: pulumi.String("cn-heyuan"),
ChartTitle: pulumi.String("chart_title"),
Start: pulumi.String("-60s"),
End: pulumi.String("20s"),
Query: pulumi.String("error | select count(1) as error_cnt"),
PowerSqlMode: pulumi.String("enable"),
},
},
Labels: log.AlertLabelArray{
&log.AlertLabelArgs{
Key: pulumi.String("env"),
Value: pulumi.String("test"),
},
},
Annotations: log.AlertAnnotationArray{
&log.AlertAnnotationArgs{
Key: pulumi.String("title"),
Value: pulumi.String("alert title"),
},
&log.AlertAnnotationArgs{
Key: pulumi.String("desc"),
Value: pulumi.String("alert desc"),
},
&log.AlertAnnotationArgs{
Key: pulumi.String("test_key"),
Value: pulumi.String("test value"),
},
},
GroupConfiguration: &log.AlertGroupConfigurationArgs{
Type: pulumi.String("custom"),
Fields: pulumi.StringArray{
pulumi.String("cnt"),
},
},
PolicyConfiguration: &log.AlertPolicyConfigurationArgs{
AlertPolicyId: pulumi.String("sls.bultin"),
ActionPolicyId: pulumi.String("sls_test_action"),
RepeatInterval: pulumi.String("4h"),
},
SeverityConfigurations: log.AlertSeverityConfigurationArray{
&log.AlertSeverityConfigurationArgs{
Severity: pulumi.Int(8),
EvalCondition: pulumi.StringMap{
"condition": pulumi.String("cnt > 3"),
"count_condition": pulumi.String("__count__ > 3"),
},
},
&log.AlertSeverityConfigurationArgs{
Severity: pulumi.Int(6),
EvalCondition: pulumi.StringMap{
"condition": pulumi.String(""),
"count_condition": pulumi.String("__count__ > 0"),
},
},
&log.AlertSeverityConfigurationArgs{
Severity: pulumi.Int(2),
EvalCondition: pulumi.StringMap{
"condition": pulumi.String(""),
"count_condition": pulumi.String(""),
},
},
},
JoinConfigurations: log.AlertJoinConfigurationArray{
&log.AlertJoinConfigurationArgs{
Type: pulumi.String("cross_join"),
Condition: pulumi.String(""),
},
},
})
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 @default = new Random.Index.Integer("default", new()
{
Max = 99999,
Min = 10000,
});
var example = new AliCloud.Log.Project("example", new()
{
Name = $"terraform-example-{@default.Result}",
Description = "terraform-example",
});
var exampleStore = new AliCloud.Log.Store("example", new()
{
Project = example.Name,
Name = "example-store",
RetentionPeriod = 3650,
ShardCount = 3,
AutoSplit = true,
MaxSplitShardCount = 60,
AppendMeta = true,
});
var example_2 = new AliCloud.Log.Alert("example-2", new()
{
Version = "2.0",
Type = "default",
ProjectName = example.Name,
AlertName = "example-alert",
AlertDisplayname = "example-alert",
MuteUntil = 1632486684,
NoDataFire = false,
NoDataSeverity = 8,
SendResolved = true,
AutoAnnotation = true,
Dashboard = "example-dashboard",
Schedule = new AliCloud.Log.Inputs.AlertScheduleArgs
{
Type = "FixedRate",
Interval = "5m",
Hour = 0,
DayOfWeek = 0,
Delay = 0,
RunImmediately = false,
},
QueryLists = new[]
{
new AliCloud.Log.Inputs.AlertQueryListArgs
{
Store = exampleStore.Name,
StoreType = "log",
Project = example.Name,
Region = "cn-heyuan",
ChartTitle = "chart_title",
Start = "-60s",
End = "20s",
Query = "* AND aliyun | select count(1) as cnt",
PowerSqlMode = "auto",
},
new AliCloud.Log.Inputs.AlertQueryListArgs
{
Store = exampleStore.Name,
StoreType = "log",
Project = example.Name,
Region = "cn-heyuan",
ChartTitle = "chart_title",
Start = "-60s",
End = "20s",
Query = "error | select count(1) as error_cnt",
PowerSqlMode = "enable",
},
},
Labels = new[]
{
new AliCloud.Log.Inputs.AlertLabelArgs
{
Key = "env",
Value = "test",
},
},
Annotations = new[]
{
new AliCloud.Log.Inputs.AlertAnnotationArgs
{
Key = "title",
Value = "alert title",
},
new AliCloud.Log.Inputs.AlertAnnotationArgs
{
Key = "desc",
Value = "alert desc",
},
new AliCloud.Log.Inputs.AlertAnnotationArgs
{
Key = "test_key",
Value = "test value",
},
},
GroupConfiguration = new AliCloud.Log.Inputs.AlertGroupConfigurationArgs
{
Type = "custom",
Fields = new[]
{
"cnt",
},
},
PolicyConfiguration = new AliCloud.Log.Inputs.AlertPolicyConfigurationArgs
{
AlertPolicyId = "sls.bultin",
ActionPolicyId = "sls_test_action",
RepeatInterval = "4h",
},
SeverityConfigurations = new[]
{
new AliCloud.Log.Inputs.AlertSeverityConfigurationArgs
{
Severity = 8,
EvalCondition =
{
{ "condition", "cnt > 3" },
{ "count_condition", "__count__ > 3" },
},
},
new AliCloud.Log.Inputs.AlertSeverityConfigurationArgs
{
Severity = 6,
EvalCondition =
{
{ "condition", "" },
{ "count_condition", "__count__ > 0" },
},
},
new AliCloud.Log.Inputs.AlertSeverityConfigurationArgs
{
Severity = 2,
EvalCondition =
{
{ "condition", "" },
{ "count_condition", "" },
},
},
},
JoinConfigurations = new[]
{
new AliCloud.Log.Inputs.AlertJoinConfigurationArgs
{
Type = "cross_join",
Condition = "",
},
},
});
});
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.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.log.Alert;
import com.pulumi.alicloud.log.AlertArgs;
import com.pulumi.alicloud.log.inputs.AlertScheduleArgs;
import com.pulumi.alicloud.log.inputs.AlertQueryListArgs;
import com.pulumi.alicloud.log.inputs.AlertLabelArgs;
import com.pulumi.alicloud.log.inputs.AlertAnnotationArgs;
import com.pulumi.alicloud.log.inputs.AlertGroupConfigurationArgs;
import com.pulumi.alicloud.log.inputs.AlertPolicyConfigurationArgs;
import com.pulumi.alicloud.log.inputs.AlertSeverityConfigurationArgs;
import com.pulumi.alicloud.log.inputs.AlertJoinConfigurationArgs;
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) {
var default_ = new Integer("default", IntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var example = new Project("example", ProjectArgs.builder()
.name(String.format("terraform-example-%s", default_.result()))
.description("terraform-example")
.build());
var exampleStore = new Store("exampleStore", StoreArgs.builder()
.project(example.name())
.name("example-store")
.retentionPeriod(3650)
.shardCount(3)
.autoSplit(true)
.maxSplitShardCount(60)
.appendMeta(true)
.build());
var example_2 = new Alert("example-2", AlertArgs.builder()
.version("2.0")
.type("default")
.projectName(example.name())
.alertName("example-alert")
.alertDisplayname("example-alert")
.muteUntil("1632486684")
.noDataFire("false")
.noDataSeverity(8)
.sendResolved(true)
.autoAnnotation(true)
.dashboard("example-dashboard")
.schedule(AlertScheduleArgs.builder()
.type("FixedRate")
.interval("5m")
.hour(0)
.dayOfWeek(0)
.delay(0)
.runImmediately(false)
.build())
.queryLists(
AlertQueryListArgs.builder()
.store(exampleStore.name())
.storeType("log")
.project(example.name())
.region("cn-heyuan")
.chartTitle("chart_title")
.start("-60s")
.end("20s")
.query("* AND aliyun | select count(1) as cnt")
.powerSqlMode("auto")
.build(),
AlertQueryListArgs.builder()
.store(exampleStore.name())
.storeType("log")
.project(example.name())
.region("cn-heyuan")
.chartTitle("chart_title")
.start("-60s")
.end("20s")
.query("error | select count(1) as error_cnt")
.powerSqlMode("enable")
.build())
.labels(AlertLabelArgs.builder()
.key("env")
.value("test")
.build())
.annotations(
AlertAnnotationArgs.builder()
.key("title")
.value("alert title")
.build(),
AlertAnnotationArgs.builder()
.key("desc")
.value("alert desc")
.build(),
AlertAnnotationArgs.builder()
.key("test_key")
.value("test value")
.build())
.groupConfiguration(AlertGroupConfigurationArgs.builder()
.type("custom")
.fields("cnt")
.build())
.policyConfiguration(AlertPolicyConfigurationArgs.builder()
.alertPolicyId("sls.bultin")
.actionPolicyId("sls_test_action")
.repeatInterval("4h")
.build())
.severityConfigurations(
AlertSeverityConfigurationArgs.builder()
.severity(8)
.evalCondition(Map.ofEntries(
Map.entry("condition", "cnt > 3"),
Map.entry("count_condition", "__count__ > 3")
))
.build(),
AlertSeverityConfigurationArgs.builder()
.severity(6)
.evalCondition(Map.ofEntries(
Map.entry("condition", ""),
Map.entry("count_condition", "__count__ > 0")
))
.build(),
AlertSeverityConfigurationArgs.builder()
.severity(2)
.evalCondition(Map.ofEntries(
Map.entry("condition", ""),
Map.entry("count_condition", "")
))
.build())
.joinConfigurations(AlertJoinConfigurationArgs.builder()
.type("cross_join")
.condition("")
.build())
.build());
}
}
resources:
default:
type: random:integer
properties:
max: 99999
min: 10000
example:
type: alicloud:log:Project
properties:
name: terraform-example-${default.result}
description: terraform-example
exampleStore:
type: alicloud:log:Store
name: example
properties:
project: ${example.name}
name: example-store
retentionPeriod: 3650
shardCount: 3
autoSplit: true
maxSplitShardCount: 60
appendMeta: true
example-2:
type: alicloud:log:Alert
properties:
version: '2.0'
type: default
projectName: ${example.name}
alertName: example-alert
alertDisplayname: example-alert
muteUntil: '1632486684'
noDataFire: 'false'
noDataSeverity: 8
sendResolved: true
autoAnnotation: true
dashboard: example-dashboard
schedule:
type: FixedRate
interval: 5m
hour: 0
dayOfWeek: 0
delay: 0
runImmediately: false
queryLists:
- store: ${exampleStore.name}
storeType: log
project: ${example.name}
region: cn-heyuan
chartTitle: chart_title
start: -60s
end: 20s
query: '* AND aliyun | select count(1) as cnt'
powerSqlMode: auto
- store: ${exampleStore.name}
storeType: log
project: ${example.name}
region: cn-heyuan
chartTitle: chart_title
start: -60s
end: 20s
query: error | select count(1) as error_cnt
powerSqlMode: enable
labels:
- key: env
value: test
annotations:
- key: title
value: alert title
- key: desc
value: alert desc
- key: test_key
value: test value
groupConfiguration:
type: custom
fields:
- cnt
policyConfiguration:
alertPolicyId: sls.bultin
actionPolicyId: sls_test_action
repeatInterval: 4h
severityConfigurations:
- severity: 8
evalCondition:
condition: cnt > 3
count_condition: __count__ > 3
- severity: 6
evalCondition:
condition:
count_condition: __count__ > 0
- severity: 2
evalCondition:
condition:
count_condition:
joinConfigurations:
- type: cross_join
condition:
Basic Usage for alert template
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const _default = new random.index.Integer("default", {
max: 99999,
min: 10000,
});
const example = new alicloud.log.Project("example", {
name: `terraform-example-${_default.result}`,
description: "terraform-example",
});
const exampleStore = new alicloud.log.Store("example", {
project: example.name,
name: "example-store",
retentionPeriod: 3650,
shardCount: 3,
autoSplit: true,
maxSplitShardCount: 60,
appendMeta: true,
});
const example_3 = new alicloud.log.Alert("example-3", {
version: "2.0",
type: "tpl",
projectName: example.name,
alertName: "example-alert",
alertDisplayname: "example-alert",
muteUntil: 1632486684,
schedule: {
type: "FixedRate",
interval: "5m",
hour: 0,
dayOfWeek: 0,
delay: 0,
runImmediately: false,
},
templateConfiguration: {
id: "sls.app.sls_ack.node.down",
type: "sys",
lang: "cn",
annotations: {},
tokens: {
interval_minute: "5",
"default.action_policy": "sls.app.ack.builtin",
"default.severity": "6",
sendResolved: "false",
"default.project": example.name,
"default.logstore": "k8s-event",
"default.repeatInterval": "4h",
trigger_threshold: "1",
"default.clusterId": "example-cluster-id",
},
},
});
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
default = random.index.Integer("default",
max=99999,
min=10000)
example = alicloud.log.Project("example",
name=f"terraform-example-{default['result']}",
description="terraform-example")
example_store = alicloud.log.Store("example",
project=example.name,
name="example-store",
retention_period=3650,
shard_count=3,
auto_split=True,
max_split_shard_count=60,
append_meta=True)
example_3 = alicloud.log.Alert("example-3",
version="2.0",
type="tpl",
project_name=example.name,
alert_name="example-alert",
alert_displayname="example-alert",
mute_until=1632486684,
schedule=alicloud.log.AlertScheduleArgs(
type="FixedRate",
interval="5m",
hour=0,
day_of_week=0,
delay=0,
run_immediately=False,
),
template_configuration=alicloud.log.AlertTemplateConfigurationArgs(
id="sls.app.sls_ack.node.down",
type="sys",
lang="cn",
annotations={},
tokens={
"interval_minute": "5",
"default.action_policy": "sls.app.ack.builtin",
"default.severity": "6",
"sendResolved": "false",
"default.project": example.name,
"default.logstore": "k8s-event",
"default.repeatInterval": "4h",
"trigger_threshold": "1",
"default.clusterId": "example-cluster-id",
},
))
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/log"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Max: 99999,
Min: 10000,
})
if err != nil {
return err
}
example, err := log.NewProject(ctx, "example", &log.ProjectArgs{
Name: pulumi.String(fmt.Sprintf("terraform-example-%v", _default.Result)),
Description: pulumi.String("terraform-example"),
})
if err != nil {
return err
}
_, err = log.NewStore(ctx, "example", &log.StoreArgs{
Project: example.Name,
Name: pulumi.String("example-store"),
RetentionPeriod: pulumi.Int(3650),
ShardCount: pulumi.Int(3),
AutoSplit: pulumi.Bool(true),
MaxSplitShardCount: pulumi.Int(60),
AppendMeta: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = log.NewAlert(ctx, "example-3", &log.AlertArgs{
Version: pulumi.String("2.0"),
Type: pulumi.String("tpl"),
ProjectName: example.Name,
AlertName: pulumi.String("example-alert"),
AlertDisplayname: pulumi.String("example-alert"),
MuteUntil: pulumi.Int(1632486684),
Schedule: &log.AlertScheduleArgs{
Type: pulumi.String("FixedRate"),
Interval: pulumi.String("5m"),
Hour: pulumi.Int(0),
DayOfWeek: pulumi.Int(0),
Delay: pulumi.Int(0),
RunImmediately: pulumi.Bool(false),
},
TemplateConfiguration: &log.AlertTemplateConfigurationArgs{
Id: pulumi.String("sls.app.sls_ack.node.down"),
Type: pulumi.String("sys"),
Lang: pulumi.String("cn"),
Annotations: nil,
Tokens: pulumi.StringMap{
"interval_minute": pulumi.String("5"),
"default.action_policy": pulumi.String("sls.app.ack.builtin"),
"default.severity": pulumi.String("6"),
"sendResolved": pulumi.String("false"),
"default.project": example.Name,
"default.logstore": pulumi.String("k8s-event"),
"default.repeatInterval": pulumi.String("4h"),
"trigger_threshold": pulumi.String("1"),
"default.clusterId": pulumi.String("example-cluster-id"),
},
},
})
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 @default = new Random.Index.Integer("default", new()
{
Max = 99999,
Min = 10000,
});
var example = new AliCloud.Log.Project("example", new()
{
Name = $"terraform-example-{@default.Result}",
Description = "terraform-example",
});
var exampleStore = new AliCloud.Log.Store("example", new()
{
Project = example.Name,
Name = "example-store",
RetentionPeriod = 3650,
ShardCount = 3,
AutoSplit = true,
MaxSplitShardCount = 60,
AppendMeta = true,
});
var example_3 = new AliCloud.Log.Alert("example-3", new()
{
Version = "2.0",
Type = "tpl",
ProjectName = example.Name,
AlertName = "example-alert",
AlertDisplayname = "example-alert",
MuteUntil = 1632486684,
Schedule = new AliCloud.Log.Inputs.AlertScheduleArgs
{
Type = "FixedRate",
Interval = "5m",
Hour = 0,
DayOfWeek = 0,
Delay = 0,
RunImmediately = false,
},
TemplateConfiguration = new AliCloud.Log.Inputs.AlertTemplateConfigurationArgs
{
Id = "sls.app.sls_ack.node.down",
Type = "sys",
Lang = "cn",
Annotations = null,
Tokens =
{
{ "interval_minute", "5" },
{ "default.action_policy", "sls.app.ack.builtin" },
{ "default.severity", "6" },
{ "sendResolved", "false" },
{ "default.project", example.Name },
{ "default.logstore", "k8s-event" },
{ "default.repeatInterval", "4h" },
{ "trigger_threshold", "1" },
{ "default.clusterId", "example-cluster-id" },
},
},
});
});
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.log.Store;
import com.pulumi.alicloud.log.StoreArgs;
import com.pulumi.alicloud.log.Alert;
import com.pulumi.alicloud.log.AlertArgs;
import com.pulumi.alicloud.log.inputs.AlertScheduleArgs;
import com.pulumi.alicloud.log.inputs.AlertTemplateConfigurationArgs;
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) {
var default_ = new Integer("default", IntegerArgs.builder()
.max(99999)
.min(10000)
.build());
var example = new Project("example", ProjectArgs.builder()
.name(String.format("terraform-example-%s", default_.result()))
.description("terraform-example")
.build());
var exampleStore = new Store("exampleStore", StoreArgs.builder()
.project(example.name())
.name("example-store")
.retentionPeriod(3650)
.shardCount(3)
.autoSplit(true)
.maxSplitShardCount(60)
.appendMeta(true)
.build());
var example_3 = new Alert("example-3", AlertArgs.builder()
.version("2.0")
.type("tpl")
.projectName(example.name())
.alertName("example-alert")
.alertDisplayname("example-alert")
.muteUntil("1632486684")
.schedule(AlertScheduleArgs.builder()
.type("FixedRate")
.interval("5m")
.hour(0)
.dayOfWeek(0)
.delay(0)
.runImmediately(false)
.build())
.templateConfiguration(AlertTemplateConfigurationArgs.builder()
.id("sls.app.sls_ack.node.down")
.type("sys")
.lang("cn")
.annotations()
.tokens(Map.ofEntries(
Map.entry("interval_minute", "5"),
Map.entry("default.action_policy", "sls.app.ack.builtin"),
Map.entry("default.severity", "6"),
Map.entry("sendResolved", "false"),
Map.entry("default.project", example.name()),
Map.entry("default.logstore", "k8s-event"),
Map.entry("default.repeatInterval", "4h"),
Map.entry("trigger_threshold", "1"),
Map.entry("default.clusterId", "example-cluster-id")
))
.build())
.build());
}
}
resources:
default:
type: random:integer
properties:
max: 99999
min: 10000
example:
type: alicloud:log:Project
properties:
name: terraform-example-${default.result}
description: terraform-example
exampleStore:
type: alicloud:log:Store
name: example
properties:
project: ${example.name}
name: example-store
retentionPeriod: 3650
shardCount: 3
autoSplit: true
maxSplitShardCount: 60
appendMeta: true
example-3:
type: alicloud:log:Alert
properties:
version: '2.0'
type: tpl
projectName: ${example.name}
alertName: example-alert
alertDisplayname: example-alert
muteUntil: '1632486684'
schedule:
type: FixedRate
interval: 5m
hour: 0
dayOfWeek: 0
delay: 0
runImmediately: false
templateConfiguration:
id: sls.app.sls_ack.node.down
type: sys
lang: cn
annotations: {}
tokens:
interval_minute: '5'
default.action_policy: sls.app.ack.builtin
default.severity: '6'
sendResolved: 'false'
default.project: ${example.name}
default.logstore: k8s-event
default.repeatInterval: 4h
trigger_threshold: '1'
default.clusterId: example-cluster-id
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,
project_name: Optional[str] = None,
alert_displayname: Optional[str] = None,
alert_name: Optional[str] = None,
notify_threshold: Optional[int] = None,
annotations: Optional[Sequence[AlertAnnotationArgs]] = None,
condition: Optional[str] = None,
dashboard: Optional[str] = None,
group_configuration: Optional[AlertGroupConfigurationArgs] = None,
join_configurations: Optional[Sequence[AlertJoinConfigurationArgs]] = None,
labels: Optional[Sequence[AlertLabelArgs]] = None,
mute_until: Optional[int] = None,
no_data_fire: Optional[bool] = None,
no_data_severity: Optional[int] = None,
notification_lists: Optional[Sequence[AlertNotificationListArgs]] = None,
alert_description: Optional[str] = None,
policy_configuration: Optional[AlertPolicyConfigurationArgs] = None,
auto_annotation: Optional[bool] = None,
query_lists: Optional[Sequence[AlertQueryListArgs]] = None,
schedule: Optional[AlertScheduleArgs] = None,
schedule_interval: Optional[str] = None,
schedule_type: Optional[str] = None,
send_resolved: Optional[bool] = None,
severity_configurations: Optional[Sequence[AlertSeverityConfigurationArgs]] = None,
template_configuration: Optional[AlertTemplateConfigurationArgs] = None,
threshold: Optional[int] = None,
throttling: Optional[str] = None,
type: Optional[str] = None,
version: 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:log: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 alertResource = new AliCloud.Log.Alert("alertResource", new()
{
ProjectName = "string",
AlertDisplayname = "string",
AlertName = "string",
Annotations = new[]
{
new AliCloud.Log.Inputs.AlertAnnotationArgs
{
Key = "string",
Value = "string",
},
},
GroupConfiguration = new AliCloud.Log.Inputs.AlertGroupConfigurationArgs
{
Type = "string",
Fields = new[]
{
"string",
},
},
JoinConfigurations = new[]
{
new AliCloud.Log.Inputs.AlertJoinConfigurationArgs
{
Condition = "string",
Type = "string",
},
},
Labels = new[]
{
new AliCloud.Log.Inputs.AlertLabelArgs
{
Key = "string",
Value = "string",
},
},
MuteUntil = 0,
NoDataFire = false,
NoDataSeverity = 0,
AlertDescription = "string",
PolicyConfiguration = new AliCloud.Log.Inputs.AlertPolicyConfigurationArgs
{
AlertPolicyId = "string",
RepeatInterval = "string",
ActionPolicyId = "string",
},
AutoAnnotation = false,
QueryLists = new[]
{
new AliCloud.Log.Inputs.AlertQueryListArgs
{
Start = "string",
End = "string",
Query = "string",
DashboardId = "string",
PowerSqlMode = "string",
Project = "string",
Region = "string",
RoleArn = "string",
ChartTitle = "string",
Store = "string",
StoreType = "string",
TimeSpanType = "string",
},
},
Schedule = new AliCloud.Log.Inputs.AlertScheduleArgs
{
Type = "string",
CronExpression = "string",
DayOfWeek = 0,
Delay = 0,
Hour = 0,
Interval = "string",
RunImmediately = false,
TimeZone = "string",
},
SendResolved = false,
SeverityConfigurations = new[]
{
new AliCloud.Log.Inputs.AlertSeverityConfigurationArgs
{
EvalCondition =
{
{ "string", "string" },
},
Severity = 0,
},
},
TemplateConfiguration = new AliCloud.Log.Inputs.AlertTemplateConfigurationArgs
{
Id = "string",
Type = "string",
Annotations =
{
{ "string", "string" },
},
Lang = "string",
Tokens =
{
{ "string", "string" },
},
},
Threshold = 0,
Type = "string",
Version = "string",
});
example, err := log.NewAlert(ctx, "alertResource", &log.AlertArgs{
ProjectName: pulumi.String("string"),
AlertDisplayname: pulumi.String("string"),
AlertName: pulumi.String("string"),
Annotations: log.AlertAnnotationArray{
&log.AlertAnnotationArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
GroupConfiguration: &log.AlertGroupConfigurationArgs{
Type: pulumi.String("string"),
Fields: pulumi.StringArray{
pulumi.String("string"),
},
},
JoinConfigurations: log.AlertJoinConfigurationArray{
&log.AlertJoinConfigurationArgs{
Condition: pulumi.String("string"),
Type: pulumi.String("string"),
},
},
Labels: log.AlertLabelArray{
&log.AlertLabelArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MuteUntil: pulumi.Int(0),
NoDataFire: pulumi.Bool(false),
NoDataSeverity: pulumi.Int(0),
AlertDescription: pulumi.String("string"),
PolicyConfiguration: &log.AlertPolicyConfigurationArgs{
AlertPolicyId: pulumi.String("string"),
RepeatInterval: pulumi.String("string"),
ActionPolicyId: pulumi.String("string"),
},
AutoAnnotation: pulumi.Bool(false),
QueryLists: log.AlertQueryListArray{
&log.AlertQueryListArgs{
Start: pulumi.String("string"),
End: pulumi.String("string"),
Query: pulumi.String("string"),
DashboardId: pulumi.String("string"),
PowerSqlMode: pulumi.String("string"),
Project: pulumi.String("string"),
Region: pulumi.String("string"),
RoleArn: pulumi.String("string"),
ChartTitle: pulumi.String("string"),
Store: pulumi.String("string"),
StoreType: pulumi.String("string"),
TimeSpanType: pulumi.String("string"),
},
},
Schedule: &log.AlertScheduleArgs{
Type: pulumi.String("string"),
CronExpression: pulumi.String("string"),
DayOfWeek: pulumi.Int(0),
Delay: pulumi.Int(0),
Hour: pulumi.Int(0),
Interval: pulumi.String("string"),
RunImmediately: pulumi.Bool(false),
TimeZone: pulumi.String("string"),
},
SendResolved: pulumi.Bool(false),
SeverityConfigurations: log.AlertSeverityConfigurationArray{
&log.AlertSeverityConfigurationArgs{
EvalCondition: pulumi.StringMap{
"string": pulumi.String("string"),
},
Severity: pulumi.Int(0),
},
},
TemplateConfiguration: &log.AlertTemplateConfigurationArgs{
Id: pulumi.String("string"),
Type: pulumi.String("string"),
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Lang: pulumi.String("string"),
Tokens: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
Threshold: pulumi.Int(0),
Type: pulumi.String("string"),
Version: pulumi.String("string"),
})
var alertResource = new Alert("alertResource", AlertArgs.builder()
.projectName("string")
.alertDisplayname("string")
.alertName("string")
.annotations(AlertAnnotationArgs.builder()
.key("string")
.value("string")
.build())
.groupConfiguration(AlertGroupConfigurationArgs.builder()
.type("string")
.fields("string")
.build())
.joinConfigurations(AlertJoinConfigurationArgs.builder()
.condition("string")
.type("string")
.build())
.labels(AlertLabelArgs.builder()
.key("string")
.value("string")
.build())
.muteUntil(0)
.noDataFire(false)
.noDataSeverity(0)
.alertDescription("string")
.policyConfiguration(AlertPolicyConfigurationArgs.builder()
.alertPolicyId("string")
.repeatInterval("string")
.actionPolicyId("string")
.build())
.autoAnnotation(false)
.queryLists(AlertQueryListArgs.builder()
.start("string")
.end("string")
.query("string")
.dashboardId("string")
.powerSqlMode("string")
.project("string")
.region("string")
.roleArn("string")
.chartTitle("string")
.store("string")
.storeType("string")
.timeSpanType("string")
.build())
.schedule(AlertScheduleArgs.builder()
.type("string")
.cronExpression("string")
.dayOfWeek(0)
.delay(0)
.hour(0)
.interval("string")
.runImmediately(false)
.timeZone("string")
.build())
.sendResolved(false)
.severityConfigurations(AlertSeverityConfigurationArgs.builder()
.evalCondition(Map.of("string", "string"))
.severity(0)
.build())
.templateConfiguration(AlertTemplateConfigurationArgs.builder()
.id("string")
.type("string")
.annotations(Map.of("string", "string"))
.lang("string")
.tokens(Map.of("string", "string"))
.build())
.threshold(0)
.type("string")
.version("string")
.build());
alert_resource = alicloud.log.Alert("alertResource",
project_name="string",
alert_displayname="string",
alert_name="string",
annotations=[alicloud.log.AlertAnnotationArgs(
key="string",
value="string",
)],
group_configuration=alicloud.log.AlertGroupConfigurationArgs(
type="string",
fields=["string"],
),
join_configurations=[alicloud.log.AlertJoinConfigurationArgs(
condition="string",
type="string",
)],
labels=[alicloud.log.AlertLabelArgs(
key="string",
value="string",
)],
mute_until=0,
no_data_fire=False,
no_data_severity=0,
alert_description="string",
policy_configuration=alicloud.log.AlertPolicyConfigurationArgs(
alert_policy_id="string",
repeat_interval="string",
action_policy_id="string",
),
auto_annotation=False,
query_lists=[alicloud.log.AlertQueryListArgs(
start="string",
end="string",
query="string",
dashboard_id="string",
power_sql_mode="string",
project="string",
region="string",
role_arn="string",
chart_title="string",
store="string",
store_type="string",
time_span_type="string",
)],
schedule=alicloud.log.AlertScheduleArgs(
type="string",
cron_expression="string",
day_of_week=0,
delay=0,
hour=0,
interval="string",
run_immediately=False,
time_zone="string",
),
send_resolved=False,
severity_configurations=[alicloud.log.AlertSeverityConfigurationArgs(
eval_condition={
"string": "string",
},
severity=0,
)],
template_configuration=alicloud.log.AlertTemplateConfigurationArgs(
id="string",
type="string",
annotations={
"string": "string",
},
lang="string",
tokens={
"string": "string",
},
),
threshold=0,
type="string",
version="string")
const alertResource = new alicloud.log.Alert("alertResource", {
projectName: "string",
alertDisplayname: "string",
alertName: "string",
annotations: [{
key: "string",
value: "string",
}],
groupConfiguration: {
type: "string",
fields: ["string"],
},
joinConfigurations: [{
condition: "string",
type: "string",
}],
labels: [{
key: "string",
value: "string",
}],
muteUntil: 0,
noDataFire: false,
noDataSeverity: 0,
alertDescription: "string",
policyConfiguration: {
alertPolicyId: "string",
repeatInterval: "string",
actionPolicyId: "string",
},
autoAnnotation: false,
queryLists: [{
start: "string",
end: "string",
query: "string",
dashboardId: "string",
powerSqlMode: "string",
project: "string",
region: "string",
roleArn: "string",
chartTitle: "string",
store: "string",
storeType: "string",
timeSpanType: "string",
}],
schedule: {
type: "string",
cronExpression: "string",
dayOfWeek: 0,
delay: 0,
hour: 0,
interval: "string",
runImmediately: false,
timeZone: "string",
},
sendResolved: false,
severityConfigurations: [{
evalCondition: {
string: "string",
},
severity: 0,
}],
templateConfiguration: {
id: "string",
type: "string",
annotations: {
string: "string",
},
lang: "string",
tokens: {
string: "string",
},
},
threshold: 0,
type: "string",
version: "string",
});
type: alicloud:log:Alert
properties:
alertDescription: string
alertDisplayname: string
alertName: string
annotations:
- key: string
value: string
autoAnnotation: false
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
projectName: 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
schedule:
cronExpression: string
dayOfWeek: 0
delay: 0
hour: 0
interval: string
runImmediately: false
timeZone: string
type: string
sendResolved: false
severityConfigurations:
- evalCondition:
string: string
severity: 0
templateConfiguration:
annotations:
string: string
id: string
lang: string
tokens:
string: string
type: string
threshold: 0
type: string
version: string
Alert Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Alert resource accepts the following input properties:
- Alert
Displayname string - Alert displayname.
- Alert
Name string - Name of logstore for configuring alarm service.
- Project
Name string - The project name.
- Alert
Description string - Alert description.
- Annotations
List<Pulumi.
Ali Cloud. Log. Inputs. Alert Annotation> - Annotations for new alert.
- Auto
Annotation bool - whether to add automatic annotation, default is false.
- Condition string
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- Dashboard string
- Group
Configuration Pulumi.Ali Cloud. Log. Inputs. Alert Group Configuration - Group configuration for new alert.
- Join
Configurations List<Pulumi.Ali Cloud. Log. Inputs. Alert Join Configuration> - Join configuration for different queries.
- Labels
List<Pulumi.
Ali Cloud. Log. Inputs. Alert Label> - Labels for new alert.
- Mute
Until int - Timestamp, notifications before closing again.
- No
Data boolFire - Switch for whether new alert fires when no data happens, default is false.
- No
Data intSeverity - when no data happens, the severity of new alert.
- Notification
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Notification List> - Alarm information notification list, Deprecated from 1.161.0+.
- Notify
Threshold int - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- Policy
Configuration Pulumi.Ali Cloud. Log. Inputs. Alert Policy Configuration - Policy configuration for new alert.
- Query
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Query List> - Multiple conditions for configured alarm query.
- Schedule
Pulumi.
Ali Cloud. Log. Inputs. Alert Schedule - schedule for alert.
- Schedule
Interval string - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- Schedule
Type string - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- Send
Resolved bool - when new alert is resolved, whether to notify, default is false.
- Severity
Configurations List<Pulumi.Ali Cloud. Log. Inputs. Alert Severity Configuration> - Severity configuration for new alert.
- Template
Configuration Pulumi.Ali Cloud. Log. Inputs. Alert Template Configuration - Template configuration for alert, when
type
istpl
. - Threshold int
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- Throttling string
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- Type string
- The type of new alert,
default
for custom alert,tpl
for template alert. - Version string
- The version of alert, new alert is 2.0.
- Alert
Displayname string - Alert displayname.
- Alert
Name string - Name of logstore for configuring alarm service.
- Project
Name string - The project name.
- Alert
Description string - Alert description.
- Annotations
[]Alert
Annotation Args - Annotations for new alert.
- Auto
Annotation bool - whether to add automatic annotation, default is false.
- Condition string
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- Dashboard string
- Group
Configuration AlertGroup Configuration Args - Group configuration for new alert.
- Join
Configurations []AlertJoin Configuration Args - Join configuration for different queries.
- Labels
[]Alert
Label Args - Labels for new alert.
- Mute
Until int - Timestamp, notifications before closing again.
- No
Data boolFire - Switch for whether new alert fires when no data happens, default is false.
- No
Data intSeverity - when no data happens, the severity of new alert.
- Notification
Lists []AlertNotification List Args - Alarm information notification list, Deprecated from 1.161.0+.
- Notify
Threshold int - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- Policy
Configuration AlertPolicy Configuration Args - Policy configuration for new alert.
- Query
Lists []AlertQuery List Args - Multiple conditions for configured alarm query.
- Schedule
Alert
Schedule Args - schedule for alert.
- Schedule
Interval string - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- Schedule
Type string - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- Send
Resolved bool - when new alert is resolved, whether to notify, default is false.
- Severity
Configurations []AlertSeverity Configuration Args - Severity configuration for new alert.
- Template
Configuration AlertTemplate Configuration Args - Template configuration for alert, when
type
istpl
. - Threshold int
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- Throttling string
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- Type string
- The type of new alert,
default
for custom alert,tpl
for template alert. - Version string
- The version of alert, new alert is 2.0.
- alert
Displayname String - Alert displayname.
- alert
Name String - Name of logstore for configuring alarm service.
- project
Name String - The project name.
- alert
Description String - Alert description.
- annotations
List<Alert
Annotation> - Annotations for new alert.
- auto
Annotation Boolean - whether to add automatic annotation, default is false.
- condition String
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard String
- group
Configuration AlertGroup Configuration - Group configuration for new alert.
- join
Configurations List<AlertJoin Configuration> - Join configuration for different queries.
- labels
List<Alert
Label> - Labels for new alert.
- mute
Until Integer - Timestamp, notifications before closing again.
- no
Data BooleanFire - Switch for whether new alert fires when no data happens, default is false.
- no
Data IntegerSeverity - when no data happens, the severity of new alert.
- notification
Lists List<AlertNotification List> - Alarm information notification list, Deprecated from 1.161.0+.
- notify
Threshold Integer - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy
Configuration AlertPolicy Configuration - Policy configuration for new alert.
- query
Lists List<AlertQuery List> - Multiple conditions for configured alarm query.
- schedule
Alert
Schedule - schedule for alert.
- schedule
Interval String - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule
Type String - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send
Resolved Boolean - when new alert is resolved, whether to notify, default is false.
- severity
Configurations List<AlertSeverity Configuration> - Severity configuration for new alert.
- template
Configuration AlertTemplate Configuration - Template configuration for alert, when
type
istpl
. - threshold Integer
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling String
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type String
- The type of new alert,
default
for custom alert,tpl
for template alert. - version String
- The version of alert, new alert is 2.0.
- alert
Displayname string - Alert displayname.
- alert
Name string - Name of logstore for configuring alarm service.
- project
Name string - The project name.
- alert
Description string - Alert description.
- annotations
Alert
Annotation[] - Annotations for new alert.
- auto
Annotation boolean - whether to add automatic annotation, default is false.
- condition string
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard string
- group
Configuration AlertGroup Configuration - Group configuration for new alert.
- join
Configurations AlertJoin Configuration[] - Join configuration for different queries.
- labels
Alert
Label[] - Labels for new alert.
- mute
Until number - Timestamp, notifications before closing again.
- no
Data booleanFire - Switch for whether new alert fires when no data happens, default is false.
- no
Data numberSeverity - when no data happens, the severity of new alert.
- notification
Lists AlertNotification List[] - Alarm information notification list, Deprecated from 1.161.0+.
- notify
Threshold number - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy
Configuration AlertPolicy Configuration - Policy configuration for new alert.
- query
Lists AlertQuery List[] - Multiple conditions for configured alarm query.
- schedule
Alert
Schedule - schedule for alert.
- schedule
Interval string - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule
Type string - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send
Resolved boolean - when new alert is resolved, whether to notify, default is false.
- severity
Configurations AlertSeverity Configuration[] - Severity configuration for new alert.
- template
Configuration AlertTemplate Configuration - Template configuration for alert, when
type
istpl
. - threshold number
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling string
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type string
- The type of new alert,
default
for custom alert,tpl
for template alert. - version string
- The version of alert, new alert is 2.0.
- alert_
displayname str - Alert displayname.
- alert_
name str - Name of logstore for configuring alarm service.
- project_
name str - The project name.
- alert_
description str - Alert description.
- annotations
Sequence[Alert
Annotation Args] - Annotations for new alert.
- auto_
annotation bool - whether to add automatic annotation, default is false.
- condition str
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard str
- group_
configuration AlertGroup Configuration Args - Group configuration for new alert.
- join_
configurations Sequence[AlertJoin Configuration Args] - Join configuration for different queries.
- labels
Sequence[Alert
Label Args] - Labels for new alert.
- mute_
until int - Timestamp, notifications before closing again.
- no_
data_ boolfire - Switch for whether new alert fires when no data happens, default is false.
- no_
data_ intseverity - when no data happens, the severity of new alert.
- notification_
lists Sequence[AlertNotification List Args] - Alarm information notification list, Deprecated from 1.161.0+.
- notify_
threshold int - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy_
configuration AlertPolicy Configuration Args - Policy configuration for new alert.
- query_
lists Sequence[AlertQuery List Args] - Multiple conditions for configured alarm query.
- schedule
Alert
Schedule Args - schedule for alert.
- schedule_
interval str - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule_
type str - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send_
resolved bool - when new alert is resolved, whether to notify, default is false.
- severity_
configurations Sequence[AlertSeverity Configuration Args] - Severity configuration for new alert.
- template_
configuration AlertTemplate Configuration Args - Template configuration for alert, when
type
istpl
. - threshold int
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling str
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type str
- The type of new alert,
default
for custom alert,tpl
for template alert. - version str
- The version of alert, new alert is 2.0.
- alert
Displayname String - Alert displayname.
- alert
Name String - Name of logstore for configuring alarm service.
- project
Name String - The project name.
- alert
Description String - Alert description.
- annotations List<Property Map>
- Annotations for new alert.
- auto
Annotation Boolean - whether to add automatic annotation, default is false.
- condition String
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard String
- group
Configuration Property Map - Group configuration for new alert.
- join
Configurations List<Property Map> - Join configuration for different queries.
- labels List<Property Map>
- Labels for new alert.
- mute
Until Number - Timestamp, notifications before closing again.
- no
Data BooleanFire - Switch for whether new alert fires when no data happens, default is false.
- no
Data NumberSeverity - when no data happens, the severity of new alert.
- notification
Lists List<Property Map> - Alarm information notification list, Deprecated from 1.161.0+.
- notify
Threshold Number - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy
Configuration Property Map - Policy configuration for new alert.
- query
Lists List<Property Map> - Multiple conditions for configured alarm query.
- schedule Property Map
- schedule for alert.
- schedule
Interval String - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule
Type String - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send
Resolved Boolean - when new alert is resolved, whether to notify, default is false.
- severity
Configurations List<Property Map> - Severity configuration for new alert.
- template
Configuration Property Map - Template configuration for alert, when
type
istpl
. - threshold Number
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling String
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type String
- The type of new alert,
default
for custom alert,tpl
for template alert. - version String
- The version of alert, new alert is 2.0.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alert resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- 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_description: Optional[str] = None,
alert_displayname: Optional[str] = None,
alert_name: Optional[str] = None,
annotations: Optional[Sequence[AlertAnnotationArgs]] = None,
auto_annotation: Optional[bool] = None,
condition: Optional[str] = None,
dashboard: Optional[str] = None,
group_configuration: Optional[AlertGroupConfigurationArgs] = None,
join_configurations: Optional[Sequence[AlertJoinConfigurationArgs]] = None,
labels: Optional[Sequence[AlertLabelArgs]] = None,
mute_until: Optional[int] = None,
no_data_fire: Optional[bool] = None,
no_data_severity: Optional[int] = None,
notification_lists: Optional[Sequence[AlertNotificationListArgs]] = None,
notify_threshold: Optional[int] = None,
policy_configuration: Optional[AlertPolicyConfigurationArgs] = None,
project_name: Optional[str] = None,
query_lists: Optional[Sequence[AlertQueryListArgs]] = None,
schedule: Optional[AlertScheduleArgs] = None,
schedule_interval: Optional[str] = None,
schedule_type: Optional[str] = None,
send_resolved: Optional[bool] = None,
severity_configurations: Optional[Sequence[AlertSeverityConfigurationArgs]] = None,
template_configuration: Optional[AlertTemplateConfigurationArgs] = None,
threshold: Optional[int] = None,
throttling: Optional[str] = None,
type: Optional[str] = None,
version: 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
Description string - Alert description.
- Alert
Displayname string - Alert displayname.
- Alert
Name string - Name of logstore for configuring alarm service.
- Annotations
List<Pulumi.
Ali Cloud. Log. Inputs. Alert Annotation> - Annotations for new alert.
- Auto
Annotation bool - whether to add automatic annotation, default is false.
- Condition string
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- Dashboard string
- Group
Configuration Pulumi.Ali Cloud. Log. Inputs. Alert Group Configuration - Group configuration for new alert.
- Join
Configurations List<Pulumi.Ali Cloud. Log. Inputs. Alert Join Configuration> - Join configuration for different queries.
- Labels
List<Pulumi.
Ali Cloud. Log. Inputs. Alert Label> - Labels for new alert.
- Mute
Until int - Timestamp, notifications before closing again.
- No
Data boolFire - Switch for whether new alert fires when no data happens, default is false.
- No
Data intSeverity - when no data happens, the severity of new alert.
- Notification
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Notification List> - Alarm information notification list, Deprecated from 1.161.0+.
- Notify
Threshold int - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- Policy
Configuration Pulumi.Ali Cloud. Log. Inputs. Alert Policy Configuration - Policy configuration for new alert.
- Project
Name string - The project name.
- Query
Lists List<Pulumi.Ali Cloud. Log. Inputs. Alert Query List> - Multiple conditions for configured alarm query.
- Schedule
Pulumi.
Ali Cloud. Log. Inputs. Alert Schedule - schedule for alert.
- Schedule
Interval string - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- Schedule
Type string - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- Send
Resolved bool - when new alert is resolved, whether to notify, default is false.
- Severity
Configurations List<Pulumi.Ali Cloud. Log. Inputs. Alert Severity Configuration> - Severity configuration for new alert.
- Template
Configuration Pulumi.Ali Cloud. Log. Inputs. Alert Template Configuration - Template configuration for alert, when
type
istpl
. - Threshold int
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- Throttling string
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- Type string
- The type of new alert,
default
for custom alert,tpl
for template alert. - Version string
- The version of alert, new alert is 2.0.
- Alert
Description string - Alert description.
- Alert
Displayname string - Alert displayname.
- Alert
Name string - Name of logstore for configuring alarm service.
- Annotations
[]Alert
Annotation Args - Annotations for new alert.
- Auto
Annotation bool - whether to add automatic annotation, default is false.
- Condition string
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- Dashboard string
- Group
Configuration AlertGroup Configuration Args - Group configuration for new alert.
- Join
Configurations []AlertJoin Configuration Args - Join configuration for different queries.
- Labels
[]Alert
Label Args - Labels for new alert.
- Mute
Until int - Timestamp, notifications before closing again.
- No
Data boolFire - Switch for whether new alert fires when no data happens, default is false.
- No
Data intSeverity - when no data happens, the severity of new alert.
- Notification
Lists []AlertNotification List Args - Alarm information notification list, Deprecated from 1.161.0+.
- Notify
Threshold int - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- Policy
Configuration AlertPolicy Configuration Args - Policy configuration for new alert.
- Project
Name string - The project name.
- Query
Lists []AlertQuery List Args - Multiple conditions for configured alarm query.
- Schedule
Alert
Schedule Args - schedule for alert.
- Schedule
Interval string - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- Schedule
Type string - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- Send
Resolved bool - when new alert is resolved, whether to notify, default is false.
- Severity
Configurations []AlertSeverity Configuration Args - Severity configuration for new alert.
- Template
Configuration AlertTemplate Configuration Args - Template configuration for alert, when
type
istpl
. - Threshold int
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- Throttling string
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- Type string
- The type of new alert,
default
for custom alert,tpl
for template alert. - Version string
- The version of alert, new alert is 2.0.
- alert
Description String - Alert description.
- alert
Displayname String - Alert displayname.
- alert
Name String - Name of logstore for configuring alarm service.
- annotations
List<Alert
Annotation> - Annotations for new alert.
- auto
Annotation Boolean - whether to add automatic annotation, default is false.
- condition String
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard String
- group
Configuration AlertGroup Configuration - Group configuration for new alert.
- join
Configurations List<AlertJoin Configuration> - Join configuration for different queries.
- labels
List<Alert
Label> - Labels for new alert.
- mute
Until Integer - Timestamp, notifications before closing again.
- no
Data BooleanFire - Switch for whether new alert fires when no data happens, default is false.
- no
Data IntegerSeverity - when no data happens, the severity of new alert.
- notification
Lists List<AlertNotification List> - Alarm information notification list, Deprecated from 1.161.0+.
- notify
Threshold Integer - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy
Configuration AlertPolicy Configuration - Policy configuration for new alert.
- project
Name String - The project name.
- query
Lists List<AlertQuery List> - Multiple conditions for configured alarm query.
- schedule
Alert
Schedule - schedule for alert.
- schedule
Interval String - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule
Type String - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send
Resolved Boolean - when new alert is resolved, whether to notify, default is false.
- severity
Configurations List<AlertSeverity Configuration> - Severity configuration for new alert.
- template
Configuration AlertTemplate Configuration - Template configuration for alert, when
type
istpl
. - threshold Integer
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling String
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type String
- The type of new alert,
default
for custom alert,tpl
for template alert. - version String
- The version of alert, new alert is 2.0.
- alert
Description string - Alert description.
- alert
Displayname string - Alert displayname.
- alert
Name string - Name of logstore for configuring alarm service.
- annotations
Alert
Annotation[] - Annotations for new alert.
- auto
Annotation boolean - whether to add automatic annotation, default is false.
- condition string
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard string
- group
Configuration AlertGroup Configuration - Group configuration for new alert.
- join
Configurations AlertJoin Configuration[] - Join configuration for different queries.
- labels
Alert
Label[] - Labels for new alert.
- mute
Until number - Timestamp, notifications before closing again.
- no
Data booleanFire - Switch for whether new alert fires when no data happens, default is false.
- no
Data numberSeverity - when no data happens, the severity of new alert.
- notification
Lists AlertNotification List[] - Alarm information notification list, Deprecated from 1.161.0+.
- notify
Threshold number - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy
Configuration AlertPolicy Configuration - Policy configuration for new alert.
- project
Name string - The project name.
- query
Lists AlertQuery List[] - Multiple conditions for configured alarm query.
- schedule
Alert
Schedule - schedule for alert.
- schedule
Interval string - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule
Type string - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send
Resolved boolean - when new alert is resolved, whether to notify, default is false.
- severity
Configurations AlertSeverity Configuration[] - Severity configuration for new alert.
- template
Configuration AlertTemplate Configuration - Template configuration for alert, when
type
istpl
. - threshold number
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling string
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type string
- The type of new alert,
default
for custom alert,tpl
for template alert. - version string
- The version of alert, new alert is 2.0.
- alert_
description str - Alert description.
- alert_
displayname str - Alert displayname.
- alert_
name str - Name of logstore for configuring alarm service.
- annotations
Sequence[Alert
Annotation Args] - Annotations for new alert.
- auto_
annotation bool - whether to add automatic annotation, default is false.
- condition str
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard str
- group_
configuration AlertGroup Configuration Args - Group configuration for new alert.
- join_
configurations Sequence[AlertJoin Configuration Args] - Join configuration for different queries.
- labels
Sequence[Alert
Label Args] - Labels for new alert.
- mute_
until int - Timestamp, notifications before closing again.
- no_
data_ boolfire - Switch for whether new alert fires when no data happens, default is false.
- no_
data_ intseverity - when no data happens, the severity of new alert.
- notification_
lists Sequence[AlertNotification List Args] - Alarm information notification list, Deprecated from 1.161.0+.
- notify_
threshold int - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy_
configuration AlertPolicy Configuration Args - Policy configuration for new alert.
- project_
name str - The project name.
- query_
lists Sequence[AlertQuery List Args] - Multiple conditions for configured alarm query.
- schedule
Alert
Schedule Args - schedule for alert.
- schedule_
interval str - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule_
type str - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send_
resolved bool - when new alert is resolved, whether to notify, default is false.
- severity_
configurations Sequence[AlertSeverity Configuration Args] - Severity configuration for new alert.
- template_
configuration AlertTemplate Configuration Args - Template configuration for alert, when
type
istpl
. - threshold int
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling str
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type str
- The type of new alert,
default
for custom alert,tpl
for template alert. - version str
- The version of alert, new alert is 2.0.
- alert
Description String - Alert description.
- alert
Displayname String - Alert displayname.
- alert
Name String - Name of logstore for configuring alarm service.
- annotations List<Property Map>
- Annotations for new alert.
- auto
Annotation Boolean - whether to add automatic annotation, default is false.
- condition String
- Conditional expression, such as: count> 100, Deprecated from 1.161.0+.
- dashboard String
- group
Configuration Property Map - Group configuration for new alert.
- join
Configurations List<Property Map> - Join configuration for different queries.
- labels List<Property Map>
- Labels for new alert.
- mute
Until Number - Timestamp, notifications before closing again.
- no
Data BooleanFire - Switch for whether new alert fires when no data happens, default is false.
- no
Data NumberSeverity - when no data happens, the severity of new alert.
- notification
Lists List<Property Map> - Alarm information notification list, Deprecated from 1.161.0+.
- notify
Threshold Number - Notification threshold, which is not notified until the number of triggers is reached. The default is 1, Deprecated from 1.161.0+.
- policy
Configuration Property Map - Policy configuration for new alert.
- project
Name String - The project name.
- query
Lists List<Property Map> - Multiple conditions for configured alarm query.
- schedule Property Map
- schedule for alert.
- schedule
Interval String - Execution interval. 60 seconds minimum, such as 60s, 1h. Deprecated from 1.176.0+. use interval in schedule.
- schedule
Type String - Default FixedRate. No need to configure this parameter. Deprecated from 1.176.0+. use type in schedule.
- send
Resolved Boolean - when new alert is resolved, whether to notify, default is false.
- severity
Configurations List<Property Map> - Severity configuration for new alert.
- template
Configuration Property Map - Template configuration for alert, when
type
istpl
. - threshold Number
- Evaluation threshold, alert will not fire until the number of triggers is reached. The default is 1.
- throttling String
- Notification interval, default is no interval. Support number + unit type, for example 60s, 1h, Deprecated from 1.161.0+.
- type String
- The type of new alert,
default
for custom alert,tpl
for template alert. - version String
- The version of alert, new alert is 2.0.
Supporting Types
AlertAnnotation, AlertAnnotationArgs
AlertGroupConfiguration, AlertGroupConfigurationArgs
AlertJoinConfiguration, AlertJoinConfigurationArgs
AlertLabel, AlertLabelArgs
AlertNotificationList, AlertNotificationListArgs
- Content string
- Notice content of alarm.
- Type string
- Notification type. support Email, SMS, DingTalk, MessageCenter.
- Email
Lists List<string> - Email address list.
- Mobile
Lists List<string> - SMS sending mobile number.
- Service
Uri string - Request address.
- Content string
- Notice content of alarm.
- Type string
- Notification type. support Email, SMS, DingTalk, MessageCenter.
- Email
Lists []string - Email address list.
- Mobile
Lists []string - SMS sending mobile number.
- Service
Uri string - Request address.
- content String
- Notice content of alarm.
- type String
- Notification type. support Email, SMS, DingTalk, MessageCenter.
- email
Lists List<String> - Email address list.
- mobile
Lists List<String> - SMS sending mobile number.
- service
Uri String - Request address.
- content string
- Notice content of alarm.
- type string
- Notification type. support Email, SMS, DingTalk, MessageCenter.
- email
Lists string[] - Email address list.
- mobile
Lists string[] - SMS sending mobile number.
- service
Uri string - Request address.
- content str
- Notice content of alarm.
- type str
- Notification type. support Email, SMS, DingTalk, MessageCenter.
- email_
lists Sequence[str] - Email address list.
- mobile_
lists Sequence[str] - SMS sending mobile number.
- service_
uri str - Request address.
- content String
- Notice content of alarm.
- type String
- Notification type. support Email, SMS, DingTalk, MessageCenter.
- email
Lists List<String> - Email address list.
- mobile
Lists List<String> - SMS sending mobile number.
- service
Uri String - Request address.
AlertPolicyConfiguration, AlertPolicyConfigurationArgs
- Alert
Policy stringId - Alert Policy Id.
- Repeat
Interval string - Repeat interval used by alert policy, 1h, 1m.e.g.
- Action
Policy stringId - Action Policy Id.
- Alert
Policy stringId - Alert Policy Id.
- Repeat
Interval string - Repeat interval used by alert policy, 1h, 1m.e.g.
- Action
Policy stringId - Action Policy Id.
- alert
Policy StringId - Alert Policy Id.
- repeat
Interval String - Repeat interval used by alert policy, 1h, 1m.e.g.
- action
Policy StringId - Action Policy Id.
- alert
Policy stringId - Alert Policy Id.
- repeat
Interval string - Repeat interval used by alert policy, 1h, 1m.e.g.
- action
Policy stringId - Action Policy Id.
- alert_
policy_ strid - Alert Policy Id.
- repeat_
interval str - Repeat interval used by alert policy, 1h, 1m.e.g.
- action_
policy_ strid - Action Policy Id.
- alert
Policy StringId - Alert Policy Id.
- repeat
Interval String - Repeat interval used by alert policy, 1h, 1m.e.g.
- action
Policy StringId - Action Policy Id.
AlertQueryList, AlertQueryListArgs
- End string
- End time. example: 20s.
- Query string
- Query corresponding to chart. example: * AND aliyun.
- Start string
- Begin time. example: -60s.
- Chart
Title string - Chart title, optional from 1.161.0+.
- Dashboard
Id string - Query dashboard id.
- Logstore string
- Query logstore, use store for new alert, Deprecated from 1.161.0+.
- Power
Sql stringMode - default disable, whether to use power sql. support auto, enable, disable.
- Project string
- Query project.
- Region string
- Query project region.
- Role
Arn string - Query project store's ARN.
- Store string
- Query store for new alert.
- Store
Type string - Query store type for new alert, including log,metric,meta.
- Time
Span stringType - default Custom. No need to configure this parameter.
- End string
- End time. example: 20s.
- Query string
- Query corresponding to chart. example: * AND aliyun.
- Start string
- Begin time. example: -60s.
- Chart
Title string - Chart title, optional from 1.161.0+.
- Dashboard
Id string - Query dashboard id.
- Logstore string
- Query logstore, use store for new alert, Deprecated from 1.161.0+.
- Power
Sql stringMode - default disable, whether to use power sql. support auto, enable, disable.
- Project string
- Query project.
- Region string
- Query project region.
- Role
Arn string - Query project store's ARN.
- Store string
- Query store for new alert.
- Store
Type string - Query store type for new alert, including log,metric,meta.
- Time
Span stringType - default Custom. No need to configure this parameter.
- end String
- End time. example: 20s.
- query String
- Query corresponding to chart. example: * AND aliyun.
- start String
- Begin time. example: -60s.
- chart
Title String - Chart title, optional from 1.161.0+.
- dashboard
Id String - Query dashboard id.
- logstore String
- Query logstore, use store for new alert, Deprecated from 1.161.0+.
- power
Sql StringMode - default disable, whether to use power sql. support auto, enable, disable.
- project String
- Query project.
- region String
- Query project region.
- role
Arn String - Query project store's ARN.
- store String
- Query store for new alert.
- store
Type String - Query store type for new alert, including log,metric,meta.
- time
Span StringType - default Custom. No need to configure this parameter.
- end string
- End time. example: 20s.
- query string
- Query corresponding to chart. example: * AND aliyun.
- start string
- Begin time. example: -60s.
- chart
Title string - Chart title, optional from 1.161.0+.
- dashboard
Id string - Query dashboard id.
- logstore string
- Query logstore, use store for new alert, Deprecated from 1.161.0+.
- power
Sql stringMode - default disable, whether to use power sql. support auto, enable, disable.
- project string
- Query project.
- region string
- Query project region.
- role
Arn string - Query project store's ARN.
- store string
- Query store for new alert.
- store
Type string - Query store type for new alert, including log,metric,meta.
- time
Span stringType - default Custom. No need to configure this parameter.
- end str
- End time. example: 20s.
- query str
- Query corresponding to chart. example: * AND aliyun.
- start str
- Begin time. example: -60s.
- chart_
title str - Chart title, optional from 1.161.0+.
- dashboard_
id str - Query dashboard id.
- logstore str
- Query logstore, use store for new alert, Deprecated from 1.161.0+.
- power_
sql_ strmode - default disable, whether to use power sql. support auto, enable, disable.
- project str
- Query project.
- region str
- Query project region.
- role_
arn str - Query project store's ARN.
- store str
- Query store for new alert.
- store_
type str - Query store type for new alert, including log,metric,meta.
- time_
span_ strtype - default Custom. No need to configure this parameter.
- end String
- End time. example: 20s.
- query String
- Query corresponding to chart. example: * AND aliyun.
- start String
- Begin time. example: -60s.
- chart
Title String - Chart title, optional from 1.161.0+.
- dashboard
Id String - Query dashboard id.
- logstore String
- Query logstore, use store for new alert, Deprecated from 1.161.0+.
- power
Sql StringMode - default disable, whether to use power sql. support auto, enable, disable.
- project String
- Query project.
- region String
- Query project region.
- role
Arn String - Query project store's ARN.
- store String
- Query store for new alert.
- store
Type String - Query store type for new alert, including log,metric,meta.
- time
Span StringType - default Custom. No need to configure this parameter.
AlertSchedule, AlertScheduleArgs
- Type string
- including FixedRate,Hourly,Daily,Weekly,Cron.
- Cron
Expression string - Cron expression when type is Cron.
- Day
Of intWeek - Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
- Delay int
- Hour int
- Hour of day when type is Weekly/Daily.
- Interval string
- Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
- Run
Immediately bool - Time
Zone string - Time zone for schedule.
- Type string
- including FixedRate,Hourly,Daily,Weekly,Cron.
- Cron
Expression string - Cron expression when type is Cron.
- Day
Of intWeek - Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
- Delay int
- Hour int
- Hour of day when type is Weekly/Daily.
- Interval string
- Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
- Run
Immediately bool - Time
Zone string - Time zone for schedule.
- type String
- including FixedRate,Hourly,Daily,Weekly,Cron.
- cron
Expression String - Cron expression when type is Cron.
- day
Of IntegerWeek - Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
- delay Integer
- hour Integer
- Hour of day when type is Weekly/Daily.
- interval String
- Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
- run
Immediately Boolean - time
Zone String - Time zone for schedule.
- type string
- including FixedRate,Hourly,Daily,Weekly,Cron.
- cron
Expression string - Cron expression when type is Cron.
- day
Of numberWeek - Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
- delay number
- hour number
- Hour of day when type is Weekly/Daily.
- interval string
- Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
- run
Immediately boolean - time
Zone string - Time zone for schedule.
- type str
- including FixedRate,Hourly,Daily,Weekly,Cron.
- cron_
expression str - Cron expression when type is Cron.
- day_
of_ intweek - Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
- delay int
- hour int
- Hour of day when type is Weekly/Daily.
- interval str
- Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
- run_
immediately bool - time_
zone str - Time zone for schedule.
- type String
- including FixedRate,Hourly,Daily,Weekly,Cron.
- cron
Expression String - Cron expression when type is Cron.
- day
Of NumberWeek - Day of week when type is Weekly, including 0,1,2,3,4,5,6, 0 for Sunday, 1 for Monday
- delay Number
- hour Number
- Hour of day when type is Weekly/Daily.
- interval String
- Execution interval. 60 seconds minimum, such as 60s, 1h. used when type is FixedRate.
- run
Immediately Boolean - time
Zone String - Time zone for schedule.
AlertSeverityConfiguration, AlertSeverityConfigurationArgs
- Eval
Condition Dictionary<string, string> - Severity when this condition is met.
- Severity int
- Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
- Eval
Condition map[string]string - Severity when this condition is met.
- Severity int
- Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
- eval
Condition Map<String,String> - Severity when this condition is met.
- severity Integer
- Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
- eval
Condition {[key: string]: string} - Severity when this condition is met.
- severity number
- Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
- eval_
condition Mapping[str, str] - Severity when this condition is met.
- severity int
- Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
- eval
Condition Map<String> - Severity when this condition is met.
- severity Number
- Severity for new alert, including 2,4,6,8,10 for Report,Low,Medium,High,Critical.
AlertTemplateConfiguration, AlertTemplateConfigurationArgs
- Id string
- Alert template id.
- Type string
- Alert template type including
sys
,user
. - Annotations Dictionary<string, string>
- Alert template annotations.
- Lang string
- Alert template language including
cn
,en
. - Tokens Dictionary<string, string>
- Alert template tokens.
- Id string
- Alert template id.
- Type string
- Alert template type including
sys
,user
. - Annotations map[string]string
- Alert template annotations.
- Lang string
- Alert template language including
cn
,en
. - Tokens map[string]string
- Alert template tokens.
- id String
- Alert template id.
- type String
- Alert template type including
sys
,user
. - annotations Map<String,String>
- Alert template annotations.
- lang String
- Alert template language including
cn
,en
. - tokens Map<String,String>
- Alert template tokens.
- id string
- Alert template id.
- type string
- Alert template type including
sys
,user
. - annotations {[key: string]: string}
- Alert template annotations.
- lang string
- Alert template language including
cn
,en
. - tokens {[key: string]: string}
- Alert template tokens.
- id str
- Alert template id.
- type str
- Alert template type including
sys
,user
. - annotations Mapping[str, str]
- Alert template annotations.
- lang str
- Alert template language including
cn
,en
. - tokens Mapping[str, str]
- Alert template tokens.
- id String
- Alert template id.
- type String
- Alert template type including
sys
,user
. - annotations Map<String>
- Alert template annotations.
- lang String
- Alert template language including
cn
,en
. - tokens Map<String>
- Alert template tokens.
Import
Log alert can be imported using the id, e.g.
$ pulumi import alicloud:log/alert:Alert example tf-log:tf-log-alert
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.