public class DescribeSlowLogsRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DescribeSlowLogsRequest() | 
| DescribeSlowLogsRequest(DescribeSlowLogsRequest 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 慢日志终止时间。
- 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-02 12:00:00。
- 查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 | 
| String | getFormat()Get 慢日志返回格式。默认返回原生慢日志格式,4.4及以上版本可设置为json。 | 
| String | getInstanceId()Get 实例ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。 | 
| Long | getLimit()Get 分页大小,最小值为1,最大值为100,默认值为20。 | 
| Long | getOffset()Get 偏移量,最小值为0,最大值为10000,默认值为0。 | 
| Long | getSlowMS()Get 慢日志执行时间阈值,返回执行时间超过该阈值的慢日志,单位为毫秒(ms),最小为100毫秒。 | 
| String | getStartTime()Get 慢日志起始时间。
- 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。
- 查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 | 
| void | setEndTime(String EndTime)Set 慢日志终止时间。
- 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-02 12:00:00。
- 查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 | 
| void | setFormat(String Format)Set 慢日志返回格式。默认返回原生慢日志格式,4.4及以上版本可设置为json。 | 
| void | setInstanceId(String InstanceId)Set 实例ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。 | 
| void | setLimit(Long Limit)Set 分页大小,最小值为1,最大值为100,默认值为20。 | 
| void | setOffset(Long Offset)Set 偏移量,最小值为0,最大值为10000,默认值为0。 | 
| void | setSlowMS(Long SlowMS)Set 慢日志执行时间阈值,返回执行时间超过该阈值的慢日志,单位为毫秒(ms),最小为100毫秒。 | 
| void | setStartTime(String StartTime)Set 慢日志起始时间。
- 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。
- 查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。 | 
| 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 DescribeSlowLogsRequest()
public DescribeSlowLogsRequest(DescribeSlowLogsRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - 实例ID。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。public String getStartTime()
public void setStartTime(String StartTime)
StartTime - 慢日志起始时间。
- 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-01 10:00:00。
- 查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。public String getEndTime()
public void setEndTime(String EndTime)
EndTime - 慢日志终止时间。
- 格式:yyyy-mm-dd hh:mm:ss,如:2019-06-02 12:00:00。
- 查询起止时间间隔不能超过24小时,只允许查询最近7天内慢日志。public Long getSlowMS()
public void setSlowMS(Long SlowMS)
SlowMS - 慢日志执行时间阈值,返回执行时间超过该阈值的慢日志,单位为毫秒(ms),最小为100毫秒。public Long getOffset()
public void setOffset(Long Offset)
Offset - 偏移量,最小值为0,最大值为10000,默认值为0。public Long getLimit()
public void setLimit(Long Limit)
Limit - 分页大小,最小值为1,最大值为100,默认值为20。public String getFormat()
public void setFormat(String Format)
Format - 慢日志返回格式。默认返回原生慢日志格式,4.4及以上版本可设置为json。Copyright © 2025. All rights reserved.