public class CreateOrUpdateIMRobotRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
cardTemplate
The configurations of the alert card template.
|
Boolean |
dailyNoc
Specifies whether to send daily statistics.
|
String |
dailyNocTime
The points in time at which the daily statistics are sent.
|
String |
dingSignKey
The signature key of DingTalk.
|
Boolean |
enableOutgoing
Specifies whether to enable the Outgoing feature.
|
String |
robotAddress
The webhook URL of the IM chatbot.
|
Long |
robotId
The ID of the IM chatbot.
|
String |
robotName
The name of the IM chatbot.
|
String |
token
The token required to enable the Outgoing feature.
|
String |
type
The type of the IM chatbot.
|
| 构造器和说明 |
|---|
CreateOrUpdateIMRobotRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateOrUpdateIMRobotRequest |
build(Map<String,?> map) |
String |
getCardTemplate() |
Boolean |
getDailyNoc() |
String |
getDailyNocTime() |
String |
getDingSignKey() |
Boolean |
getEnableOutgoing() |
String |
getRobotAddress() |
Long |
getRobotId() |
String |
getRobotName() |
String |
getToken() |
String |
getType() |
CreateOrUpdateIMRobotRequest |
setCardTemplate(String cardTemplate) |
CreateOrUpdateIMRobotRequest |
setDailyNoc(Boolean dailyNoc) |
CreateOrUpdateIMRobotRequest |
setDailyNocTime(String dailyNocTime) |
CreateOrUpdateIMRobotRequest |
setDingSignKey(String dingSignKey) |
CreateOrUpdateIMRobotRequest |
setEnableOutgoing(Boolean enableOutgoing) |
CreateOrUpdateIMRobotRequest |
setRobotAddress(String robotAddress) |
CreateOrUpdateIMRobotRequest |
setRobotId(Long robotId) |
CreateOrUpdateIMRobotRequest |
setRobotName(String robotName) |
CreateOrUpdateIMRobotRequest |
setToken(String token) |
CreateOrUpdateIMRobotRequest |
setType(String type) |
@NameInMap(value="CardTemplate") public String cardTemplate
The configurations of the alert card template. For more information about the parameters in the template, see the following section.
example:{ "button": [ "claim", "close", "follow", "send_itsm", "block", "unResolvedIncident" ], "field": [ { "fieldName": "alarmName", "visible": true }, { "fieldName": "notificationPolicy", "visible": true }, { "fieldName": "alarmContent", "visible": true }, { "fieldName": "alarmTime", "visible": true }, { "fieldName": "seriesChart", "visible": true }, { "fieldName": "includeEvent", "visible": true }, { "fieldName": "assigned", "visible": true }, { "fieldName": "similarAlarm", "visible": true }, { "fieldName": "operator", "visible": true } ] }
@NameInMap(value="DailyNoc") public Boolean dailyNoc
Specifies whether to send daily statistics. Valid values:
false (default): Daily statistics are not sent.true: Daily statistics are sent. If you set the value to true, the DailyNocTime parameter is required.true
@NameInMap(value="DailyNocTime") public String dailyNocTime
The points in time at which the daily statistics are sent. Separate multiple points in time with commas (,). The points in time are in the HH:SS format. The information that ARMS sends at the specified points in time includes the total number of alerts generated on the current day, the number of cleared alerts, and the number of alerts to be cleared.
example:09:30,17:00
@NameInMap(value="DingSignKey") public String dingSignKey
The signature key of DingTalk. If you specify a signature key, DingTalk authentication is performed by using the signature key. If you do not specify a signature key, a whitelist is used for authentication by default. The keyword of the whitelist is Alert.
example:@NameInMap(value="EnableOutgoing") public Boolean enableOutgoing
Specifies whether to enable the Outgoing feature.
example:true
@NameInMap(value="RobotAddress") public String robotAddress
The webhook URL of the IM chatbot.
This parameter is required.
example:https://oapi.dingtalk.com/robot/send?access_token=e1a049121******
@NameInMap(value="RobotId") public Long robotId
The ID of the IM chatbot.
example:If you do not specify the parameter, a new IM chatbot is created.
123
@NameInMap(value="RobotName") public String robotName
The name of the IM chatbot.
This parameter is required.
example:Chatbot name
@NameInMap(value="Token") public String token
The token required to enable the Outgoing feature.
example:1656558719183be1245ab44********
@NameInMap(value="Type") public String type
The type of the IM chatbot. Valid values:
dingding: DingTalk chatbotwechat: WeCom chatbotdingding
public static CreateOrUpdateIMRobotRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateOrUpdateIMRobotRequest setCardTemplate(String cardTemplate)
public String getCardTemplate()
public CreateOrUpdateIMRobotRequest setDailyNoc(Boolean dailyNoc)
public Boolean getDailyNoc()
public CreateOrUpdateIMRobotRequest setDailyNocTime(String dailyNocTime)
public String getDailyNocTime()
public CreateOrUpdateIMRobotRequest setDingSignKey(String dingSignKey)
public String getDingSignKey()
public CreateOrUpdateIMRobotRequest setEnableOutgoing(Boolean enableOutgoing)
public Boolean getEnableOutgoing()
public CreateOrUpdateIMRobotRequest setRobotAddress(String robotAddress)
public String getRobotAddress()
public CreateOrUpdateIMRobotRequest setRobotId(Long robotId)
public Long getRobotId()
public CreateOrUpdateIMRobotRequest setRobotName(String robotName)
public String getRobotName()
public CreateOrUpdateIMRobotRequest setToken(String token)
public String getToken()
public CreateOrUpdateIMRobotRequest setType(String type)
public String getType()
Copyright © 2024. All rights reserved.