public class DescribeMetricLastRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
dimensions
The monitoring dimensions of the specified resource.
|
String |
endTime
The end of the time range to query monitoring data.
|
String |
express
The expression that is used to calculate the query results in real time.
|
String |
length
The number of entries per page.
|
String |
metricName
The metric that is used to monitor the cloud service.
|
String |
namespace
The namespace of the cloud service.
|
String |
nextToken
The pagination token.
|
String |
period
The statistical period of the monitoring data.
|
String |
regionId |
String |
startTime
The start of the time range to query monitoring data.
|
| 构造器和说明 |
|---|
DescribeMetricLastRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static DescribeMetricLastRequest |
build(Map<String,?> map) |
String |
getDimensions() |
String |
getEndTime() |
String |
getExpress() |
String |
getLength() |
String |
getMetricName() |
String |
getNamespace() |
String |
getNextToken() |
String |
getPeriod() |
String |
getRegionId() |
String |
getStartTime() |
DescribeMetricLastRequest |
setDimensions(String dimensions) |
DescribeMetricLastRequest |
setEndTime(String endTime) |
DescribeMetricLastRequest |
setExpress(String express) |
DescribeMetricLastRequest |
setLength(String length) |
DescribeMetricLastRequest |
setMetricName(String metricName) |
DescribeMetricLastRequest |
setNamespace(String namespace) |
DescribeMetricLastRequest |
setNextToken(String nextToken) |
DescribeMetricLastRequest |
setPeriod(String period) |
DescribeMetricLastRequest |
setRegionId(String regionId) |
DescribeMetricLastRequest |
setStartTime(String startTime) |
@NameInMap(value="Dimensions") public 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****"}`.
> You can query a maximum of 50 instances in each request.
@NameInMap(value="EndTime") public String endTime
The end of the time range to query monitoring data.
* 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.
@NameInMap(value="Express") public String express
The expression that is used to calculate the query results in real time.
@NameInMap(value="Length") public 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.
> The maximum value of the Length parameter for each request is 1440.
@NameInMap(value="MetricName") public String metricName
The metric that is used to monitor the cloud service.
For more information about metric names, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="Namespace") public String namespace
The namespace of the cloud service.
For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="NextToken") public String nextToken
The pagination token.
* 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.
@NameInMap(value="Period") public String period
The statistical period of the monitoring data.
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~~).
@NameInMap(value="RegionId") public String regionId
@NameInMap(value="StartTime") public String startTime
The start of the time range to query monitoring data.
public static DescribeMetricLastRequest build(Map<String,?> map) throws Exception
Exceptionpublic DescribeMetricLastRequest setDimensions(String dimensions)
public String getDimensions()
public DescribeMetricLastRequest setEndTime(String endTime)
public String getEndTime()
public DescribeMetricLastRequest setExpress(String express)
public String getExpress()
public DescribeMetricLastRequest setLength(String length)
public String getLength()
public DescribeMetricLastRequest setMetricName(String metricName)
public String getMetricName()
public DescribeMetricLastRequest setNamespace(String namespace)
public String getNamespace()
public DescribeMetricLastRequest setNextToken(String nextToken)
public String getNextToken()
public DescribeMetricLastRequest setPeriod(String period)
public String getPeriod()
public DescribeMetricLastRequest setRegionId(String regionId)
public String getRegionId()
public DescribeMetricLastRequest setStartTime(String startTime)
public String getStartTime()
Copyright © 2024. All rights reserved.