public class SearchLogRequest extends AbstractModel
Constructor and Description |
---|
SearchLogRequest() |
SearchLogRequest(SearchLogRequest 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 |
getContext()
Get This field is used to load more logs.
|
Long |
getFrom()
Get Start time of the log to be queried, which is a Unix timestamp in milliseconds
|
Long |
getLimit()
Get Number of raw logs returned in a single query.
|
String |
getQuery()
Get Query statement.
|
String |
getSort()
Get Order of the logs sorted by time returned by the log API.
|
Long |
getTo()
Get End time of the log to be queried, which is a Unix timestamp in milliseconds
|
String |
getTopicId()
Get Log topic ID to be queried
|
Boolean |
getUseNewAnalysis()
Get If the value is `true`, the new search method will be used, and the response parameters `AnalysisRecords` and `Columns` will be valid.
|
void |
setContext(String Context)
Set This field is used to load more logs.
|
void |
setFrom(Long From)
Set Start time of the log to be queried, which is a Unix timestamp in milliseconds
|
void |
setLimit(Long Limit)
Set Number of raw logs returned in a single query.
|
void |
setQuery(String Query)
Set Query statement.
|
void |
setSort(String Sort)
Set Order of the logs sorted by time returned by the log API.
|
void |
setTo(Long To)
Set End time of the log to be queried, which is a Unix timestamp in milliseconds
|
void |
setTopicId(String TopicId)
Set Log topic ID to be queried
|
void |
setUseNewAnalysis(Boolean UseNewAnalysis)
Set If the value is `true`, the new search method will be used, and the response parameters `AnalysisRecords` and `Columns` will be valid.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public SearchLogRequest()
public SearchLogRequest(SearchLogRequest source)
public String getTopicId()
public void setTopicId(String TopicId)
TopicId
- Log topic ID to be queriedpublic Long getFrom()
public void setFrom(Long From)
From
- Start time of the log to be queried, which is a Unix timestamp in millisecondspublic Long getTo()
public void setTo(Long To)
To
- End time of the log to be queried, which is a Unix timestamp in millisecondspublic String getQuery()
public void setQuery(String Query)
Query
- Query statement. Maximum length: 4096public Long getLimit()
public void setLimit(Long Limit)
Limit
- Number of raw logs returned in a single query. Maximum value: 100. If the query statement (Query) contains an SQL query, you need to specify the number of SQL query results in `Query`. For more information, please visit https://intl.cloud.tencent.com/document/product/614/58977?from_cn_redirect=1public String getContext()
public void setContext(String Context)
Context
- This field is used to load more logs. Pass through the last `Context` value returned to get more log content. It will expire after 1 hour.public String getSort()
public void setSort(String Sort)
Sort
- Order of the logs sorted by time returned by the log API. Valid values: `asc`: ascending; `desc`: descending. Default value: `desc`public Boolean getUseNewAnalysis()
public void setUseNewAnalysis(Boolean UseNewAnalysis)
UseNewAnalysis
- If the value is `true`, the new search method will be used, and the response parameters `AnalysisRecords` and `Columns` will be valid. If the value is `false`, the old search method will be used, and `AnalysisResults` and `ColNames` will be valid.Copyright © 2021. All rights reserved.