public class PutLogsRequest extends Request
| Constructor and Description |
|---|
PutLogsRequest(String project,
String logStore,
String topic,
List<LogItem> logItems)
Construct a put log 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
|
| Modifier and Type | Method and Description |
|---|---|
Consts.CompressType |
getCompressType() |
Consts.CompressType |
GetCompressType() |
String |
getContentType() |
String |
getHashKey() |
Integer |
getHashRouteKeySeqId() |
byte[] |
GetLogGroupBytes()
Get all the logGroupBytes
|
ArrayList<LogItem> |
GetLogItems()
Get all the log data
|
String |
GetLogStore()
Get log store
|
String |
getProcessor() |
String |
GetRouteKey()
Deprecated.
Use getHashKey() instead.
|
String |
GetSource()
Get log source
|
ArrayList<TagContent> |
GetTags()
Get all the tag
|
String |
GetTopic()
Get the topic
|
void |
setCompressType(Consts.CompressType compressType) |
void |
SetCompressType(Consts.CompressType compressType) |
void |
setContentType(String contentType) |
void |
setHashKey(String mHashKey) |
void |
setHashRouteKeySeqId(Integer hashRouteKeySeqId) |
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 |
setProcessor(String processor) |
void |
SetRouteKey(String hashKey)
Deprecated.
Use setHashKey() instead.
|
void |
SetSource(String source)
Set log source
|
void |
SetTags(List<TagContent> tags) |
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 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 Consts.CompressType getCompressType()
public void setCompressType(Consts.CompressType compressType)
public 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)
@Deprecated public void SetRouteKey(String hashKey)
hashKey - The hash key@Deprecated public String GetRouteKey()
public String getHashKey()
public void setHashKey(String mHashKey)
public Integer getHashRouteKeySeqId()
public void setHashRouteKeySeqId(Integer hashRouteKeySeqId)
public String getProcessor()
public void setProcessor(String processor)
Copyright © 2025. All Rights Reserved.