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)
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 DescribeMetricListRequest.Builder endTime(String endTime)
* 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
public DescribeMetricListRequest.Builder express(String express)
> Only the groupby expression is supported. This expression is similar to the GROUP BY statement that is used in databases.
public DescribeMetricListRequest.Builder length(String length)
> The maximum value of the Length parameter in a request is 1440.
public DescribeMetricListRequest.Builder metricName(String metricName)
For more information about metric names, see [Appendix 1: Metrics](~~163515~~).
public DescribeMetricListRequest.Builder namespace(String namespace)
For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).
public DescribeMetricListRequest.Builder nextToken(String nextToken)
> 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.
public DescribeMetricListRequest.Builder period(String period)
Valid values: 60, 300, and 900. Unit: seconds. > Configure this parameter based on your business scenario.
public DescribeMetricListRequest.Builder startTime(String startTime)
* 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 > The specified period includes the end time and excludes the start time. The start time must be earlier than the end time.
public DescribeMetricListRequest build()
Copyright © 2024. All rights reserved.