public static final class GetContextLogsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
GetContextLogsRequest.Builder |
backLines(Long backLines)
The number of logs that you want to obtain and are generated before the generation time of the start log.
|
GetContextLogsRequest |
build() |
GetContextLogsRequest.Builder |
forwardLines(Long forwardLines)
The number of logs that you want to obtain and are generated after the generation time of the start log.
|
GetContextLogsRequest.Builder |
logstore(String logstore)
The name of the Logstore.
|
GetContextLogsRequest.Builder |
packId(String packId)
The unique identifier of the log group to which the start log belongs.
|
GetContextLogsRequest.Builder |
packMeta(String packMeta)
The unique context identifier of the start log in the log group.
|
GetContextLogsRequest.Builder |
project(String project)
The name of the project.
|
public GetContextLogsRequest.Builder project(String project)
The name of the project.
This parameter is required.
example:ali-test-project
public GetContextLogsRequest.Builder logstore(String logstore)
The name of the Logstore.
This parameter is required.
example:test-logstore
public GetContextLogsRequest.Builder backLines(Long backLines)
The number of logs that you want to obtain and are generated before the generation time of the start log. Valid values: (0,100].
This parameter is required.
example:10
public GetContextLogsRequest.Builder forwardLines(Long forwardLines)
The number of logs that you want to obtain and are generated after the generation time of the start log. Valid values: (0,100].
This parameter is required.
example:10
public GetContextLogsRequest.Builder packId(String packId)
The unique identifier of the log group to which the start log belongs.
This parameter is required.
example:85C897C740352DC6-808
public GetContextLogsRequest.Builder packMeta(String packMeta)
The unique context identifier of the start log in the log group.
This parameter is required.
example:2|MTY1NTcwNTUzODY5MTY0MDk1Mg==|3|0
public GetContextLogsRequest build()
Copyright © 2025. All rights reserved.