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)
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.
public CursorRequest.Builder matchers(List<Matcher> matchers)
public CursorRequest.Builder metric(String metric)
For more information about the metrics of cloud services, see [Appendix 1: Metrics](~~163515~~).
public CursorRequest.Builder namespace(String namespace)
For more information about the namespaces of cloud services, see [Appendix 1: Metrics](~~163515~~).
public CursorRequest.Builder period(Integer period)
Unit: seconds. > Generally, the time interval is 60 seconds. For more information about specific values, see the `Period` parameter in [Appendix 1: Metrics](~~163515~~).
public CursorRequest.Builder startTime(String startTime)
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 `Period` parameter.
public CursorRequest build()
Copyright © 2024. All rights reserved.