com.aliyun.arms20190808.models.UpdateDispatchRuleRequest Maven / Gradle / Ivy
Show all versions of arms20190808 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.arms20190808.models;
import com.aliyun.tea.*;
public class UpdateDispatchRuleRequest extends TeaModel {
/**
* The dispatch rule configuration. The value is a JSON string. For more information about this parameter, see the following additional information about the DispatchRule parameter.
* This parameter is required.
*
* example:
* { "id": 123, "system": false, "ruleid": 10282, "name": "Prometheus Alert", "labelMatchExpressionGrid": { "labelMatchExpressionGroups": [ { "labelMatchExpressions": [ { "key": "_aliyun_arms_involvedObject_kind", "value": "app", "operator": "eq" } ] } ] }, "dispatchType": "CREATE_ALERT/DISCARD_ALERT", "isRecover": true, "groupRules": [ { "groupId": 1, "groupingFields": [ "alertname" ], "groupWait": 10, "groupInterval": 15, "repeatInterval": 20 } ], "notifyRules": [ { "notifyObjects": [ { "notifyType": "ARMS_CONTACT", "name": "JohnDoe", "notifyObjectId": 1 }, { "notifyType": "ARMS_CONTACT_GROUP", "name": "JohnDoe_group", "notifyObjectId": 2 } ], "notifyChannels":["dingTalk","wechat","webhook","email"] }, ], }
*/
@NameInMap("DispatchRule")
public String dispatchRule;
/**
* The ID of the region.
* This parameter is required.
*
* example:
* cn-hangzhou
*/
@NameInMap("RegionId")
public String regionId;
public static UpdateDispatchRuleRequest build(java.util.Map map) throws Exception {
UpdateDispatchRuleRequest self = new UpdateDispatchRuleRequest();
return TeaModel.build(map, self);
}
public UpdateDispatchRuleRequest setDispatchRule(String dispatchRule) {
this.dispatchRule = dispatchRule;
return this;
}
public String getDispatchRule() {
return this.dispatchRule;
}
public UpdateDispatchRuleRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
}