public static final class DescribeMetricLastRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DescribeMetricLastRequest |
build() |
DescribeMetricLastRequest.Builder |
dimensions(String dimensions)
The dimensions that specify the resources whose monitoring data you want to query.
|
DescribeMetricLastRequest.Builder |
endTime(String endTime)
The error message.
|
DescribeMetricLastRequest.Builder |
express(String express)
The start of the time range to query monitoring data.
|
DescribeMetricLastRequest.Builder |
length(String length)
The namespace of the cloud service.
|
DescribeMetricLastRequest.Builder |
metricName(String metricName)
The HTTP status code.
|
DescribeMetricLastRequest.Builder |
namespace(String namespace)
The paging token.
|
DescribeMetricLastRequest.Builder |
nextToken(String nextToken)
The expression that is used to calculate the query results in real time.
|
DescribeMetricLastRequest.Builder |
period(String period)
The operation that you want to perform.
|
DescribeMetricLastRequest.Builder |
startTime(String startTime)
The end of the time range to query monitoring data.
|
public DescribeMetricLastRequest.Builder dimensions(String dimensions)
Set the value to a collection of key-value pairs. A typical key-value pair is `instanceId:i-2ze2d6j5uhg20x47****`. > You can query a maximum of 50 instances in a single request.
public DescribeMetricLastRequest.Builder endTime(String endTime)
public DescribeMetricLastRequest.Builder express(String express)
public DescribeMetricLastRequest.Builder length(String length)
For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeMetricLastRequest.Builder metricName(String metricName)
> The status code 200 indicates that the call was successful.
public DescribeMetricLastRequest.Builder namespace(String namespace)
* If the number of results exceeds the maximum number of entries allowed on a single page, a paging 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 nextToken(String nextToken)
public DescribeMetricLastRequest.Builder period(String period)
public DescribeMetricLastRequest.Builder startTime(String startTime)
* 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 build()
Copyright © 2023. All rights reserved.