public class CreateAlertContactRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
contactName
The name of the alert contact.
|
String |
dingRobotWebhookUrl
The webhook URL of the DingTalk chatbot.
|
String |
email
The email address of the alert contact.
|
String |
phoneNum
The mobile number of the alert contact.
|
String |
regionId
The ID of the region.
|
String |
resourceGroupId
The ID of the resource group.
|
Boolean |
systemNoc
Specifies whether the alert contact receives system notifications.
|
| 构造器和说明 |
|---|
CreateAlertContactRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateAlertContactRequest |
build(Map<String,?> map) |
String |
getContactName() |
String |
getDingRobotWebhookUrl() |
String |
getEmail() |
String |
getPhoneNum() |
String |
getRegionId() |
String |
getResourceGroupId() |
Boolean |
getSystemNoc() |
CreateAlertContactRequest |
setContactName(String contactName) |
CreateAlertContactRequest |
setDingRobotWebhookUrl(String dingRobotWebhookUrl) |
CreateAlertContactRequest |
setEmail(String email) |
CreateAlertContactRequest |
setPhoneNum(String phoneNum) |
CreateAlertContactRequest |
setRegionId(String regionId) |
CreateAlertContactRequest |
setResourceGroupId(String resourceGroupId) |
CreateAlertContactRequest |
setSystemNoc(Boolean systemNoc) |
@NameInMap(value="ContactName") public String contactName
The name of the alert contact.
example:JohnDoe
@NameInMap(value="DingRobotWebhookUrl") public String dingRobotWebhookUrl
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. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
example:Enter
alertin the custom keyword field of DingTalk chatbot security settings.
https://oapi.dingtalk.com/robot/send?access_token=91f2f6****
@NameInMap(value="Email") public String email
The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
example:@NameInMap(value="PhoneNum") public String phoneNum
The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.
example:1381111****
@NameInMap(value="RegionId") public String regionId
The ID of the region. Set the value to cn-hangzhou.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group. You can obtain the resource group ID in the Resource Management console.
example:rg-aek2eq4peca****
@NameInMap(value="SystemNoc") public Boolean systemNoc
Specifies whether the alert contact receives system notifications. Valid values:
true: The alert contact receives system notifications.false: The alert contact does not receive system notifications.true
public static CreateAlertContactRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateAlertContactRequest setContactName(String contactName)
public String getContactName()
public CreateAlertContactRequest setDingRobotWebhookUrl(String dingRobotWebhookUrl)
public String getDingRobotWebhookUrl()
public CreateAlertContactRequest setEmail(String email)
public String getEmail()
public CreateAlertContactRequest setPhoneNum(String phoneNum)
public String getPhoneNum()
public CreateAlertContactRequest setRegionId(String regionId)
public String getRegionId()
public CreateAlertContactRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateAlertContactRequest setSystemNoc(Boolean systemNoc)
public Boolean getSystemNoc()
Copyright © 2024. All rights reserved.