public static class ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
category
The abbreviation of the cloud service name.
|
ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations |
escalations |
String |
metricName
The metric name.
|
String |
namespace
The namespace of the cloud service.
|
Integer |
period
The statistical period of the monitoring data.
|
String |
ruleName
The name of the alert rule.
|
String |
selector
The dimension of the alert.
|
String |
webhook
The callback URL.
|
| 构造器和说明 |
|---|
ModifyMetricRuleTemplateRequestAlertTemplates() |
@NameInMap(value="Escalations") public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations escalations
@NameInMap(value="Category") public String category
The abbreviation of the cloud service name.
Valid values of N: 1 to 200.
For more information about how to obtain the abbreviation of a cloud service name, see `metricCategory` in the response parameter `Labels` of the [DescribeProjectMeta](~~114916~~) operation.
@NameInMap(value="MetricName") public String metricName
The metric name.
Valid values of N: 1 to 200.
For information about how to obtain metrics, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service.
Valid values of N: 1 to 200.
For information about how to obtain the namespace of a cloud service, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="Period") public Integer period
The statistical period of the monitoring data.
Valid values of N: 1 to 200.
> If the value is set to 300 seconds, the monitoring data is collected every 300 seconds. If the monitoring data is reported every 1 minute, the alert system calculates the average, maximum, and minimum values of the monitoring data of 5 minutes and checks whether the aggregated values exceed the threshold. To prevent unexpected alerts, we recommend that you set this parameter together with other parameters.
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule.
Valid values of N: 1 to 200.
@NameInMap(value="Selector") public String selector
The dimension of the alert. It is an extended field.
Valid values of N: 1 to 200.
For example, an alert template is applied to an application group, this parameter is set to `{"disk":"/"}`, and the MetricName parameter is set to `DiskUtilization`. In this case, the generated alert rule is applied to the root disk partition (`"/"`) of all instances in the application group to which the alert template is applied.
> For more information about the values of extended fields, see [DescribeMetricRuleTemplateAttribute](~~114979~~).
@NameInMap(value="Webhook") public String webhook
The callback URL.
Valid values of N: 1 to 200.
The callback URL must be accessible over the Internet. CloudMonitor pushes an alert notification to the specified callback URL by sending an HTTP POST request. Only the HTTP protocol is supported.
public ModifyMetricRuleTemplateRequestAlertTemplates()
public static ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates build(Map<String,?> map) throws Exception
Exceptionpublic ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setEscalations(ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations escalations)
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplatesEscalations getEscalations()
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setCategory(String category)
public String getCategory()
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setMetricName(String metricName)
public String getMetricName()
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setNamespace(String namespace)
public String getNamespace()
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setPeriod(Integer period)
public Integer getPeriod()
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setRuleName(String ruleName)
public String getRuleName()
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setSelector(String selector)
public String getSelector()
public ModifyMetricRuleTemplateRequest.ModifyMetricRuleTemplateRequestAlertTemplates setWebhook(String webhook)
public String getWebhook()
Copyright © 2024. All rights reserved.