public static final class DescribeMetricListRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeMetricListRequest |
build() |
DescribeMetricListRequest.Builder |
dimensions(String dimensions)
The dimensions that specify the resources whose monitoring data you want to query.
|
DescribeMetricListRequest.Builder |
endTime(String endTime)
The end of the time range to query.
|
DescribeMetricListRequest.Builder |
express(String express)
The expression that is used to compute the query results in real time.
|
DescribeMetricListRequest.Builder |
length(String length)
The number of entries to return on each page.
|
DescribeMetricListRequest.Builder |
metricName(String metricName)
The name of the metric.
|
DescribeMetricListRequest.Builder |
namespace(String namespace)
The namespace of the cloud service.
|
DescribeMetricListRequest.Builder |
nextToken(String nextToken)
The paging token.
|
DescribeMetricListRequest.Builder |
period(String period)
The interval at which the monitoring data is queried.
|
DescribeMetricListRequest.Builder |
startTime(String startTime)
The beginning of the time range to query.
|
public DescribeMetricListRequest.Builder dimensions(String dimensions)
The dimensions that specify the resources whose monitoring data you want to query.
Set the value to a collection of key-value pairs. A typical key-value pair is instanceId:i-2ze2d6j5uhg20x47****.
example:You can query a maximum of 50 instances in a single request.
[{"instanceId": "i-abcdefgh12****"}]
public DescribeMetricListRequest.Builder endTime(String endTime)
The end of the time range to query. The following formats are supported:
2019-01-30 00:10:00
public DescribeMetricListRequest.Builder express(String express)
The expression that is used to compute the query results in real time.
example:Only the groupby expression is supported. This expression is similar to the GROUP BY statement that is used in databases.
{"groupby":["userId","instanceId"]}
public DescribeMetricListRequest.Builder length(String length)
The number of entries to return on each page.
example:The maximum value of the Length parameter in a request is 1440.
1000
public DescribeMetricListRequest.Builder metricName(String metricName)
The name of the metric.
For more information about metric names, see Appendix 1: Metrics.
This parameter is required.
example:cpu_idle
public DescribeMetricListRequest.Builder namespace(String namespace)
The namespace of the cloud service. Format: acs_service name.
For more information about the namespaces of cloud services, see Appendix 1: Metrics.
This parameter is required.
example:acs_ecs_dashboard
public DescribeMetricListRequest.Builder nextToken(String nextToken)
The paging token.
example:If this parameter is not specified, the data on the first page is returned. A return value other than Null of this parameter indicates that not all entries have been returned. You can use this value as an input parameter to obtain entries on the next page. The value Null indicates that all query results have been returned.
15761485350009dd70bb64cff1f0fff750b08ffff073be5fb1e785e2b020f1a949d5ea14aea7fed82f01dd8****
public DescribeMetricListRequest.Builder period(String period)
The interval at which the monitoring data is queried.
Valid values: 60, 300, and 900.
Unit: seconds.
example:Configure this parameter based on your business scenario.
60
public DescribeMetricListRequest.Builder startTime(String startTime)
The beginning of the time range to query. The following formats are supported:
example:The specified period includes the end time and excludes the start time. The start time must be earlier than the end time.
2019-01-30 00:00:00
public DescribeMetricListRequest build()
Copyright © 2026. All rights reserved.