public static final class CursorRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CursorRequest |
build() |
CursorRequest.Builder |
endTime(String endTime)
The end of the time range to query.
|
CursorRequest.Builder |
matchers(List<Matcher> matchers)
The dimension information of the metric.
|
CursorRequest.Builder |
metric(String metric)
The metric that is used to monitor the cloud service.
|
CursorRequest.Builder |
namespace(String namespace)
The namespace of the cloud service.
|
CursorRequest.Builder |
period(Integer period)
The time interval based on which the metric value is measured.
|
CursorRequest.Builder |
startTime(String startTime)
The beginning of the time range to query.
|
public CursorRequest.Builder endTime(String endTime)
The end of the time range to query.
Unit: milliseconds.
This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC.
If you do not set the end time, the end time is infinite. You can leave this parameter empty in real-time export scenarios.
In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the Period parameter.
1641645000000
public CursorRequest.Builder matchers(List<Matcher> matchers)
The dimension information of the metric.
public CursorRequest.Builder metric(String metric)
The metric that is used to monitor the cloud service.
For more information about the metrics of cloud services, see Appendix 1: Metrics.
This parameter is required.
example:cpu_idle
public CursorRequest.Builder namespace(String namespace)
The namespace of the cloud service.
For more information about the namespaces of cloud services, see Appendix 1: Metrics.
This parameter is required.
example:acs_ecs_dashboard
public CursorRequest.Builder period(Integer period)
The time interval based on which the metric value is measured.
Unit: seconds.
Generally, the time interval is 60 seconds. For more information about specific values, see the
Periodparameter in Appendix 1: Metrics.
This parameter is required.
example:60
public CursorRequest.Builder startTime(String startTime)
The beginning of the time range to query.
Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. For example, 2023-01-01T00:00:00Z indicates January 1, 2023, 00:00:00 UTC.
In CloudMonitor, the TTL of monitoring data varies with the time granularity. Specify a proper time interval based on the TTL corresponding to the value of the
Periodparameter.
This parameter is required.
example:1641627000000
public CursorRequest build()
Copyright © 2026. All rights reserved.