public class DescribeLogContextRequest extends AbstractModel
header, skipSign| Constructor and Description | 
|---|
| DescribeLogContextRequest() | 
| DescribeLogContextRequest(DescribeLogContextRequest 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 | getBTime()Get 日志时间,  即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的Time,需按照 UTC+8 时区将该毫秒级Unix时间戳转换为 YYYY-mm-dd HH:MM:SS.FFF 格式的字符串。 | 
| Long | getFrom()Get 上下文检索的开始时间,单位:毫秒级时间戳
注意:
- From为空时,表示上下文检索的开始时间不做限制
- From和To非空时,From < To
- 暂时仅支持上海 / 弗吉尼亚/ 新加坡地域 | 
| Long | getNextLogs()Get 后${NextLogs}条日志,默认值10。 | 
| String | getPkgId()Get 日志包序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的PkgId。 | 
| Long | getPkgLogId()Get 日志包内一条日志的序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构中的PkgLogId。 | 
| Long | getPrevLogs()Get 前${PrevLogs}条日志,默认值10。 | 
| String | getQuery()Get 检索语句,对日志上下文进行过滤,最大长度为12KB
语句由 [检索条件]构成,不支持SQL语句 | 
| Long | getTo()Get 上下文检索的结束时间,单位:毫秒级时间戳。
注意:
- To为空时,表示上下文检索的结束时间不做限制
- From和To非空时,From < To
- 暂时仅支持上海 / 弗吉尼亚/ 新加坡地域 | 
| String | getTopicId()Get 要查询的日志主题Id。
- 通过 [获取日志主题列表](https://cloud.tencent.com/document/product/614/56454) 获取日志主题Id。
- 通过 [创建日志主题](https://cloud.tencent.com/document/product/614/56456) 获取日志主题Id。 | 
| void | setBTime(String BTime)Set 日志时间,  即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的Time,需按照 UTC+8 时区将该毫秒级Unix时间戳转换为 YYYY-mm-dd HH:MM:SS.FFF 格式的字符串。 | 
| void | setFrom(Long From)Set 上下文检索的开始时间,单位:毫秒级时间戳
注意:
- From为空时,表示上下文检索的开始时间不做限制
- From和To非空时,From < To
- 暂时仅支持上海 / 弗吉尼亚/ 新加坡地域 | 
| void | setNextLogs(Long NextLogs)Set 后${NextLogs}条日志,默认值10。 | 
| void | setPkgId(String PkgId)Set 日志包序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的PkgId。 | 
| void | setPkgLogId(Long PkgLogId)Set 日志包内一条日志的序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构中的PkgLogId。 | 
| void | setPrevLogs(Long PrevLogs)Set 前${PrevLogs}条日志,默认值10。 | 
| void | setQuery(String Query)Set 检索语句,对日志上下文进行过滤,最大长度为12KB
语句由 [检索条件]构成,不支持SQL语句 | 
| void | setTo(Long To)Set 上下文检索的结束时间,单位:毫秒级时间戳。
注意:
- To为空时,表示上下文检索的结束时间不做限制
- From和To非空时,From < To
- 暂时仅支持上海 / 弗吉尼亚/ 新加坡地域 | 
| void | setTopicId(String TopicId)Set 要查询的日志主题Id。
- 通过 [获取日志主题列表](https://cloud.tencent.com/document/product/614/56454) 获取日志主题Id。
- 通过 [创建日志主题](https://cloud.tencent.com/document/product/614/56456) 获取日志主题Id。 | 
| 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 DescribeLogContextRequest()
public DescribeLogContextRequest(DescribeLogContextRequest source)
public String getTopicId()
public void setTopicId(String TopicId)
TopicId - 要查询的日志主题Id。
- 通过 [获取日志主题列表](https://cloud.tencent.com/document/product/614/56454) 获取日志主题Id。
- 通过 [创建日志主题](https://cloud.tencent.com/document/product/614/56456) 获取日志主题Id。public String getBTime()
public void setBTime(String BTime)
BTime - 日志时间,  即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的Time,需按照 UTC+8 时区将该毫秒级Unix时间戳转换为 YYYY-mm-dd HH:MM:SS.FFF 格式的字符串。public String getPkgId()
public void setPkgId(String PkgId)
PkgId - 日志包序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构体中的PkgId。public Long getPkgLogId()
public void setPkgLogId(Long PkgLogId)
PkgLogId - 日志包内一条日志的序号,即 [检索分析日志](https://cloud.tencent.com/document/product/614/56447) 接口返回信息中Results结构中的PkgLogId。public Long getPrevLogs()
public void setPrevLogs(Long PrevLogs)
PrevLogs - 前${PrevLogs}条日志,默认值10。public Long getNextLogs()
public void setNextLogs(Long NextLogs)
NextLogs - 后${NextLogs}条日志,默认值10。public String getQuery()
public void setQuery(String Query)
Query - 检索语句,对日志上下文进行过滤,最大长度为12KB
语句由 [检索条件]构成,不支持SQL语句public Long getFrom()
public void setFrom(Long From)
From - 上下文检索的开始时间,单位:毫秒级时间戳
注意:
- From为空时,表示上下文检索的开始时间不做限制
- From和To非空时,From < To
- 暂时仅支持上海 / 弗吉尼亚/ 新加坡地域public Long getTo()
public void setTo(Long To)
To - 上下文检索的结束时间,单位:毫秒级时间戳。
注意:
- To为空时,表示上下文检索的结束时间不做限制
- From和To非空时,From < To
- 暂时仅支持上海 / 弗吉尼亚/ 新加坡地域Copyright © 2025. All rights reserved.