public static final class PutResourceMetricRuleRequest.Warn.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
PutResourceMetricRuleRequest.Warn |
build() |
PutResourceMetricRuleRequest.Warn.Builder |
comparisonOperator(String comparisonOperator)
The operator that is used to compare the metric value with the threshold for Warn-level alerts.
|
PutResourceMetricRuleRequest.Warn.Builder |
statistics(String statistics)
The statistical methods for Warn-level alerts.
|
PutResourceMetricRuleRequest.Warn.Builder |
threshold(String threshold)
The threshold for Warn-level alerts.
|
PutResourceMetricRuleRequest.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 PutResourceMetricRuleRequest.Warn.Builder comparisonOperator(String comparisonOperator)
The operator that is used to compare the metric value with the threshold for Warn-level alerts. Valid value:
example:You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
GreaterThanOrEqualToThreshold
public PutResourceMetricRuleRequest.Warn.Builder statistics(String statistics)
The statistical methods for Warn-level alerts.
The value of this parameter is determined by the Statistics column corresponding to the MetricName parameter of the specified cloud service. The value of this parameter can be Maximum, Minimum, or Average. For more information about how to obtain the value of this parameter, see Appendix 1: Metrics.
example:You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
Average
public PutResourceMetricRuleRequest.Warn.Builder threshold(String threshold)
The threshold for Warn-level alerts.
example:You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
90
public PutResourceMetricRuleRequest.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:You must select at least one of the Critical, Warn, and Info alert levels and specify the Statistics, ComparisonOperator, Threshold, and Times parameters for each alert level.
3
public PutResourceMetricRuleRequest.Warn build()
Copyright © 2026. All rights reserved.