public static class DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
actionEnable
Indicates whether the alert rule is enabled.
|
String |
alarmActions
The alert contact group to which alert notifications are sent.
|
String |
comparisonOperator
The operator that is used to compare the metric value with the threshold in the alert rule.
|
String |
dimensions
The dimension of the alert rule.
|
String |
evaluationCount
The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.
|
String |
expression
The expression that is used to trigger alerts.
|
String |
level
The alert severity.
|
String |
metricName
The metric name.
|
String |
namespace
The namespace of the cloud service.
|
String |
okActions
The alert contact group that receives alert notifications.
|
String |
period
The time interval.
|
String |
ruleId
The ID of the alert rule.
|
String |
ruleName
The name of the alert rule.
|
String |
stateValue
The alert status.
|
String |
statistics
The statistical method of the alert rule.
|
String |
threshold
The alert threshold.
|
| 构造器和说明 |
|---|
DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule() |
@NameInMap(value="ActionEnable") public String actionEnable
Indicates whether the alert rule is enabled. Valid values:
true
@NameInMap(value="AlarmActions") public String alarmActions
The alert contact group to which alert notifications are sent.
example:CloudMonitor
@NameInMap(value="ComparisonOperator") public String comparisonOperator
The operator that is used to compare the metric value with the threshold in the alert rule. Valid values:
>=><=<=!=GreaterThanYesterday
@NameInMap(value="Dimensions") public String dimensions
The dimension of the alert rule.
example:[{"taskId": "cc641dff-c19d-45f3-ad0a-818a0c4f****" }]
@NameInMap(value="EvaluationCount") public String evaluationCount
The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.
example:3
@NameInMap(value="Expression") public String expression
The expression that is used to trigger alerts.
example:$Availability=30
@NameInMap(value="Level") public String level
The alert severity. Valid values:
2
@NameInMap(value="MetricName") public String metricName
The metric name.
example:Availability
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service.
The value is in the following format: acs_service name.
example:acs_networkmonitor
@NameInMap(value="OkActions") public String okActions
The alert contact group that receives alert notifications.
example:[ "CloudMonitor"]
@NameInMap(value="Period") public String period
The time interval. The value is the same as the interval at which metric data is reported. Unit: seconds.
example:If you specify a statistical period for the alert rule, data is queried based on the statistical period.
15s
@NameInMap(value="RuleId") public String ruleId
The ID of the alert rule.
example:bf071ae_7b7aec3817b0fdf****
@NameInMap(value="RuleName") public String ruleName
The name of the alert rule.
example:rule1
@NameInMap(value="StateValue") public String stateValue
The alert status. Valid values:
OK
@NameInMap(value="Statistics") public String statistics
The statistical method of the alert rule. Valid values:
Availability
@NameInMap(value="Threshold") public String threshold
The alert threshold.
example:30
public DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule()
public static DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule build(Map<String,?> map) throws Exception
Exceptionpublic DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setActionEnable(String actionEnable)
public String getActionEnable()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setAlarmActions(String alarmActions)
public String getAlarmActions()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setComparisonOperator(String comparisonOperator)
public String getComparisonOperator()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setDimensions(String dimensions)
public String getDimensions()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setEvaluationCount(String evaluationCount)
public String getEvaluationCount()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setExpression(String expression)
public String getExpression()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setLevel(String level)
public String getLevel()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setMetricName(String metricName)
public String getMetricName()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setNamespace(String namespace)
public String getNamespace()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setOkActions(String okActions)
public String getOkActions()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setPeriod(String period)
public String getPeriod()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setRuleId(String ruleId)
public String getRuleId()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setRuleName(String ruleName)
public String getRuleName()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setStateValue(String stateValue)
public String getStateValue()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setStatistics(String statistics)
public String getStatistics()
public DescribeSiteMonitorAttributeResponseBody.DescribeSiteMonitorAttributeResponseBodyMetricRulesMetricRule setThreshold(String threshold)
public String getThreshold()
Copyright © 2026. All rights reserved.