public static final class GetProjectLogsRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
GetProjectLogsRequest |
build() |
GetProjectLogsRequest.Builder |
powerSql(Boolean powerSql)
Specifies whether to enable the Dedicated SQL feature.
|
GetProjectLogsRequest.Builder |
project(String project)
The name of the project.
|
GetProjectLogsRequest.Builder |
query(String query)
The standard SQL statement.
|
public GetProjectLogsRequest.Builder project(String project)
The name of the project.
This parameter is required.
example:ali-test-project
public GetProjectLogsRequest.Builder powerSql(Boolean powerSql)
Specifies whether to enable the Dedicated SQL feature. For more information, see Enable Dedicated SQL. Valid values:
You can use the powerSql or query parameter to configure Dedicated SQL.
example:false
public GetProjectLogsRequest.Builder query(String query)
The standard SQL statement. In this example, the SQL statement queries the number of page views (PVs) from 2022-03-01 10:41:40 to 2022-03-01 10:56:40 in a Logstore whose name is nginx-moni.
This parameter is required.
example:SELECT COUNT(*) as pv FROM nginx-moni where time > 1646102500 and time < 1646103400
public GetProjectLogsRequest build()
Copyright © 2025. All rights reserved.