public static final class DescribeActiveMetricRuleListResponseBody.Alert.Builder extends Object
public DescribeActiveMetricRuleListResponseBody.Alert.Builder alertState(String alertState)
The status of the alert rule. Valid values:
OK
public DescribeActiveMetricRuleListResponseBody.Alert.Builder contactGroups(String contactGroups)
The alert contact group.
example:ECS_Group
public DescribeActiveMetricRuleListResponseBody.Alert.Builder dimensions(String dimensions)
The monitoring data of the specified resource.
example:""
public DescribeActiveMetricRuleListResponseBody.Alert.Builder effectiveInterval(String effectiveInterval)
The time period during which the alert rule is effective.
example:00:00-23:59
public DescribeActiveMetricRuleListResponseBody.Alert.Builder enableState(Boolean enableState)
Indicates whether the alert rule is enabled. Valid values:
true
public DescribeActiveMetricRuleListResponseBody.Alert.Builder escalations(DescribeActiveMetricRuleListResponseBody.Escalations escalations)
The conditions for triggering different levels of alerts.
public DescribeActiveMetricRuleListResponseBody.Alert.Builder mailSubject(String mailSubject)
The subject of the alert notification email.
example:ECS_Bucket
public DescribeActiveMetricRuleListResponseBody.Alert.Builder metricName(String metricName)
The name of the metric.
example:cpu_total
public DescribeActiveMetricRuleListResponseBody.Alert.Builder namespace(String namespace)
The namespace of the Alibaba Cloud service.
example:acs_ecs_dashboard
public DescribeActiveMetricRuleListResponseBody.Alert.Builder noEffectiveInterval(String noEffectiveInterval)
The time period during which the alert rule is ineffective.
example:00:00-06:00
public DescribeActiveMetricRuleListResponseBody.Alert.Builder period(String period)
The aggregation period of monitoring data.
Unit: seconds.
example:60
public DescribeActiveMetricRuleListResponseBody.Alert.Builder resources(String resources)
The resources that are associated with the alert rule.
example:[{"resource":"_ALL"}]
public DescribeActiveMetricRuleListResponseBody.Alert.Builder ruleId(String ruleId)
The ID of the alert rule.
example:ruleIdxxxx
public DescribeActiveMetricRuleListResponseBody.Alert.Builder ruleName(String ruleName)
The name of the alert rule.
example:myAlert
public DescribeActiveMetricRuleListResponseBody.Alert.Builder silenceTime(String silenceTime)
The mute period during which new alerts are not sent even if the trigger conditions are met.
Unit: seconds.
example:86400
public DescribeActiveMetricRuleListResponseBody.Alert.Builder webhook(String webhook)
The callback URL.
example:public DescribeActiveMetricRuleListResponseBody.Alert build()
Copyright © 2026. All rights reserved.