Serializablepublic class GetLogsRequest extends Request
| 构造器 | 说明 |
|---|---|
GetLogsRequest(String project,
String logStore,
int from,
int to,
String topic,
String query) |
Construct a the request
|
GetLogsRequest(String project,
String logStore,
int from,
int to,
String topic,
String query,
int offset,
int line,
boolean reverse) |
Construct a the request
|
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
int |
GetFromTime() |
Get begin time,
|
int |
GetLine() |
Get request line number
|
String |
GetLogStore() |
Get log store name
|
int |
GetOffset() |
Get request offset
|
String |
GetQuery() |
Get Query
|
boolean |
GetReverse() |
Get request reverse flag
|
String |
GetTopic() |
Get Topic
|
int |
GetToTime() |
Get end time
|
void |
SetFromTime(int from) |
Set begin time
|
void |
SetLine(int line) |
Get request line number
|
void |
SetLogStore(String logStore) |
Set log store
|
void |
SetOffset(int offset) |
Set request offset
|
void |
SetQuery(String query) |
Set query
|
void |
SetReverse(boolean reverse) |
Set request reverse flag
|
void |
SetTopic(String topic) |
Set topic of the log store
|
void |
SetToTime(int to) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitGetAllParams, GetParam, GetProject, SetParampublic GetLogsRequest(String project, String logStore, int from, int to, String topic, String query)
project - project namelogStore - log store name of a projectfrom - begin timeto - end timetopic - topic name of a log storequery - user querypublic GetLogsRequest(String project, String logStore, int from, int to, String topic, String query, int offset, int line, boolean reverse)
project - project namelogStore - log store name of a projectfrom - begin timeto - end timetopic - topic name of a log storequery - user queryoffset - the log offset to returnline - how many lines to get, the max lines is decided by
the sls backend serverreverse - if reverse is set to true, the query will return the latest
logs firstpublic void SetLogStore(String logStore)
logStore - log store namepublic String GetLogStore()
public void SetTopic(String topic)
topic - topic namepublic String GetTopic()
public void SetQuery(String query)
query - user define querypublic String GetQuery()
public void SetFromTime(int from)
from - begin timepublic int GetFromTime()
public void SetToTime(int to)
public int GetToTime()
public void SetOffset(int offset)
offset - log offsetpublic int GetOffset()
public void SetLine(int line)
line - line numberpublic int GetLine()
public void SetReverse(boolean reverse)
reverse - reverse flagpublic boolean GetReverse()
Copyright © 2018. All Rights Reserved.