public static final class DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder extends Object
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder category(String category)
The abbreviation of the Alibaba Cloud service name.
example:ecs
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder escalations(DescribeMetricRuleTemplateAttributeResponseBody.Escalations escalations)
The threshold and the alert level.
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder labels(DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplateLabels labels)
The tags of the alert template.
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder metricName(String metricName)
The metric name.
example:cpu_total
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder namespace(String namespace)
The namespace of the Alibaba Cloud service.
example:acs_ecs_dashboard
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder noDataPolicy(String noDataPolicy)
The method that is used to handle alerts when no monitoring data is found. Valid values:
KEEP_LAST_STATE
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder ruleName(String ruleName)
The name of the alert rule.
example:ECS_Rule
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder selector(String selector)
The dimension of the alert. It is an extended field.
example:{"disk":"/"}
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder silenceTime(Integer silenceTime)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder webhook(String webhook)
The callback URL to which a request is sent when an alert is triggered.
example:public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate build()
Copyright © 2026. All rights reserved.