public static class DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
comparisonOperator
The operator that is used to compare the metric value with the threshold.
|
String |
expression
The description of the alert rule.
|
DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList |
expressionList
The description of the multi-metric alert rule.
|
String |
expressionListJoin
The relationship between multiple metrics.
|
String |
expressionRaw
The trigger conditions that are created by using expressions.
|
Integer |
level
The severity level and notification methods of the alert.
|
String |
preCondition
The operator that is used to compare the metric value with the threshold.
|
String |
tag
This parameter is deprecated.
|
String |
threshold
The alert threshold.
|
Integer |
times
The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.
|
| 构造器和说明 |
|---|
DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource() |
@NameInMap(value="ComparisonOperator") public String comparisonOperator
The operator that is used to compare the metric value with the threshold. Valid values:
GreaterThanOrEqualToThreshold
@NameInMap(value="Expression") public String expression
The description of the alert rule.
example:This parameter indicates the content of the alert rule. If the metric value meets the alert condition, an alert is triggered.
$Average>=10
@NameInMap(value="ExpressionList") public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList expressionList
The description of the multi-metric alert rule.
@NameInMap(value="ExpressionListJoin") public String expressionListJoin
The relationship between multiple metrics. Valid values:
&&
@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:
$instanceId != \\"i-io8kfvcpp7x5***\*\" ``&&`` $Average > 50, no alert is triggered when the average metric value of the i-io8kfvcpp7x5**** instance exceeds 50.$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.count($Average > 20) > 3, an alert is triggered only when the average metric value of more than three instances exceeds 20.$Average > ($instanceId == \"i-io8kfvcpp7x5****\"? 80: 50)
@NameInMap(value="Level") public Integer level
The severity level and notification methods of the alert. Valid values:
3
@NameInMap(value="PreCondition") public String preCondition
The operator that is used to compare the metric value with the threshold. Valid values:
>==<=><!==
@NameInMap(value="Tag") public String tag
This parameter is deprecated.
example:mns
@NameInMap(value="Threshold") public String threshold
The alert threshold.
example:10
@NameInMap(value="Times") public Integer times
The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.
example:1
public DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource()
public static DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource build(Map<String,?> map) throws Exception
Exceptionpublic DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setComparisonOperator(String comparisonOperator)
public String getComparisonOperator()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setExpression(String expression)
public String getExpression()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setExpressionList(DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList expressionList)
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResourceExpressionList getExpressionList()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setExpressionListJoin(String expressionListJoin)
public String getExpressionListJoin()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setExpressionRaw(String expressionRaw)
public String getExpressionRaw()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setLevel(Integer level)
public Integer getLevel()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setPreCondition(String preCondition)
public String getPreCondition()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setTag(String tag)
public String getTag()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setThreshold(String threshold)
public String getThreshold()
public DescribeAlertingMetricRuleResourcesResponseBody.DescribeAlertingMetricRuleResourcesResponseBodyResourcesResourceEscalationResource setTimes(Integer times)
public Integer getTimes()
Copyright © 2026. All rights reserved.