public static final class DescribeMetricTopRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
DescribeMetricTopRequest |
build() |
DescribeMetricTopRequest.Builder |
dimensions(String dimensions)
The dimensions that specify the resources whose monitoring data you want to query.
|
DescribeMetricTopRequest.Builder |
endTime(String endTime)
The error message.
|
DescribeMetricTopRequest.Builder |
express(String express)
The statistical period of the monitoring data.
|
DescribeMetricTopRequest.Builder |
length(String length)
The start of the time range to query monitoring data.
|
DescribeMetricTopRequest.Builder |
metricName(String metricName)
The operation that you want to perform.
|
DescribeMetricTopRequest.Builder |
namespace(String namespace)
The HTTP status code.
|
DescribeMetricTopRequest.Builder |
orderby(String orderby)
The number of entries to return on each page.
|
DescribeMetricTopRequest.Builder |
orderDesc(String orderDesc)
The statistical period of the monitoring data.
|
DescribeMetricTopRequest.Builder |
period(String period)
The field based on which data is sorted.
|
DescribeMetricTopRequest.Builder |
startTime(String startTime)
The end of the time range to query monitoring data.
|
public DescribeMetricTopRequest.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 DescribeMetricTopRequest.Builder endTime(String endTime)
public DescribeMetricTopRequest.Builder express(String express)
public DescribeMetricTopRequest.Builder length(String length)
* If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` The following examples demonstrate how to determine the period in which monitoring data is queried: * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. * If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. The following formats are supported: * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format > * You must set the `StartTime` parameter to a point in time that is later than 00:00:00 Thursday, January 1, 1970. Otherwise, this parameter is invalid. * We recommend that you use UNIX timestamps to prevent time zone-related issues.
public DescribeMetricTopRequest.Builder metricName(String metricName)
public DescribeMetricTopRequest.Builder namespace(String namespace)
> The status code 200 indicates that the call was successful.
public DescribeMetricTopRequest.Builder orderDesc(String orderDesc)
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. * Statistical periods vary based on metrics that are specified by `MetricName`. For more information, see [Appendix 1: Metrics](~~163515~~).
public DescribeMetricTopRequest.Builder orderby(String orderby)
Default value: 10. > The maximum value of the Length parameter in a request is 1440.
public DescribeMetricTopRequest.Builder period(String period)
* Average: the average value * Minimum: the minimum value * Maximum: the maximum value
public DescribeMetricTopRequest.Builder startTime(String startTime)
* If the `StartTime` and `EndTime` parameters are not specified, the monitoring data of the last statistical period is queried.`` * If the `StartTime` and `EndTime` parameters are specified, the monitoring data of the last statistical period in the specified time range is queried.```` The following examples demonstrate how to determine the period in which monitoring data is queried: * If you set the `Period` parameter to 15, the specified time range must be less than or equal to 20 minutes. For example, if you set the StartTime parameter to 2021-05-08 08:10:00 and the EndTime parameter to 2021-05-08 08:30:00, the monitoring data of the last 15 seconds in the time range is queried. * If you set the `Period` parameter to 60 or 900, the specified time range must be less than or equal to 2 hours. For example, if you set the Period parameter to 60, the StartTime parameter to 2021-05-08 08:00:00, and the EndTime parameter to 2021-05-08 10:00:00, the monitoring data of the last 60 seconds in the time range is queried. * If you set the `Period` parameter to 3600, the specified time range must be less than or equal to two days. For example, if you set the StartTime parameter to 2021-05-08 08:00:00 and the EndTime parameter to 2021-05-10 08:00:00, the monitoring data of the last 3,600 seconds in the time range is queried. The following formats are supported: * UNIX timestamp: the number of milliseconds that have elapsed since 00:00:00 Thursday, January 1, 1970 * UTC time: the UTC time that follows the YYYY-MM-DDThh:mm:ssZ format > We recommend that you use UNIX timestamps to prevent time zone-related issues.
public DescribeMetricTopRequest build()
Copyright © 2023. All rights reserved.