public class PutCustomEventRuleRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
contactGroups
The alert contact group that receives alert notifications.
|
String |
effectiveInterval
The time period during which the alert rule is effective.
|
String |
emailSubject
The subject of the alert notification email.
|
String |
eventName
The name of the custom event.
|
String |
groupId
The ID of the application group.
|
String |
level
The level of the alert.
|
String |
period
The cycle that is used to aggregate monitoring data of the custom event.
|
String |
ruleId
The ID of the alert rule.
|
String |
ruleName
The name of the alert rule.
|
String |
threshold
The alert threshold.
|
String |
webhook
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
| 构造器和说明 |
|---|
PutCustomEventRuleRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static PutCustomEventRuleRequest |
build(Map<String,?> map) |
String |
getContactGroups() |
String |
getEffectiveInterval() |
String |
getEmailSubject() |
String |
getEventName() |
String |
getGroupId() |
String |
getLevel() |
String |
getPeriod() |
String |
getRuleId() |
String |
getRuleName() |
String |
getThreshold() |
String |
getWebhook() |
PutCustomEventRuleRequest |
setContactGroups(String contactGroups) |
PutCustomEventRuleRequest |
setEffectiveInterval(String effectiveInterval) |
PutCustomEventRuleRequest |
setEmailSubject(String emailSubject) |
PutCustomEventRuleRequest |
setEventName(String eventName) |
PutCustomEventRuleRequest |
setGroupId(String groupId) |
PutCustomEventRuleRequest |
setLevel(String level) |
PutCustomEventRuleRequest |
setPeriod(String period) |
PutCustomEventRuleRequest |
setRuleId(String ruleId) |
PutCustomEventRuleRequest |
setRuleName(String ruleName) |
PutCustomEventRuleRequest |
setThreshold(String threshold) |
PutCustomEventRuleRequest |
setWebhook(String webhook) |
@NameInMap(value="ContactGroups") public String contactGroups
The alert contact group that receives alert notifications. Separate multiple contact groups with commas (,).
@NameInMap(value="EffectiveInterval") public String effectiveInterval
The time period during which the alert rule is effective. Valid values: 00:00 to 23:59.
@NameInMap(value="EmailSubject") public String emailSubject
The subject of the alert notification email.
@NameInMap(value="EventName") public String eventName
The name of the custom event. For more information about how to obtain the event name, see [DescribeCustomEventAttribute](~~115262~~).
@NameInMap(value="GroupId") public String groupId
The ID of the application group. For more information about how to obtain the group ID, see [DescribeCustomEventAttribute](~~115262~~).
> The value 0 indicates that the reported custom event does not belong to any application Group.
@NameInMap(value="Level") public String level
The level of the alert. Valid values:
* CRITICAL: critical issue
* WARN: warning
* INFO: information
@NameInMap(value="Period") public String period
The cycle that is used to aggregate monitoring data of the custom event. Unit: seconds. Set the value to an integral multiple of 60. Default value: 300.
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
> You can specify an existing ID to modify the corresponding alert rule or specify a new ID to create an alert rule.
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule.
@NameInMap(value="Threshold") public String threshold
The alert threshold.
@NameInMap(value="Webhook") public String webhook
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
public static PutCustomEventRuleRequest build(Map<String,?> map) throws Exception
Exceptionpublic PutCustomEventRuleRequest setContactGroups(String contactGroups)
public String getContactGroups()
public PutCustomEventRuleRequest setEffectiveInterval(String effectiveInterval)
public String getEffectiveInterval()
public PutCustomEventRuleRequest setEmailSubject(String emailSubject)
public String getEmailSubject()
public PutCustomEventRuleRequest setEventName(String eventName)
public String getEventName()
public PutCustomEventRuleRequest setGroupId(String groupId)
public String getGroupId()
public PutCustomEventRuleRequest setLevel(String level)
public String getLevel()
public PutCustomEventRuleRequest setPeriod(String period)
public String getPeriod()
public PutCustomEventRuleRequest setRuleId(String ruleId)
public String getRuleId()
public PutCustomEventRuleRequest setRuleName(String ruleName)
public String getRuleName()
public PutCustomEventRuleRequest setThreshold(String threshold)
public String getThreshold()
public PutCustomEventRuleRequest setWebhook(String webhook)
public String getWebhook()
Copyright © 2024. All rights reserved.