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)
* 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.Info.Builder preCondition(String preCondition)
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. > $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.
public DescribeMetricRuleListResponseBody.Info.Builder statistics(String statistics)
public DescribeMetricRuleListResponseBody.Info.Builder threshold(String threshold)
public DescribeMetricRuleListResponseBody.Info.Builder times(Integer times)
public DescribeMetricRuleListResponseBody.Info build()
Copyright © 2023. All rights reserved.