public class UpdateAlertRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Long |
alertId
The ID of the alert rule.
|
String |
contactGroupIds
The IDs of the alert contact groups.
|
Boolean |
isAutoStart
Specifies whether to enable the alert rule after it is created.
|
String |
regionId
The ID of the region.
|
String |
templageAlertConfig
The configurations of the alert template based on which you want to create an alert rule.
|
| 构造器和说明 |
|---|
UpdateAlertRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static UpdateAlertRuleRequest |
build(Map<String,?> map) |
Long |
getAlertId() |
String |
getContactGroupIds() |
Boolean |
getIsAutoStart() |
String |
getRegionId() |
String |
getTemplageAlertConfig() |
UpdateAlertRuleRequest |
setAlertId(Long alertId) |
UpdateAlertRuleRequest |
setContactGroupIds(String contactGroupIds) |
UpdateAlertRuleRequest |
setIsAutoStart(Boolean isAutoStart) |
UpdateAlertRuleRequest |
setRegionId(String regionId) |
UpdateAlertRuleRequest |
setTemplageAlertConfig(String templageAlertConfig) |
@NameInMap(value="AlertId") public Long alertId
The ID of the alert rule.
This parameter is required.
example:1234567
@NameInMap(value="ContactGroupIds") public String contactGroupIds
The IDs of the alert contact groups. The value must be a JSON array.
example:[123, 234]
@NameInMap(value="IsAutoStart") public Boolean isAutoStart
Specifies whether to enable the alert rule after it is created. Default value: false.
true: enables the alert rule.false: disables the alert rule.true
@NameInMap(value="RegionId") public String regionId
The ID of the region.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="TemplageAlertConfig") public String templageAlertConfig
The configurations of the alert template based on which you want to create an alert rule. The value must be a JSON string. You must set at least one of the TemplateAlertId and TemplageAlertConfig parameters. If you set both parameters, the TemplateAlertId parameter prevails. For more information about the TemplageAlertConfig parameter, see the following additional information about the TemplageAlertConfig parameter.
This parameter is required.
example:[ { "contactGroupIds": "381", "alertType": 5, "alarmContext": { "subTitle": "", "content": "Alarm name: $alarm name\nFilter condition: $filter\nAlarm time : $Alarm time\nAlarm content: $Alarm content\nNote: Before the recovery email is received, the alarm is in continuous alarm, and you will be reminded again after 24 hours!" }, "alertLevel": "WARN", " metricParam": { "appId": "70901", "pid": "atc889zkcf@d8deedfa9bf****", "type": "TXN", "dimensions": [ { "type": "STATIC", "value ": "\\/hello_test_api_address\\/test1", "key": "rpc" } ] }, "alertWay": [ "SMS", "MAIL", "DING_ROBOT" ], "alertRule": { "rules" : [ { "measure": "appstat.txn.rt", "alias": "Entry call response time_ms", "aggregates": "AVG", "nValue": 1, "value": 1, "operator ": "CURRENT_GTE" } ], "operator": "|" }, "title": "Alarm template alarm name", "config": "{\"continuous\":false,\"dataRevision\":2, \"ownerId\":\"123412341234\"}", "notice": { "noticeStartTime": 1480521600000, "startTime": 1480521600000, "endTime": 1480607940000, "noticeEndTime": 1480607940000 }, "stat us": "NON " } ]
public static UpdateAlertRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic UpdateAlertRuleRequest setAlertId(Long alertId)
public Long getAlertId()
public UpdateAlertRuleRequest setContactGroupIds(String contactGroupIds)
public String getContactGroupIds()
public UpdateAlertRuleRequest setIsAutoStart(Boolean isAutoStart)
public Boolean getIsAutoStart()
public UpdateAlertRuleRequest setRegionId(String regionId)
public String getRegionId()
public UpdateAlertRuleRequest setTemplageAlertConfig(String templageAlertConfig)
public String getTemplageAlertConfig()
Copyright © 2024. All rights reserved.