public static class PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpression
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList> |
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.
|
| 构造器和说明 |
|---|
PutResourceMetricRuleRequestCompositeExpression() |
@NameInMap(value="ExpressionList") public List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList> 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`.
* `||`: If one of the metrics meets the trigger conditions, an alert is triggered.
@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 generated even 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.
* Limits 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 PutResourceMetricRuleRequestCompositeExpression()
public static PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpression build(Map<String,?> map) throws Exception
Exceptionpublic PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpression setExpressionList(List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList> expressionList)
public List<PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList> getExpressionList()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpression setExpressionListJoin(String expressionListJoin)
public String getExpressionListJoin()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpression setExpressionRaw(String expressionRaw)
public String getExpressionRaw()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpression setLevel(String level)
public String getLevel()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpression setTimes(Integer times)
public Integer getTimes()
Copyright © 2024. All rights reserved.