public static class PutCustomMetricRequest.PutCustomMetricRequestMetricList
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
dimensions
The dimensions that specify the resources whose monitoring data you want to query.
|
String |
groupId
The ID of the application group.
|
String |
metricName
The name of the metric.
|
String |
period
The aggregation period.
|
String |
time
The timestamp when the metric data is generated.
|
String |
type
The type of the reported data.
|
String |
values
The collection of metric values.
|
| 构造器和说明 |
|---|
PutCustomMetricRequestMetricList() |
@NameInMap(value="Dimensions") public String dimensions
The dimensions that specify the resources whose monitoring data you want to query. Valid values of N: 1 to 21.
Set the value to a collection of key-value pairs. Format:`{"Key":"Value"}`.
The key or value must be 1 to 64 bytes in length. Excessive characters are truncated.
The key or value can contain letters, digits, periods (.), hyphens (-), underscores (\_), forward slashes (/), and backslashes (\\).
> Dimensions must be formatted as a JSON string in a specified order.
@NameInMap(value="GroupId") public String groupId
The ID of the application group. Valid values of N: 1 to 21.
> If the metric does not belong to any application group, enter 0.
@NameInMap(value="MetricName") public String metricName
The name of the metric. Valid values of N: 1 to 21. For more information, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="Period") public String period
The aggregation period. Valid values of N: 1 to 21. Unit: seconds. Valid values: 60 and 300.
> If the MetricList.N.Type parameter is set to 1, the MetricList.N.Period parameter is required.
@NameInMap(value="Time") public String time
The timestamp when the metric data is generated. Valid values of N: 1 to 21. The timestamp can be in one of the following formats:
* The UTC timestamp that is in the YYYY-MM-DDThh:mm:ssZ format. Example: 20171012T132456.888+0800.
* The UNIX timestamp of the LONG type. Example: 1508136760000.
@NameInMap(value="Type") public String type
The type of the reported data. Valid values of N: 1 to 21. Valid values:
* 0: reports raw data
* 1: reports aggregate data
> We recommend that you report aggregate data in both the aggregation periods of 60s and 300s. Otherwise, you cannot query monitoring data in a time span that is more than seven days.
@NameInMap(value="Values") public String values
The collection of metric values. Valid values of N: 1 to 21.
> If the MetricList.N.Type parameter is set to 0, the keys in this parameter must be set to the specified value. CloudMonitor aggregates raw data in each aggregation period to generate multiple statistical values, such as the maximum value, the count, and the total value.
public static PutCustomMetricRequest.PutCustomMetricRequestMetricList build(Map<String,?> map) throws Exception
Exceptionpublic PutCustomMetricRequest.PutCustomMetricRequestMetricList setDimensions(String dimensions)
public String getDimensions()
public PutCustomMetricRequest.PutCustomMetricRequestMetricList setGroupId(String groupId)
public String getGroupId()
public PutCustomMetricRequest.PutCustomMetricRequestMetricList setMetricName(String metricName)
public String getMetricName()
public PutCustomMetricRequest.PutCustomMetricRequestMetricList setPeriod(String period)
public String getPeriod()
public PutCustomMetricRequest.PutCustomMetricRequestMetricList setTime(String time)
public String getTime()
public PutCustomMetricRequest.PutCustomMetricRequestMetricList setType(String type)
public String getType()
public PutCustomMetricRequest.PutCustomMetricRequestMetricList setValues(String values)
public String getValues()
Copyright © 2024. All rights reserved.