public static final class DescribeMetricRuleListResponseBody.ExpressionList.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeMetricRuleListResponseBody.ExpressionList |
build() |
DescribeMetricRuleListResponseBody.ExpressionList.Builder |
comparisonOperator(String comparisonOperator)
The operator that is used to compare the metric value with the threshold.
|
DescribeMetricRuleListResponseBody.ExpressionList.Builder |
metricName(String metricName)
The metric that is used to monitor the cloud service.
|
DescribeMetricRuleListResponseBody.ExpressionList.Builder |
period(Integer period)
The aggregation period of the metric.
|
DescribeMetricRuleListResponseBody.ExpressionList.Builder |
statistics(String statistics)
The statistical method of the metric.
|
DescribeMetricRuleListResponseBody.ExpressionList.Builder |
threshold(String threshold)
The alert threshold.
|
public DescribeMetricRuleListResponseBody.ExpressionList.Builder comparisonOperator(String comparisonOperator)
* GreaterThanOrEqualToThreshold: greater than or equal to the threshold * GreaterThanThreshold: greater than the threshold * LessThanOrEqualToThreshold: less than or equal to the threshold * LessThanThreshold: less than the threshold * NotEqualToThreshold: not equal to the threshold * GreaterThanYesterday: greater than the metric value at the same time yesterday * LessThanYesterday: less than the metric value at the same time yesterday * GreaterThanLastWeek: greater than the metric value at the same time last week * LessThanLastWeek: less than the metric value at the same time last week * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle * LessThanLastPeriod: less than the metric value in the last monitoring cycle
public DescribeMetricRuleListResponseBody.ExpressionList.Builder metricName(String metricName)
public DescribeMetricRuleListResponseBody.ExpressionList.Builder period(Integer period)
Unit: seconds.
public DescribeMetricRuleListResponseBody.ExpressionList.Builder statistics(String statistics)
* $Maximum: the maximum value * $Minimum: the minimum value * $Average: the average value * $Availability: the availability rate (usually used for site monitoring) > `$` is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Appendix 1: Metrics](~~163515~~).
public DescribeMetricRuleListResponseBody.ExpressionList.Builder threshold(String threshold)
public DescribeMetricRuleListResponseBody.ExpressionList build()
Copyright © 2023. All rights reserved.