public class DescribeSlowLogTopSqlsRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DescribeSlowLogTopSqlsRequest() | 
| DescribeSlowLogTopSqlsRequest(DescribeSlowLogTopSqlsRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getEndTime()Get 截止时间,如“2019-09-10 12:13:14”,截止时间与开始时间的间隔最大可为7天。 | 
| String | getInstanceId()Get 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。 | 
| Long | getLimit()Get 返回数量,默认为20,最大值为100。 | 
| Long | getOffset()Get 偏移量,默认为0。 | 
| String | getOrderBy()Get 排序方式,支持ASC(升序)以及DESC(降序)。 | 
| String | getProduct()Get 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。 | 
| SchemaItem[] | getSchemaList()Get 数据库名称数组。 | 
| String | getSortBy()Get 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键。
其中:
QueryTime    - 查询耗时  
ExecTimes    - 执行次数  
RowsSent     - 返回行数  
LockTime     - 锁等待时间  
RowsExamined - 扫描行数 | 
| String | getStartTime()Get 开始时间,如“2019-09-10 12:13:14”。 | 
| void | setEndTime(String EndTime)Set 截止时间,如“2019-09-10 12:13:14”,截止时间与开始时间的间隔最大可为7天。 | 
| void | setInstanceId(String InstanceId)Set 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。 | 
| void | setLimit(Long Limit)Set 返回数量,默认为20,最大值为100。 | 
| void | setOffset(Long Offset)Set 偏移量,默认为0。 | 
| void | setOrderBy(String OrderBy)Set 排序方式,支持ASC(升序)以及DESC(降序)。 | 
| void | setProduct(String Product)Set 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。 | 
| void | setSchemaList(SchemaItem[] SchemaList)Set 数据库名称数组。 | 
| void | setSortBy(String SortBy)Set 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键。
其中:
QueryTime    - 查询耗时  
ExecTimes    - 执行次数  
RowsSent     - 返回行数  
LockTime     - 锁等待时间  
RowsExamined - 扫描行数 | 
| void | setStartTime(String StartTime)Set 开始时间,如“2019-09-10 12:13:14”。 | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic DescribeSlowLogTopSqlsRequest()
public DescribeSlowLogTopSqlsRequest(DescribeSlowLogTopSqlsRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。public String getStartTime()
public void setStartTime(String StartTime)
StartTime - 开始时间,如“2019-09-10 12:13:14”。public String getEndTime()
public void setEndTime(String EndTime)
EndTime - 截止时间,如“2019-09-10 12:13:14”,截止时间与开始时间的间隔最大可为7天。public String getSortBy()
public void setSortBy(String SortBy)
SortBy - 排序键,目前支持 QueryTime,ExecTimes,RowsSent,LockTime以及RowsExamined 等排序键。
其中:
QueryTime    - 查询耗时  
ExecTimes    - 执行次数  
RowsSent     - 返回行数  
LockTime     - 锁等待时间  
RowsExamined - 扫描行数public String getOrderBy()
public void setOrderBy(String OrderBy)
OrderBy - 排序方式,支持ASC(升序)以及DESC(降序)。public Long getLimit()
public void setLimit(Long Limit)
Limit - 返回数量,默认为20,最大值为100。public Long getOffset()
public void setOffset(Long Offset)
Offset - 偏移量,默认为0。public SchemaItem[] getSchemaList()
public void setSchemaList(SchemaItem[] SchemaList)
SchemaList - 数据库名称数组。public String getProduct()
public void setProduct(String Product)
Product - 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB  for MySQL,默认为"mysql"。Copyright © 2025. All rights reserved.