Serializablepublic class PutLogsRequest extends Request
| 构造器 | 说明 |
|---|---|
PutLogsRequest(String project,
String logStore,
String topic,
String source,
byte[] logGroupBytes,
String hashKey) |
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
|
PutLogsRequest(String project,
String logStore,
String topic,
List<LogItem> logItems) |
Construct a put log request
|
| 修饰符和类型 | 方法 | 说明 |
|---|---|---|
Consts.CompressType |
GetCompressType() |
|
String |
getContentType() |
|
byte[] |
GetLogGroupBytes() |
Get all the logGroupBytes
|
ArrayList<LogItem> |
GetLogItems() |
Get all the log data
|
String |
GetLogStore() |
Get log store
|
String |
GetRouteKey() |
|
String |
GetSource() |
Get log source
|
ArrayList<TagContent> |
GetTags() |
Get all the tag
|
String |
GetTopic() |
Get the topic
|
void |
SetCompressType(Consts.CompressType compressType) |
|
void |
setContentType(String contentType) |
|
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 |
SetTags(List<TagContent> tags) |
|
void |
SetTopic(String topic) |
Set topic value
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitGetAllParams, 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 PutLogsRequest(String project, String logStore, String topic, List<LogItem> logItems)
project - project namelogStore - log store name of the projecttopic - topic name of the log storelogItems - log datapublic PutLogsRequest(String project, String logStore, String topic, String source, byte[] logGroupBytes, String hashKey)
project - project namelogStore - log store name of the projecttopic - topic name of the log storesource - source of the loglogGroupBytes - Porotbuf serialized string of LogGrouphashKey - hashKeypublic Consts.CompressType GetCompressType()
public void SetCompressType(Consts.CompressType compressType)
compressType - the compressType to setpublic String getContentType()
public void setContentType(String contentType)
public 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 ArrayList<TagContent> GetTags()
public byte[] GetLogGroupBytes()
public void SetlogItems(List<LogItem> logItems)
logItems - log datapublic void SetTags(List<TagContent> tags)
public void SetRouteKey(String hashKey)
public String GetRouteKey()
Copyright © 2018. All Rights Reserved.