public static final class DescribeMetricRuleListResponseBody.Warn.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeMetricRuleListResponseBody.Warn |
build() |
DescribeMetricRuleListResponseBody.Warn.Builder |
comparisonOperator(String comparisonOperator)
The comparison operator that is used to compare the metric value with the threshold.
|
DescribeMetricRuleListResponseBody.Warn.Builder |
preCondition(String preCondition)
The additional conditions for triggering Warn-level alerts.
|
DescribeMetricRuleListResponseBody.Warn.Builder |
statistics(String statistics)
The statistical methods for Warn-level alerts.
|
DescribeMetricRuleListResponseBody.Warn.Builder |
threshold(String threshold)
The threshold for Warn-level alerts.
|
DescribeMetricRuleListResponseBody.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 DescribeMetricRuleListResponseBody.Warn.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.Warn.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.Warn.Builder statistics(String statistics)
public DescribeMetricRuleListResponseBody.Warn.Builder threshold(String threshold)
public DescribeMetricRuleListResponseBody.Warn.Builder times(Integer times)
public DescribeMetricRuleListResponseBody.Warn build()
Copyright © 2023. All rights reserved.