public static final class PutCustomMetricRequest.MetricList.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
PutCustomMetricRequest.MetricList |
build() |
PutCustomMetricRequest.MetricList.Builder |
dimensions(String dimensions)
The operation that you want to perform.
|
PutCustomMetricRequest.MetricList.Builder |
groupId(String groupId)
The HTTP status code.
|
PutCustomMetricRequest.MetricList.Builder |
metricName(String metricName)
The type of the reported data.
|
PutCustomMetricRequest.MetricList.Builder |
period(String period)
The aggregation period.
|
PutCustomMetricRequest.MetricList.Builder |
time(String time)
The collection of metric values.
|
PutCustomMetricRequest.MetricList.Builder |
type(String type)
The timestamp when the metric data is generated.
|
PutCustomMetricRequest.MetricList.Builder |
values(String values)
The ID of the request.
|
public PutCustomMetricRequest.MetricList.Builder dimensions(String dimensions)
public PutCustomMetricRequest.MetricList.Builder groupId(String groupId)
> The status code 200 indicates that the call was successful.
public PutCustomMetricRequest.MetricList.Builder metricName(String metricName)
* 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.
public PutCustomMetricRequest.MetricList.Builder period(String period)
> If the MetricList.N.Type parameter is set to 1, the MetricList.N.Period parameter is required.
public PutCustomMetricRequest.MetricList.Builder time(String time)
> 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 PutCustomMetricRequest.MetricList.Builder type(String type)
* 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.
public PutCustomMetricRequest.MetricList.Builder values(String values)
public PutCustomMetricRequest.MetricList build()
Copyright © 2023. All rights reserved.