alicloud_arms_alert_contact
更新时间:
Provides a Application Real-Time Monitoring Service (ARMS) Alert Contact resource.
For information about Application Real-Time Monitoring Service (ARMS) Alert Contact and how to use it, see What is Alert Contact.
-> NOTE: Available since v1.129.0.
Example Usage
Basic Usage
resource "alicloud_arms_alert_contact" "example" {
alert_contact_name = "example_value"
ding_robot_webhook_url = "https://oapi.dingtalk.com/robot/send?access_token=91f2f6****"
email = "someone@example.com"
phone_num = "1381111****"
}
Argument Reference
The following arguments are supported:
alert_contact_name
- (Optional) The name of the alert contact.ding_robot_webhook_url
- (Optional) The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.email
- (Optional) The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.phone_num
- (Optional) The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.system_noc
- (Optional) Specifies whether the alert contact receives system notifications. Valid values: true: receives system notifications. false: does not receive system notifications.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Alert Contact.
Import
Application Real-Time Monitoring Service (ARMS) Alert Contact can be imported using the id, e.g.
$ terraform import alicloud_arms_alert_contact.example <id>
文档内容是否对您有帮助?