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 You can pass through the `Context` value (validity: an hour) returned by the API last time to continue to get logs (up to 10,000 raw logs).
|
Long |
getFrom()
Get Start time of the log to be searched, which is a Unix timestamp in milliseconds
|
Long |
getLimit()
Get The number of raw logs returned by a single query.
|
String |
getQuery()
Get Statement for search and analysis.
|
String |
getSort()
Get Time order of the logs returned.
|
Long |
getTo()
Get End time of the log to be searched, which is a Unix timestamp in milliseconds
|
String |
getTopicId()
Get ID of the log topic to be searched
|
Boolean |
getUseNewAnalysis()
Get If the value is `true`, the new response method will be used, and the output parameters `AnalysisRecords` and `Columns` will be valid.
|
void |
setContext(String Context)
Set You can pass through the `Context` value (validity: an hour) returned by the API last time to continue to get logs (up to 10,000 raw logs).
|
void |
setFrom(Long From)
Set Start time of the log to be searched, which is a Unix timestamp in milliseconds
|
void |
setLimit(Long Limit)
Set The number of raw logs returned by a single query.
|
void |
setQuery(String Query)
Set Statement for search and analysis.
|
void |
setSort(String Sort)
Set Time order of the logs returned.
|
void |
setTo(Long To)
Set End time of the log to be searched, which is a Unix timestamp in milliseconds
|
void |
setTopicId(String TopicId)
Set ID of the log topic to be searched
|
void |
setUseNewAnalysis(Boolean UseNewAnalysis)
Set If the value is `true`, the new response method will be used, and the output 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
- ID of the log topic to be searchedpublic Long getFrom()
public void setFrom(Long From)
From
- Start time of the log to be searched, which is a Unix timestamp in millisecondspublic Long getTo()
public void setTo(Long To)
To
- End time of the log to be searched, which is a Unix timestamp in millisecondspublic String getQuery()
|
and SQL statement when log analysis is not required. |
and SQL statement when log analysis is not required.public void setQuery(String Query)
|
and SQL statement when log analysis is not required.Query
- Statement for search and analysis. Maximum length: 12 KB
A statement is in the format of [search rule] | [SQL statement]. You can omit the pipe symbol |
and SQL statement when log analysis is not required.public Long getLimit()
public void setLimit(Long Limit)
Limit
- The number of raw logs returned by a single query. Maximum value: 1000. You need to use `Context` to continue to get logs.
Notes:
This parameter is valid only when the query statement (`Query`) does not contain an SQL statement.
To limit the number of analysis results, see SQL LIMIT Syntax.public String getContext()
public void setContext(String Context)
Context
- You can pass through the `Context` value (validity: an hour) returned by the API last time to continue to get logs (up to 10,000 raw logs).
Notes:
Do not modify any other parameters while passing through the `Context` parameter.
This parameter is valid only when the query statement (`Query`) does not contain an SQL statement.
To continue to get analysis results, see SQL LIMIT Syntax.public String getSort()
public void setSort(String Sort)
Sort
- Time order of the logs returned. Valid values: `asc` (ascending); `desc`: (descending). Default value: `desc`
Notes:
This parameter is valid only when the query statement (`Query`) does not contain an SQL statement.
To sort the analysis results, see SQL ORDER BY Syntax.public Boolean getUseNewAnalysis()
public void setUseNewAnalysis(Boolean UseNewAnalysis)
UseNewAnalysis
- If the value is `true`, the new response method will be used, and the output parameters `AnalysisRecords` and `Columns` will be valid.
If the value is `false`, the old response method will be used, and the output parameters `AnalysisResults` and `ColNames` will be valid.
The two response methods differ slightly in terms of encoding format. You are advised to use the new method (`true`).Copyright © 2022. All rights reserved.