public class ImportAppAlertRulesRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ImportAppAlertRulesRequest.ImportAppAlertRulesRequestTags |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
contactGroupIds
The IDs of the alert contact groups.
|
Boolean |
isAutoStart
Specifies whether to enable the alert rule after it is created.
|
String |
pids
The process identifiers (PIDs) of the applications associated with the alert rule.
|
String |
regionId
The ID of the region where the associated applications reside.
|
List<ImportAppAlertRulesRequest.ImportAppAlertRulesRequestTags> |
tags
The list of tags.
|
String |
templageAlertConfig
The configurations of the alert template based on which you want to create an alert rule.
|
String |
templateAlertId
The ID of the alert template.
|
| 构造器和说明 |
|---|
ImportAppAlertRulesRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ImportAppAlertRulesRequest |
build(Map<String,?> map) |
String |
getContactGroupIds() |
Boolean |
getIsAutoStart() |
String |
getPids() |
String |
getRegionId() |
List<ImportAppAlertRulesRequest.ImportAppAlertRulesRequestTags> |
getTags() |
String |
getTemplageAlertConfig() |
String |
getTemplateAlertId() |
ImportAppAlertRulesRequest |
setContactGroupIds(String contactGroupIds) |
ImportAppAlertRulesRequest |
setIsAutoStart(Boolean isAutoStart) |
ImportAppAlertRulesRequest |
setPids(String pids) |
ImportAppAlertRulesRequest |
setRegionId(String regionId) |
ImportAppAlertRulesRequest |
setTags(List<ImportAppAlertRulesRequest.ImportAppAlertRulesRequestTags> tags) |
ImportAppAlertRulesRequest |
setTemplageAlertConfig(String templageAlertConfig) |
ImportAppAlertRulesRequest |
setTemplateAlertId(String templateAlertId) |
@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="Pids") public String pids
The process identifiers (PIDs) of the applications associated with the alert rule. The value must be a JSON array. For more information about how to obtain the PID, see Obtain the PID of an application.
This parameter is required.
example:["atc889zkcf@d8deedfa9bfxxxx", "acd129bfcf@d5daebfa6cdxxxx"]
@NameInMap(value="RegionId") public String regionId
The ID of the region where the associated applications reside.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="Tags") public List<ImportAppAlertRulesRequest.ImportAppAlertRulesRequestTags> tags
The list of tags.
@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.
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 " } ]
@NameInMap(value="TemplateAlertId") public String templateAlertId
The ID of the alert template. You must set at least one of the TemplateAlertId and TemplageAlertConfig parameters. If you set both parameters, the TemplateAlertId parameter prevails.
example:324324234
public static ImportAppAlertRulesRequest build(Map<String,?> map) throws Exception
Exceptionpublic ImportAppAlertRulesRequest setContactGroupIds(String contactGroupIds)
public String getContactGroupIds()
public ImportAppAlertRulesRequest setIsAutoStart(Boolean isAutoStart)
public Boolean getIsAutoStart()
public ImportAppAlertRulesRequest setPids(String pids)
public String getPids()
public ImportAppAlertRulesRequest setRegionId(String regionId)
public String getRegionId()
public ImportAppAlertRulesRequest setTags(List<ImportAppAlertRulesRequest.ImportAppAlertRulesRequestTags> tags)
public List<ImportAppAlertRulesRequest.ImportAppAlertRulesRequestTags> getTags()
public ImportAppAlertRulesRequest setTemplageAlertConfig(String templageAlertConfig)
public String getTemplageAlertConfig()
public ImportAppAlertRulesRequest setTemplateAlertId(String templateAlertId)
public String getTemplateAlertId()
Copyright © 2024. All rights reserved.