public class GetHistogramsRequest extends Request
| Constructor and Description |
|---|
GetHistogramsRequest(String project,
String logStore,
String topic,
String query,
int from,
int to)
Construct a request with full parameters
|
GetHistogramsRequest(String project,
String logStore,
String topic,
String query,
int from,
int to,
boolean accurate)
Construct a request
|
GetHistogramsRequest(String project,
String logStore,
String topic,
String query,
int from,
int to,
boolean accurate,
boolean reverse)
Construct a request
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
GetAccurate()
Get request accurate flag
|
int |
GetFromTime()
Get begin time,
|
String |
GetLogStore()
Get log store name
|
String |
GetQuery()
Get Query
|
boolean |
GetReverse()
Get request reverse flag
|
String |
GetTopic()
Get Topic
|
int |
GetToTime()
Get end time
|
void |
SetAccurate(boolean accurate)
Set request accurate flag
|
void |
SetFromTime(int from)
Set begin time
|
void |
SetLogStore(String logStore)
Set log store
|
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, SetParampublic GetHistogramsRequest(String project, String logStore, String topic, String query, int from, int to)
project - sls projectlogStore - the logstore in the projecttopic - the topic of the logstorequery - user defined queryfrom - the begin timeto - the end timepublic GetHistogramsRequest(String project, String logStore, String topic, String query, int from, int to, boolean accurate)
project - sls projectlogStore - the logstore in the projecttopic - the topic of the logstorequery - user defined queryfrom - the begin timeto - the end timeaccurate - accurate flagpublic GetHistogramsRequest(String project, String logStore, String topic, String query, int from, int to, boolean accurate, boolean reverse)
project - sls projectlogStore - the logstore in the projecttopic - the topic of the logstorequery - user defined queryfrom - the begin timeto - the end timeaccurate - accurate flagreverse - reverse flagpublic 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 SetAccurate(boolean accurate)
accurate - accurate flagpublic boolean GetAccurate()
public void SetReverse(boolean reverse)
reverse - reverse flagpublic boolean GetReverse()
Copyright © 2025. All Rights Reserved.