public class ListSQLExecAuditLogRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
endTime
The end of the time range to query.
|
String |
execState
The execution status of the SQL statement.
|
String |
opUserName
The nickname of the user who wrote the SQL statement.
|
Integer |
pageNumber
The number of the page to return.
|
Integer |
pageSize
The number of entries to return on each page.
|
String |
searchName
The name of the database or instance based on which you want to query SQL statements.
|
String |
sqlType
The type of the SQL statement.
|
String |
startTime
The beginning of the time range to query.
|
Long |
tid
The ID of the tenant.
|
| 构造器和说明 |
|---|
ListSQLExecAuditLogRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ListSQLExecAuditLogRequest |
build(Map<String,?> map) |
String |
getEndTime() |
String |
getExecState() |
String |
getOpUserName() |
Integer |
getPageNumber() |
Integer |
getPageSize() |
String |
getSearchName() |
String |
getSqlType() |
String |
getStartTime() |
Long |
getTid() |
ListSQLExecAuditLogRequest |
setEndTime(String endTime) |
ListSQLExecAuditLogRequest |
setExecState(String execState) |
ListSQLExecAuditLogRequest |
setOpUserName(String opUserName) |
ListSQLExecAuditLogRequest |
setPageNumber(Integer pageNumber) |
ListSQLExecAuditLogRequest |
setPageSize(Integer pageSize) |
ListSQLExecAuditLogRequest |
setSearchName(String searchName) |
ListSQLExecAuditLogRequest |
setSqlType(String sqlType) |
ListSQLExecAuditLogRequest |
setStartTime(String startTime) |
ListSQLExecAuditLogRequest |
setTid(Long tid) |
@NameInMap(value="EndTime") public String endTime
The end of the time range to query.
The end time supports fuzzy match. Specify the time in the YYYY-MM-DD hh:mm:ss format. We recommend that you use the StartTime and EndTime parameters to specify a time range that does not exceed one day. The returned entries can be displayed by page to improve query efficiency.
This parameter is required.
example:2021-11-08 11:00:00
@NameInMap(value="ExecState") public String execState
The execution status of the SQL statement. Valid values:
SUCCESS
@NameInMap(value="OpUserName") public String opUserName
The nickname of the user who wrote the SQL statement.
example:test_OpUserName
@NameInMap(value="PageNumber") public Integer pageNumber
The number of the page to return.
example:1
@NameInMap(value="PageSize") public Integer pageSize
The number of entries to return on each page. The value cannot exceed 100.
example:20
@NameInMap(value="SearchName") public String searchName
The name of the database or instance based on which you want to query SQL statements.
example:If the SQL statements to be queried are at the instance level, you can set this parameter to an instance name. If the SQL statements to be queried are at the database level, you can set this parameter to a database name.
test_SearchName
@NameInMap(value="SqlType") public String sqlType
The type of the SQL statement. Valid values:
example:To view more types of SQL statements, log on to the DMS console and click Security and Specifications. In the left-side navigation pane, click Operation Audit. Then, you can view all supported types of SQL statements from the SQL type drop-down list.
SELECT
@NameInMap(value="StartTime") public String startTime
The beginning of the time range to query.
The start time supports fuzzy match. Specify the time in the YYYY-MM-DD hh:mm:ss format.
This parameter is required.
example:2021-11-08 11:04:00
@NameInMap(value="Tid") public Long tid
The ID of the tenant. You can call the GetUserActiveTenant operation to obtain the tenant ID.
example:3***
public static ListSQLExecAuditLogRequest build(Map<String,?> map) throws Exception
Exceptionpublic ListSQLExecAuditLogRequest setEndTime(String endTime)
public String getEndTime()
public ListSQLExecAuditLogRequest setExecState(String execState)
public String getExecState()
public ListSQLExecAuditLogRequest setOpUserName(String opUserName)
public String getOpUserName()
public ListSQLExecAuditLogRequest setPageNumber(Integer pageNumber)
public Integer getPageNumber()
public ListSQLExecAuditLogRequest setPageSize(Integer pageSize)
public Integer getPageSize()
public ListSQLExecAuditLogRequest setSearchName(String searchName)
public String getSearchName()
public ListSQLExecAuditLogRequest setSqlType(String sqlType)
public String getSqlType()
public ListSQLExecAuditLogRequest setStartTime(String startTime)
public String getStartTime()
public ListSQLExecAuditLogRequest setTid(Long tid)
public Long getTid()
Copyright © 2025. All rights reserved.