public static final class PutResourceMetricRuleRequest.ExpressionList.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
PutResourceMetricRuleRequest.ExpressionList |
build() |
PutResourceMetricRuleRequest.ExpressionList.Builder |
comparisonOperator(String comparisonOperator)
The operator that is used to compare the metric value with the threshold.
|
PutResourceMetricRuleRequest.ExpressionList.Builder |
metricName(String metricName)
The metric that is used to monitor the cloud service.
|
PutResourceMetricRuleRequest.ExpressionList.Builder |
period(Long period)
The aggregation period of the metric.
|
PutResourceMetricRuleRequest.ExpressionList.Builder |
statistics(String statistics)
The statistical method of the metric.
|
PutResourceMetricRuleRequest.ExpressionList.Builder |
threshold(String threshold)
The alert threshold.
|
public PutResourceMetricRuleRequest.ExpressionList.Builder comparisonOperator(String comparisonOperator)
The operator that is used to compare the metric value with the threshold. Valid value:
GreaterThanOrEqualToThreshold
public PutResourceMetricRuleRequest.ExpressionList.Builder metricName(String metricName)
The metric that is used to monitor the cloud service.
example:cpu_total
public PutResourceMetricRuleRequest.ExpressionList.Builder period(Long period)
The aggregation period of the metric.
Unit: seconds.
example:60
public PutResourceMetricRuleRequest.ExpressionList.Builder statistics(String statistics)
The statistical method of the metric. Valid value:
example:
$is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see Appendix 1: Metrics.
$Maximum
public PutResourceMetricRuleRequest.ExpressionList.Builder threshold(String threshold)
The alert threshold.
example:90
public PutResourceMetricRuleRequest.ExpressionList build()
Copyright © 2026. All rights reserved.