alicloud_arms_alert_robot
更新时间:
Provides a Application Real-Time Monitoring Service (ARMS) Alert Robot resource.
For information about Application Real-Time Monitoring Service (ARMS) Alert Robot and how to use it, see What is Alert Robot.
-> NOTE: Available since v1.237.0.
Example Usage
Basic Usage
resource "alicloud_arms_alert_robot" "wechat" {
alert_robot_name = "example_wechat"
robot_type = "wechat"
robot_addr = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=1c704e23"
daily_noc = true
daily_noc_time = "09:30,17:00"
}
resource "alicloud_arms_alert_robot" "dingding" {
alert_robot_name = "example_dingding"
robot_type = "dingding"
robot_addr = "https://oapi.dingtalk.com/robot/send?access_token=1c704e23"
daily_noc = true
daily_noc_time = "09:30,17:00"
}
resource "alicloud_arms_alert_robot" "feishu" {
alert_robot_name = "example_feishu"
robot_type = "feishu"
robot_addr = "https://open.feishu.cn/open-apis/bot/v2/hook/a48efa01"
daily_noc = true
daily_noc_time = "09:30,17:00"
}
Argument Reference
The following arguments are supported:
alert_robot_name
- (Required) The name of the resource.robot_type
- (Required, ForceNew) The type of the robot, Valid values:wechat
,dingding
,feishu
.robot_addr
- (Required) The webhook url of the robot.daily_noc
- (Optional) Specifies whether the alert robot receives daily notifications. Valid values:true
: receives daily notifications.false
: does not receive daily notifications, default tofalse
.daily_noc_time
- (Optional) The time of the daily notification.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Alert Robot.
Import
Application Real-Time Monitoring Service (ARMS) Alert Robot can be imported using the id, e.g.
$ terraform import alicloud_arms_alert_robot.example <id>
该文章对您有帮助吗?