public static final class DescribeMetricRuleListResponseBody.Info.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeMetricRuleListResponseBody.Info |
build() |
DescribeMetricRuleListResponseBody.Info.Builder |
comparisonOperator(String comparisonOperator)
The comparison operator that is used to compare the metric value with the threshold.
|
DescribeMetricRuleListResponseBody.Info.Builder |
preCondition(String preCondition)
The additional conditions for triggering Info-level alerts.
|
DescribeMetricRuleListResponseBody.Info.Builder |
statistics(String statistics)
The statistical methods for Info-level alerts.
|
DescribeMetricRuleListResponseBody.Info.Builder |
threshold(String threshold)
The threshold for Info-level alerts.
|
DescribeMetricRuleListResponseBody.Info.Builder |
times(Integer times)
The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered.
|
public DescribeMetricRuleListResponseBody.Info.Builder comparisonOperator(String comparisonOperator)
The comparison operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
public DescribeMetricRuleListResponseBody.Info.Builder preCondition(String preCondition)
The additional conditions for triggering Info-level alerts. The additional conditions take effect when the value of the ComparisonOperator parameter is GreaterThanYesterday, LessThanYesterday, GreaterThanLastWeek, LessThanLastWeek, GreaterThanLastPeriod, or LessThanLastPeriod.
For example, the values of the PreCondition, ComparisonOperator, and Threshold parameters are set to $Average>80, GreaterThanYesterday, and 10, respectively. An alert is triggered only when the average metric value is greater than 80 and 10% greater than the average metric value at the same time yesterday.
example:$Average is a placeholder that consists of
a dollar sign ($) and the statistical method
. CloudMonitor replaces the placeholder with the aggregated value or original value before value comparison.
$Average>80
public DescribeMetricRuleListResponseBody.Info.Builder statistics(String statistics)
The statistical methods for Info-level alerts.
example:Average
public DescribeMetricRuleListResponseBody.Info.Builder threshold(String threshold)
The threshold for Info-level alerts.
example:90
public DescribeMetricRuleListResponseBody.Info.Builder times(Integer times)
The consecutive number of times for which the metric value meets the alert condition before an Info-level alert is triggered.
example:3
public DescribeMetricRuleListResponseBody.Info build()
Copyright © 2024. All rights reserved.