public static final class GetHistogramsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
GetHistogramsRequest |
build() |
GetHistogramsRequest.Builder |
from(Long from)
The start time of the subinterval.
|
GetHistogramsRequest.Builder |
logstore(String logstore)
The name of the Logstore.
|
GetHistogramsRequest.Builder |
project(String project)
The name of the project.
|
GetHistogramsRequest.Builder |
query(String query)
The search statement.
|
GetHistogramsRequest.Builder |
to(Long to)
The end time of the subinterval.
|
GetHistogramsRequest.Builder |
topic(String topic)
The topic of the logs.
|
public GetHistogramsRequest.Builder project(String project)
The name of the project.
This parameter is required.
example:ali-test-project
public GetHistogramsRequest.Builder logstore(String logstore)
The name of the Logstore.
This parameter is required.
example:test-logstore
public GetHistogramsRequest.Builder from(Long from)
The start time of the subinterval. The value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.
This parameter is required.
example:1409529600
public GetHistogramsRequest.Builder query(String query)
The search statement. Only search statements are supported. Analytic statements are not supported. For more information about the syntax of search statements, see Log search overview.
example:with_pack_meta
public GetHistogramsRequest.Builder to(Long to)
The end time of the subinterval. The value is a UNIX timestamp representing the number of seconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.
This parameter is required.
example:1409569200
public GetHistogramsRequest.Builder topic(String topic)
The topic of the logs.
example:topic
public GetHistogramsRequest build()
Copyright © 2025. All rights reserved.