public class PutLogsRequest extends Request
| 构造器和说明 |
|---|
PutLogsRequest(String project,
String logStore,
String topic,
List<LogItem> logItems)
Construct a put log request
|
PutLogsRequest(String project,
String logStore,
String topic,
String source,
List<LogItem> logItems)
Construct a put log request
|
PutLogsRequest(String project,
String logStore,
String topic,
String source,
List<LogItem> logItems,
String hashKey)
Construct a put log request
|
| 限定符和类型 | 方法和说明 |
|---|---|
Consts.CompressType |
GetCompressType() |
ArrayList<LogItem> |
GetLogItems()
Get all the log data
|
String |
GetLogStore()
Get log store
|
String |
GetRouteKey() |
String |
GetSource()
Get log source
|
String |
GetTopic()
Get the topic
|
void |
SetCompressType(Consts.CompressType compressType) |
void |
SetlogItems(List<LogItem> logItems)
Set the log data , shallow copy is used to set the log data
|
void |
SetLogStore(String logStore)
Set log store
|
void |
SetRouteKey(String hashKey) |
void |
SetSource(String source)
Set log source
|
void |
SetTopic(String topic)
Set topic value
|
GetAllParams, GetParam, GetProject, SetParampublic PutLogsRequest(String project, String logStore, String topic, String source, List<LogItem> logItems, String hashKey)
project - project namelogStore - log store name of the projecttopic - topic name of the log storesource - source of the loglogItems - log datahashKey - hashKeypublic PutLogsRequest(String project, String logStore, String topic, String source, List<LogItem> logItems)
project - project namelogStore - log store name of the projecttopic - topic name of the log storesource - source of the loglogItems - log datapublic Consts.CompressType GetCompressType()
public void SetCompressType(Consts.CompressType compressType)
compressType - the compressType to setpublic String GetLogStore()
public void SetLogStore(String logStore)
logStore - log store namepublic String GetTopic()
public void SetTopic(String topic)
topic - topic valuepublic String GetSource()
public void SetSource(String source)
source - log sourcepublic void SetlogItems(List<LogItem> logItems)
logItems - log datapublic void SetRouteKey(String hashKey)
public String GetRouteKey()
Copyright © 2016. All Rights Reserved.