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)
Set the value to a collection of `key:value` pairs. Example: `{"userId":"120886317861****"}` or `{"instanceId":"i-2ze2d6j5uhg20x47****"}`. > You can query a maximum of 50 instances in each request.
public DescribeMetricLastRequest.Builder endTime(String endTime)
* For second-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and 20 minutes earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. * For minute-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and 2 hours earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time. * For hour-level data, the start time is obtained by comparing the time that is specified by the StartTime parameter and two days earlier of the time that is specified by the EndTime parameter. The earlier one of the compared points in time is used as the start time.
public DescribeMetricLastRequest.Builder express(String express)
public DescribeMetricLastRequest.Builder length(String length)
Default value: 1000. This value indicates that a maximum of 1,000 entries of monitoring data can be returned on each page. > The maximum value of the Length parameter for each request is 1440.
public DescribeMetricLastRequest.Builder metricName(String metricName)
For more information about metric names, see [Appendix 1: Metrics](~~163515~~).
public DescribeMetricLastRequest.Builder namespace(String namespace)
For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeMetricLastRequest.Builder nextToken(String nextToken)
* If the number of results exceeds the maximum number of entries allowed on a single page, a pagination token is returned. * This token can be used as an input parameter to obtain the next page of results. If all results are obtained, no token is returned.
public DescribeMetricLastRequest.Builder period(String period)
Valid values: 15, 60, 900, and 3600. Unit: seconds. > * If this parameter is not specified, monitoring data is queried based on the period in which metric values are reported. The statistical period of metrics (`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](~~163515~~).
public DescribeMetricLastRequest.Builder startTime(String startTime)
public DescribeMetricLastRequest build()
Copyright © 2024. All rights reserved.