public class DescribeSQLLogsRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
database
The name of the database.
|
String |
DBInstanceId
The instance ID.
|
String |
endTime
The end of the time range to query.
|
String |
executeCost
The execution duration of the SQL statement.
|
String |
executeState
The execution status of the SQL statement.
|
String |
maxExecuteCost
The maximum amount of time consumed by a slow query.
|
String |
minExecuteCost
The minimum amount of time consumed by a slow query.
|
String |
operationClass
The type of the query language.
|
String |
operationType
The type of the SQL statement.
|
Integer |
pageNumber
The page number.
|
Integer |
pageSize
The number of entries per page.
|
String |
queryKeywords
The keywords of the SQL statement.
|
String |
sourceIP
The source IP address.
|
String |
startTime
The beginning of the time range to query.
|
String |
user
The name of the database account.
|
| 构造器和说明 |
|---|
DescribeSQLLogsRequest() |
@NameInMap(value="DBInstanceId") public String DBInstanceId
The instance ID.
You can call the DescribeDBInstances operation to query the IDs of all AnalyticDB for PostgreSQL instances within a region.
This parameter is required.
example:gp-xxxxxxxx
@NameInMap(value="Database") public String database
The name of the database.
example:adbpgadmin
@NameInMap(value="EndTime") public String endTime
The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.
The end time must be later than the start time. The maximum time range that can be specified is seven days.
This parameter is required.
example:2021-03-17T06:30Z
@NameInMap(value="ExecuteCost") public String executeCost
The execution duration of the SQL statement. Unit: seconds.
example:1
@NameInMap(value="ExecuteState") public String executeState
The execution status of the SQL statement. Valid values:
success
@NameInMap(value="MaxExecuteCost") public String maxExecuteCost
The maximum amount of time consumed by a slow query. Unit: seconds. Minimum value: 0.
example:1000
@NameInMap(value="MinExecuteCost") public String minExecuteCost
The minimum amount of time consumed by a slow query. Unit: seconds. Minimum value: 0.
example:1
@NameInMap(value="OperationClass") public String operationClass
The type of the query language. Valid values:
DQL
@NameInMap(value="OperationType") public String operationType
The type of the SQL statement.
If OperationClass is specified, the value of OperationType must belong to the corresponding query language. For example, if OperationClass is set to DQL, the value of OperationType must be a DQL statement such as SELECT.
If OperationClass is not specified, the value of OperationType can be an SQL statement of any query language.
If OperationClass and OperationType are not specified, all types of SQL statements are returned.
SELECT
@NameInMap(value="PageNumber") public Integer pageNumber
The page number. Pages start from page 1. Default value: 1.
example:1
@NameInMap(value="PageSize") public Integer pageSize
The number of entries per page. Valid values:
Default value: 30.
example:30
@NameInMap(value="QueryKeywords") public String queryKeywords
The keywords of the SQL statement.
example:select 1
@NameInMap(value="SourceIP") public String sourceIP
The source IP address.
example:100...90
@NameInMap(value="StartTime") public String startTime
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mmZ format. The time must be in UTC.
This parameter is required.
example:2021-03-10T06:30Z
@NameInMap(value="User") public String user
The name of the database account.
example:testadmin
public static DescribeSQLLogsRequest build(Map<String,?> map) throws Exception
Exceptionpublic DescribeSQLLogsRequest setDBInstanceId(String DBInstanceId)
public String getDBInstanceId()
public DescribeSQLLogsRequest setDatabase(String database)
public String getDatabase()
public DescribeSQLLogsRequest setEndTime(String endTime)
public String getEndTime()
public DescribeSQLLogsRequest setExecuteCost(String executeCost)
public String getExecuteCost()
public DescribeSQLLogsRequest setExecuteState(String executeState)
public String getExecuteState()
public DescribeSQLLogsRequest setMaxExecuteCost(String maxExecuteCost)
public String getMaxExecuteCost()
public DescribeSQLLogsRequest setMinExecuteCost(String minExecuteCost)
public String getMinExecuteCost()
public DescribeSQLLogsRequest setOperationClass(String operationClass)
public String getOperationClass()
public DescribeSQLLogsRequest setOperationType(String operationType)
public String getOperationType()
public DescribeSQLLogsRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public DescribeSQLLogsRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public DescribeSQLLogsRequest setQueryKeywords(String queryKeywords)
public String getQueryKeywords()
public DescribeSQLLogsRequest setSourceIP(String sourceIP)
public String getSourceIP()
public DescribeSQLLogsRequest setStartTime(String startTime)
public String getStartTime()
public DescribeSQLLogsRequest setUser(String user)
public String getUser()
Copyright © 2024. All rights reserved.