public class GetLogsRequest extends Request
| Constructor and Description |
|---|
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,
long offset,
long line,
boolean reverse)
Construct a the request
|
GetLogsRequest(String project,
String logStore,
int from,
int to,
String topic,
String query,
long offset,
long line,
boolean reverse,
boolean powerSql)
Construct a the request
|
GetLogsRequest(String project,
String logStore,
int from,
int to,
String topic,
String query,
long offset,
long line,
boolean reverse,
boolean powerSql,
boolean forward)
Construct a the request
|
GetLogsRequest(String project,
String logStore,
int from,
int to,
String topic,
String query,
long offset,
long line,
boolean reverse,
boolean forward,
String session)
Construct a the request
|
GetLogsRequest(String project,
String logStore,
int from,
int to,
String topic,
String query,
long offset,
long line,
boolean reverse,
int shard)
Construct a the request
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GetAccurate()
Get request accurate flag
|
Consts.CompressType |
getCompressType() |
boolean |
GetForward()
Get request forward flag
|
int |
GetFromNsPart() |
int |
GetFromTime()
Get begin time,
|
long |
GetLine()
Get request line number
|
String |
GetLogStore()
Get log store name
|
boolean |
GetNeedHighlight() |
long |
GetOffset()
Get request offset
|
boolean |
GetPowerSql()
Get request powerSql flag
|
String |
GetQuery()
Get Query
|
String |
getRequestBody() |
boolean |
GetReverse()
Get request reverse flag
|
int |
GetToNsPart() |
String |
GetTopic()
Get Topic
|
int |
GetToTime()
Get end time
|
void |
SetAccurate(boolean accurate)
Set request accurate flag
|
void |
setCompressType(Consts.CompressType compressType) |
void |
SetForward(boolean forward)
Set request forward flag
|
void |
SetFromNsPart(int fromNsPart) |
void |
SetFromTime(int from)
Set begin time
|
void |
SetLine(long line)
Get request line number
|
void |
SetLogStore(String logStore)
Set log store
|
void |
SetNeedHighlight(boolean needHighlight) |
void |
SetOffset(long offset)
Set request offset
|
void |
SetPowerSql(boolean powerSql)
Set request powerSql flag
|
void |
SetQuery(String query)
Set query
|
void |
SetReverse(boolean reverse)
Set request reverse flag
|
void |
SetSession(String session) |
void |
SetShard(int shard) |
void |
SetToNsPart(int toNsPart) |
void |
SetTopic(String topic)
Set topic of the log store
|
void |
SetToTime(int to) |
GetAllParams, 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, long offset, long 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 GetLogsRequest(String project, String logStore, int from, int to, String topic, String query, long offset, long line, boolean reverse, boolean powerSql)
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 GetLogsRequest(String project, String logStore, int from, int to, String topic, String query, long offset, long line, boolean reverse, boolean powerSql, boolean forward)
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 firstforward - only usable when phrase query, forward is ture means next page,
otherwise means previous pagepublic GetLogsRequest(String project, String logStore, int from, int to, String topic, String query, long offset, long line, boolean reverse, int shard)
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 firstshard - specific shardpublic GetLogsRequest(String project, String logStore, int from, int to, String topic, String query, long offset, long line, boolean reverse, boolean forward, String session)
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 firstsession - query session parampublic 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(long offset)
offset - log offsetpublic long GetOffset()
public void SetLine(long line)
line - line numberpublic long GetLine()
public void SetReverse(boolean reverse)
reverse - reverse flagpublic boolean GetReverse()
public void SetPowerSql(boolean powerSql)
powerSql - powerSql flagpublic void SetShard(int shard)
public void SetSession(String session)
public boolean GetPowerSql()
public void SetForward(boolean forward)
forward - forward flagpublic boolean GetForward()
public void SetAccurate(boolean accurate)
accurate - accurate flagpublic boolean GetAccurate()
public Consts.CompressType getCompressType()
public void setCompressType(Consts.CompressType compressType)
public void SetNeedHighlight(boolean needHighlight)
public boolean GetNeedHighlight()
public void SetFromNsPart(int fromNsPart)
public int GetFromNsPart()
public void SetToNsPart(int toNsPart)
public int GetToNsPart()
public String getRequestBody()
Copyright © 2025. All Rights Reserved.