public class ApplyMetricRuleTemplateRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
applyMode
The mode in which the alert template is applied.
|
Long |
enableEndTime
The end of the time period during which the alert rule is effective.
|
Long |
enableStartTime
The beginning of the time period during which the alert rule is effective.
|
Long |
groupId
The ID of the application group to which the alert template is applied.
|
Long |
notifyLevel
The alert notification method.
|
Long |
silenceTime
The mute period during which notifications are not repeatedly sent for an alert.
|
String |
templateIds
The ID of the alert template.
|
String |
webhook
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
| 构造器和说明 |
|---|
ApplyMetricRuleTemplateRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ApplyMetricRuleTemplateRequest |
build(Map<String,?> map) |
String |
getApplyMode() |
Long |
getEnableEndTime() |
Long |
getEnableStartTime() |
Long |
getGroupId() |
Long |
getNotifyLevel() |
Long |
getSilenceTime() |
String |
getTemplateIds() |
String |
getWebhook() |
ApplyMetricRuleTemplateRequest |
setApplyMode(String applyMode) |
ApplyMetricRuleTemplateRequest |
setEnableEndTime(Long enableEndTime) |
ApplyMetricRuleTemplateRequest |
setEnableStartTime(Long enableStartTime) |
ApplyMetricRuleTemplateRequest |
setGroupId(Long groupId) |
ApplyMetricRuleTemplateRequest |
setNotifyLevel(Long notifyLevel) |
ApplyMetricRuleTemplateRequest |
setSilenceTime(Long silenceTime) |
ApplyMetricRuleTemplateRequest |
setTemplateIds(String templateIds) |
ApplyMetricRuleTemplateRequest |
setWebhook(String webhook) |
@NameInMap(value="ApplyMode") public String applyMode
The mode in which the alert template is applied. Valid values:
* GROUP_INSTANCE_FIRST: The metrics in the application group take precedence. If a metric specified in the alert template does not exist in the application group, the system does not generate an alert rule for the metric based on the alert template.
* ALARM_TEMPLATE_FIRST: The metrics specified in the alert template take precedence. If a metric specified in the alert template does not exist in the application group, the system still generates an alert rule for the metric based on the alert template.
@NameInMap(value="EnableEndTime") public Long enableEndTime
The end of the time period during which the alert rule is effective. Valid values: 00 to 23. A value of 00 indicates 00:59 and a value of 23 indicates 23:59.
@NameInMap(value="EnableStartTime") public Long enableStartTime
The beginning of the time period during which the alert rule is effective. Valid values: 00 to 23. A value of 00 indicates 00:00 and a value of 23 indicates 23:00.
@NameInMap(value="GroupId") public Long groupId
The ID of the application group to which the alert template is applied.
For more information about how to query the ID of an application group, see [DescribeMonitorGroups](~~115032~~).
@NameInMap(value="NotifyLevel") public Long notifyLevel
The alert notification method. Valid values:
Set the value to 4. A value of 4 indicates that alert notifications are sent by using TradeManager and DingTalk chatbots.
@NameInMap(value="SilenceTime") public Long silenceTime
The mute period during which notifications are not repeatedly sent for an alert. Unit: seconds. Default value: 86400.
> Only one alert notification is sent during each mute period even if the metric value exceeds the alert threshold several times.
@NameInMap(value="TemplateIds") public String templateIds
The ID of the alert template.
For more information about how to query the IDs of alert templates, see [DescribeMetricRuleTemplateList](~~114982~~).
@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 ApplyMetricRuleTemplateRequest build(Map<String,?> map) throws Exception
Exceptionpublic ApplyMetricRuleTemplateRequest setApplyMode(String applyMode)
public String getApplyMode()
public ApplyMetricRuleTemplateRequest setEnableEndTime(Long enableEndTime)
public Long getEnableEndTime()
public ApplyMetricRuleTemplateRequest setEnableStartTime(Long enableStartTime)
public Long getEnableStartTime()
public ApplyMetricRuleTemplateRequest setGroupId(Long groupId)
public Long getGroupId()
public ApplyMetricRuleTemplateRequest setNotifyLevel(Long notifyLevel)
public Long getNotifyLevel()
public ApplyMetricRuleTemplateRequest setSilenceTime(Long silenceTime)
public Long getSilenceTime()
public ApplyMetricRuleTemplateRequest setTemplateIds(String templateIds)
public String getTemplateIds()
public ApplyMetricRuleTemplateRequest setWebhook(String webhook)
public String getWebhook()
Copyright © 2024. All rights reserved.