public static class DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList |
expressionList
The trigger conditions that are created in standard mode.
|
String |
expressionListJoin
The relationship between the trigger conditions for multiple metrics.
|
String |
expressionRaw
The trigger conditions that are created by using expressions.
|
String |
level
The level of the alert.
|
Integer |
times
The number of consecutive triggers.
|
| 构造器和说明 |
|---|
DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression() |
@NameInMap(value="ExpressionList") public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList expressionList
The trigger conditions that are created in standard mode.
@NameInMap(value="ExpressionListJoin") public String expressionListJoin
The relationship between the trigger conditions for multiple metrics. Valid values:
* `&&`: 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.
@NameInMap(value="ExpressionRaw") public String expressionRaw
The trigger conditions that are created by using expressions. You can use expressions to create trigger conditions in the following scenarios:
* 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.
@NameInMap(value="Level") public String level
The level of the alert. Valid values:
* Critical
* Warn
* Info
@NameInMap(value="Times") public Integer times
The number of consecutive triggers. If the number of times that the metric values meet the trigger conditions reaches the value of this parameter, CloudMonitor sends alert notifications.
public DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression()
public static DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression build(Map<String,?> map) throws Exception
Exceptionpublic DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression setExpressionList(DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList expressionList)
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpressionExpressionList getExpressionList()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression setExpressionListJoin(String expressionListJoin)
public String getExpressionListJoin()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression setExpressionRaw(String expressionRaw)
public String getExpressionRaw()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression setLevel(String level)
public String getLevel()
public DescribeMetricRuleListResponseBody.DescribeMetricRuleListResponseBodyAlarmsAlarmCompositeExpression setTimes(Integer times)
public Integer getTimes()
Copyright © 2024. All rights reserved.