public class QueryBodyParam extends Object
| Constructor and Description |
|---|
QueryBodyParam() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getCategory()
取值范围 app_log,node _log,custom_log 日志类型字段:app_log:应用日志 node_log:主机日志 custom_log:自定义配置路径日志。
|
Long |
getEndTime()
搜索结束时间(UTC时间,毫秒级)。
|
Integer |
getHideSyslog()
取值范围 0、1 。搜索时是否隐藏系统日志,默认0为隐藏1为显示。
|
Boolean |
getIsDesc()
标识按照lineNum升序查询还是降序查询。 true:降序(lineNum由大到小:时间从新到老)。 false:升序(lineNum由小到大:即时间从老到新)。
|
String |
getKeyWord()
1.支持关键词精确搜索。关键词指相邻两个分词符之间的单词。 2.支持关键词模糊匹配搜索,例如输入“RROR”或“ERRO?”或“*ROR*”或“ERR*”或“ER*OR”。 3.支持短语精确搜索,例如输入“Start to refresh alm Statistic”。 4.支持关键词的“与”、“或”组合搜索。格式为“query&&logs”或“query||logs”。 说明: 当前默认分词符有 , '\";=()[]{}@&<>/:\\n\\t\\r
|
String |
getLineNum()
日志单行序列号第一次查询时不需要此参数,后续分页查询时需要使用可从上次查询的返回信息中获取.
|
String |
getPageSizeSize()
表示每次查询的日志条数不填时默认为5000,建议您设置为100。 第一次查询时使用pageSize 后续分页查询时使用size。
|
SearchKey |
getSearchKey()
Get searchKey
|
Long |
getStartTime()
搜索起始时间(UTC时间,毫秒级)。
|
String |
getType()
表示此次查询为分页查询,第一次查询时不需要此参数,后续分页查询时需要使用。
|
int |
hashCode() |
void |
setCategory(String category) |
void |
setEndTime(Long endTime) |
void |
setHideSyslog(Integer hideSyslog) |
void |
setIsDesc(Boolean isDesc) |
void |
setKeyWord(String keyWord) |
void |
setLineNum(String lineNum) |
void |
setPageSizeSize(String pageSizeSize) |
void |
setSearchKey(SearchKey searchKey) |
void |
setStartTime(Long startTime) |
void |
setType(String type) |
String |
toString() |
QueryBodyParam |
withCategory(String category) |
QueryBodyParam |
withEndTime(Long endTime) |
QueryBodyParam |
withHideSyslog(Integer hideSyslog) |
QueryBodyParam |
withIsDesc(Boolean isDesc) |
QueryBodyParam |
withKeyWord(String keyWord) |
QueryBodyParam |
withLineNum(String lineNum) |
QueryBodyParam |
withPageSizeSize(String pageSizeSize) |
QueryBodyParam |
withSearchKey(java.util.function.Consumer<SearchKey> searchKeySetter) |
QueryBodyParam |
withSearchKey(SearchKey searchKey) |
QueryBodyParam |
withStartTime(Long startTime) |
QueryBodyParam |
withType(String type) |
public QueryBodyParam withCategory(String category)
public String getCategory()
public void setCategory(String category)
public QueryBodyParam withEndTime(Long endTime)
public Long getEndTime()
public void setEndTime(Long endTime)
public QueryBodyParam withHideSyslog(Integer hideSyslog)
public Integer getHideSyslog()
public void setHideSyslog(Integer hideSyslog)
public QueryBodyParam withKeyWord(String keyWord)
public String getKeyWord()
public void setKeyWord(String keyWord)
public QueryBodyParam withLineNum(String lineNum)
public String getLineNum()
public void setLineNum(String lineNum)
public QueryBodyParam withPageSizeSize(String pageSizeSize)
public String getPageSizeSize()
public void setPageSizeSize(String pageSizeSize)
public QueryBodyParam withSearchKey(SearchKey searchKey)
public QueryBodyParam withSearchKey(java.util.function.Consumer<SearchKey> searchKeySetter)
public SearchKey getSearchKey()
public void setSearchKey(SearchKey searchKey)
public QueryBodyParam withStartTime(Long startTime)
public Long getStartTime()
public void setStartTime(Long startTime)
public QueryBodyParam withType(String type)
public String getType()
public void setType(String type)
public QueryBodyParam withIsDesc(Boolean isDesc)
public Boolean getIsDesc()
public void setIsDesc(Boolean isDesc)
Copyright © 2022. All rights reserved.