public static final class DescribeMetricLastRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
DescribeMetricLastRequest |
build() |
DescribeMetricLastRequest.Builder |
dimensions(String dimensions)
The monitoring dimensions of the specified resource.
|
DescribeMetricLastRequest.Builder |
endTime(String endTime)
The end of the time range to query monitoring data.
|
DescribeMetricLastRequest.Builder |
express(String express)
The expression that is used to calculate the query results in real time.
|
DescribeMetricLastRequest.Builder |
length(String length)
The number of entries per page.
|
DescribeMetricLastRequest.Builder |
metricName(String metricName)
The metric that is used to monitor the cloud service.
|
DescribeMetricLastRequest.Builder |
namespace(String namespace)
The namespace of the cloud service.
|
DescribeMetricLastRequest.Builder |
nextToken(String nextToken)
The pagination token.
|
DescribeMetricLastRequest.Builder |
period(String period)
The statistical period of the monitoring data.
|
DescribeMetricLastRequest.Builder |
startTime(String startTime)
The start of the time range to query monitoring data.
|
public DescribeMetricLastRequest.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****"}.
example:You can query a maximum of 50 instances in each request.
[{"instanceId":"i-abcdefgh12****"}]
public DescribeMetricLastRequest.Builder endTime(String endTime)
The end of the time range to query monitoring data.
2019-01-31 10:10:00
public DescribeMetricLastRequest.Builder express(String express)
The expression that is used to calculate the query results in real time.
example:{"groupby":["userId","instanceId"]}
public DescribeMetricLastRequest.Builder length(String length)
The number of entries per page.
Default value: 1000. This value indicates that a maximum of 1,000 entries of monitoring data can be returned on each page.
example:The maximum value of the Length parameter for each request is 1440.
1000
public DescribeMetricLastRequest.Builder metricName(String metricName)
The metric that is used to monitor the cloud service.
For more information about metric names, see Appendix 1: Metrics.
This parameter is required.
example:CPUUtilization
public DescribeMetricLastRequest.Builder namespace(String namespace)
The namespace of the cloud service.
For more information about the namespaces of cloud services, see Appendix 1: Metrics.
This parameter is required.
example:acs_ecs_dashboard
public DescribeMetricLastRequest.Builder nextToken(String nextToken)
The pagination token.
15761432850009dd70bb64cff1f0fff6c0b08ffff073be5fb1e785e2b020f7fed9b5e137bd810a6d6cff5ae****
public DescribeMetricLastRequest.Builder period(String period)
The statistical period of the monitoring data.
Valid values: 15, 60, 900, and 3600.
Unit: seconds.
MetricName) varies for each cloud service. The statistical period of metrics is displayed in the MinPeriods column on the Metrics page for each cloud service. For more information, see Appendix 1: Metrics.60
public DescribeMetricLastRequest.Builder startTime(String startTime)
The start of the time range to query monitoring data.
example:2019-01-31 10:00:00
public DescribeMetricLastRequest build()
Copyright © 2026. All rights reserved.