public static final class DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeMetricRuleTemplateAttributeResponseBody.Warn |
build() |
DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder |
comparisonOperator(String comparisonOperator)
The comparison operator that is used to compare the metric value with the threshold for Warn-level alerts.
|
DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder |
statistics(String statistics)
The statistical method for Warn-level alerts.
|
DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder |
threshold(String threshold)
The threshold for Warn-level alerts.
|
DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder |
times(Integer times)
The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered.
|
public DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder comparisonOperator(String comparisonOperator)
The comparison operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid values:
GreaterThanOrEqualToThreshold
public DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder statistics(String statistics)
The statistical method for Warn-level alerts.
The value of the Statistics parameter varies with the cloud service. For more information, see Appendix 1: Metrics.
Average
public DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder threshold(String threshold)
The threshold for Warn-level alerts.
example:90
public DescribeMetricRuleTemplateAttributeResponseBody.Warn.Builder times(Integer times)
The consecutive number of times for which the metric value meets the alert condition before a Warn-level alert is triggered.
example:3
public DescribeMetricRuleTemplateAttributeResponseBody.Warn build()
Copyright © 2026. All rights reserved.