public static final class DescribeMetricRuleListResponseBody.CompositeExpression.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeMetricRuleListResponseBody.CompositeExpression |
build() |
DescribeMetricRuleListResponseBody.CompositeExpression.Builder |
expressionList(DescribeMetricRuleListResponseBody.CompositeExpressionExpressionList expressionList)
The trigger conditions that are created in standard mode.
|
DescribeMetricRuleListResponseBody.CompositeExpression.Builder |
expressionListJoin(String expressionListJoin)
The relationship between the trigger conditions for multiple metrics.
|
DescribeMetricRuleListResponseBody.CompositeExpression.Builder |
expressionRaw(String expressionRaw)
The trigger conditions that are created by using expressions.
|
DescribeMetricRuleListResponseBody.CompositeExpression.Builder |
level(String level)
The level of the alert.
|
DescribeMetricRuleListResponseBody.CompositeExpression.Builder |
times(Integer times)
The number of consecutive triggers.
|
public DescribeMetricRuleListResponseBody.CompositeExpression.Builder expressionList(DescribeMetricRuleListResponseBody.CompositeExpressionExpressionList expressionList)
public DescribeMetricRuleListResponseBody.CompositeExpression.Builder expressionListJoin(String expressionListJoin)
* `&&`: An alert is triggered only if all metrics meet the trigger conditions. An alert is triggered only if the results of all expressions specified in the ExpressionList parameter are `true`. * `||`: An alert is triggered if one of the metrics meets the trigger conditions.
public DescribeMetricRuleListResponseBody.CompositeExpression.Builder expressionRaw(String expressionRaw)
* Set an alert blacklist for specific resources. For example, if you specify `$instanceId != \"i-io8kfvcpp7x5****\" ``&&`` $Average > 50`, no alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 50. * Set a special alert threshold for a specified instance in the rule. For example, if you specify `$Average > ($instanceId == \"i-io8kfvcpp7x5****\"? 80: 50)`, an alert is triggered when the `average metric value` of the `i-io8kfvcpp7x5****` instance exceeds 80 or the `average metric value` of other instances exceeds 50. * Limit the number of instances whose metric values exceed the threshold. For example, if you specify `count($Average > 20) > 3`, an alert is triggered only when the number of instances whose `average metric value` exceeds 20 exceeds three.
public DescribeMetricRuleListResponseBody.CompositeExpression.Builder level(String level)
* Critical * Warn * Info
public DescribeMetricRuleListResponseBody.CompositeExpression.Builder times(Integer times)
public DescribeMetricRuleListResponseBody.CompositeExpression build()
Copyright © 2023. All rights reserved.