public static final class DescribeMetricRuleListRequest.Builder extends Object
public DescribeMetricRuleListRequest.Builder alertState(String alertState)
The status of the alert rule. Valid values:
OK
public DescribeMetricRuleListRequest.Builder dimensions(String dimensions)
The monitoring dimensions of the specified resource.
Set the value to a collection of key:value pairs. Example: {"userId":"120886317861****"} or {"instanceId":"i-2ze2d6j5uhg20x47****"}.
{"instanceId":"i-2ze2d6j5uhg20x47****"}
public DescribeMetricRuleListRequest.Builder enableState(Boolean enableState)
Specifies whether to query enabled or disabled alert rules. Valid values:
true
public DescribeMetricRuleListRequest.Builder groupId(String groupId)
The ID of the application group.
For information about how to obtain the ID of an application group, see DescribeMonitorGroups.
example:7301****
public DescribeMetricRuleListRequest.Builder metricName(String metricName)
The name of the metric.
For information about how to obtain the name of a metric, see DescribeMetricMetaList or Appendix 1: Metrics.
example:cpu_total
public DescribeMetricRuleListRequest.Builder namespace(String namespace)
The namespace of the cloud service.
For information about how to obtain the namespace of a cloud service, see DescribeMetricMetaList or Appendix 1: Metrics.
example:acs_ecs_dashboard
public DescribeMetricRuleListRequest.Builder page(Integer page)
The page number of the page to return.
Minimum value: 1. Default value: 1.
example:1
public DescribeMetricRuleListRequest.Builder pageSize(Integer pageSize)
The number of entries to return on each page.
Minimum value: 1. Default value: 10.
example:10
public DescribeMetricRuleListRequest.Builder ruleIds(String ruleIds)
The ID of the alert rule. You can specify up to 20 IDs at a time. Separate multiple IDs with commas (,).
example:applyTemplate344cfd42-0f32-4fd6-805a-88d7908a****
public DescribeMetricRuleListRequest.Builder ruleName(String ruleName)
The name of the alert rule.
This parameter supports fuzzy match.
example:Rule_01
public DescribeMetricRuleListRequest build()
Copyright © 2026. All rights reserved.