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
The instance tag.
|
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: 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
@NameInMap(value="Expression") public String expression
The description of the alert rule.
> The content of the alert rule. If the metric value meets the alert condition, an alert is triggered.
@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:
* &&: If all metrics meet the alert conditions, CloudMonitor sends alert notifications.
* ||: If one of the metrics meets the alert conditions, CloudMonitor sends alert notifications.
@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 Integer level
The severity level and notification methods of the alert. Valid values:
* 4: Alert notifications are sent by using emails and DingTalk chatbots.
* OK: No alert is generated.
@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
The instance tag.
@NameInMap(value="Threshold") public String threshold
The alert threshold.
@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.
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 © 2024. All rights reserved.