public static final class DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder extends Object
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder actionEnable(String actionEnable)
Indicates whether the alert rule is enabled. Valid values:
true
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder alarmActions(String alarmActions)
The alert contact group to which alert notifications are sent.
example:CloudMonitor
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder comparisonOperator(String comparisonOperator)
The operator that is used to compare the metric value with the threshold in the alert rule. Valid values:
>=><=<=!=GreaterThanYesterday
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder dimensions(String dimensions)
The dimension of the alert rule.
example:[{"taskId": "cc641dff-c19d-45f3-ad0a-818a0c4f****" }]
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder evaluationCount(String evaluationCount)
The consecutive number of times for which the metric value meets the alert condition before an alert is triggered.
example:3
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder expression(String expression)
The expression that is used to trigger alerts.
example:$Availability=30
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder level(String level)
The alert severity. Valid values:
2
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder metricName(String metricName)
The metric name.
example:Availability
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder namespace(String namespace)
The namespace of the cloud service.
The value is in the following format: acs_service name.
example:acs_networkmonitor
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder okActions(String okActions)
The alert contact group that receives alert notifications.
example:[ "CloudMonitor"]
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder period(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
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder ruleId(String ruleId)
The ID of the alert rule.
example:bf071ae_7b7aec3817b0fdf****
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder ruleName(String ruleName)
The name of the alert rule.
example:rule1
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder stateValue(String stateValue)
The alert status. Valid values:
OK
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder statistics(String statistics)
The statistical method of the alert rule. Valid values:
Availability
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder threshold(String threshold)
The alert threshold.
example:30
public DescribeSiteMonitorAttributeResponseBody.MetricRule build()
Copyright © 2026. All rights reserved.