terraform-modules/terraform-alicloud-landing-zone-actiontrail-event-alert/cis_at_cfw_patch_off.tf (25 lines of code) (raw):
resource "alicloud_log_alert" "cis_at_cfw_patch_off" {
count = contains(var.enabled_alerts, "cis.at.cfw_patch_off") ? 1 : 0
version = "2.0"
type = "tpl"
project_name = var.project_name
alert_name = "cis_at_cfw_patch_off"
alert_displayname = var.lang == "en-US" ? "Alert of Turning off of Cloudfirewall Virtual Patch" : "云防火墙虚拟补丁关闭告警"
schedule {
type = "FixedRate"
interval = "15m"
}
template_configuration {
id = "sls.app.actiontrail.cis.at.cfw_patch_off"
type = "sys"
lang = var.lang == "en-US" ? "en" : "cn"
tokens = {
"default.project" = var.project_name
"default.logstore" = var.log_store
"default.action_policy" = var.action_policy_id
}
}
depends_on = [
alicloud_log_resource_record.action_policy
]
}