public static class CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
category
The abbreviation of the Alibaba Cloud service name.
|
CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplatesEscalations |
escalations |
String |
metricName
The name of the metric.
|
String |
namespace
The namespace of the cloud service.
|
Integer |
period
The aggregation period of monitoring data.
|
String |
ruleName
The name of the alert rule.
|
String |
selector
The extended field selectors.
|
String |
webhook
The callback URL to which a POST request is sent when an alert is triggered based on the alert rule.
|
| 构造器和说明 |
|---|
CreateMetricRuleTemplateRequestAlertTemplates() |
@NameInMap(value="Escalations") public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplatesEscalations escalations
@NameInMap(value="Category") public String category
The abbreviation of the Alibaba Cloud service name.
To obtain the abbreviation of an Alibaba Cloud service name, call the [DescribeProjectMeta](~~114916~~) operation. The `metricCategory` tag in the `Labels` response parameter indicates the abbreviation of the Alibaba Cloud service name.
@NameInMap(value="MetricName") public String metricName
The name of the metric. Valid values of N: 1 to 200.
> For more information, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~28619~~).
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service. Valid values of N: 1 to 200.
> For more information, see [DescribeMetricMetaList](~~98846~~) or [Appendix 1: Metrics](~~28619~~).
@NameInMap(value="Period") public Integer period
The aggregation period of monitoring data. Unit: seconds.
The default value is the minimum aggregation period. Generally, you do not need to specify the minimum aggregation period.
Valid values of N: 1 to 200.
@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 extended field selectors. Valid values of N: 1 to 200.
@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 CreateMetricRuleTemplateRequestAlertTemplates()
public static CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates build(Map<String,?> map) throws Exception
Exceptionpublic CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setEscalations(CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplatesEscalations escalations)
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplatesEscalations getEscalations()
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setCategory(String category)
public String getCategory()
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setMetricName(String metricName)
public String getMetricName()
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setNamespace(String namespace)
public String getNamespace()
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setPeriod(Integer period)
public Integer getPeriod()
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setRuleName(String ruleName)
public String getRuleName()
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setSelector(String selector)
public String getSelector()
public CreateMetricRuleTemplateRequest.CreateMetricRuleTemplateRequestAlertTemplates setWebhook(String webhook)
public String getWebhook()
Copyright © 2024. All rights reserved.