Using this data source can init SLS Alert resources automatically.
For information about SLS Alert and how to use it, see SLS Alert Overview
data "alicloud_log_alert_resource" "example_user" {
type = "user"
lang = "cn"
}
The following arguments are supported:
type
- (Required) The type of alert resources, must be user or project, 'user' for init aliyuncloud account's alert center resource, including project named sls-alert-{uid}-{region} and some dashboards; 'project' for init project's alert resource, including logstore named internal-alert-history and alert dashboard.lang
- (Optional) The lang of alert center resource when type is user.project
- (Optional) The project of alert resource when type is project.