public class GetLogsRequest extends SlsRequest
构造器和说明 |
---|
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) |
GetAllParams, GetParam, GetProject, SetParam
public 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 © 2015. All Rights Reserved.