public class LogFormat extends AbstractModel
header, skipSign
Constructor and Description |
---|
LogFormat() |
LogFormat(LogFormat source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getBatchPrefix()
Get 在每个日志投递批次之前添加的字符串。每个日志投递批次可能包含多条日志记录。
|
String |
getBatchSuffix()
Get 在每个日志投递批次后附加的字符串。
|
String |
getFieldDelimiter()
Get 单条日志记录内,插入字段之间作为分隔符的字符串,取值有:
\t:制表符;
,:半角逗号;
;:半角分号。
|
String |
getFormatType()
Get 日志投递的预设输出格式类型,取值有:
json:使用预设日志输出格式 JSON Lines,单条日志中的字段以键值对方式呈现;
csv:使用预设日志输出格式 csv,单条日志中仅呈现字段值,不呈现字段名称。
|
String |
getRecordDelimiter()
Get 插入日志记录之间作为分隔符的字符串,取值有:
\n:换行符;
\t:制表符;
,:半角逗号。
|
String |
getRecordPrefix()
Get 在每条日志记录之前添加的字符串。
|
String |
getRecordSuffix()
Get 在每条日志记录后附加的字符串。
|
void |
setBatchPrefix(String BatchPrefix)
Set 在每个日志投递批次之前添加的字符串。每个日志投递批次可能包含多条日志记录。
|
void |
setBatchSuffix(String BatchSuffix)
Set 在每个日志投递批次后附加的字符串。
|
void |
setFieldDelimiter(String FieldDelimiter)
Set 单条日志记录内,插入字段之间作为分隔符的字符串,取值有:
\t:制表符;
,:半角逗号;
;:半角分号。
|
void |
setFormatType(String FormatType)
Set 日志投递的预设输出格式类型,取值有:
json:使用预设日志输出格式 JSON Lines,单条日志中的字段以键值对方式呈现;
csv:使用预设日志输出格式 csv,单条日志中仅呈现字段值,不呈现字段名称。
|
void |
setRecordDelimiter(String RecordDelimiter)
Set 插入日志记录之间作为分隔符的字符串,取值有:
\n:换行符;
\t:制表符;
,:半角逗号。
|
void |
setRecordPrefix(String RecordPrefix)
Set 在每条日志记录之前添加的字符串。
|
void |
setRecordSuffix(String RecordSuffix)
Set 在每条日志记录后附加的字符串。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public LogFormat()
public LogFormat(LogFormat source)
public String getFormatType()
public void setFormatType(String FormatType)
FormatType
- 日志投递的预设输出格式类型,取值有:
public String getBatchPrefix()
public void setBatchPrefix(String BatchPrefix)
BatchPrefix
- 在每个日志投递批次之前添加的字符串。每个日志投递批次可能包含多条日志记录。public String getBatchSuffix()
public void setBatchSuffix(String BatchSuffix)
BatchSuffix
- 在每个日志投递批次后附加的字符串。public String getRecordPrefix()
public void setRecordPrefix(String RecordPrefix)
RecordPrefix
- 在每条日志记录之前添加的字符串。public String getRecordSuffix()
public void setRecordSuffix(String RecordSuffix)
RecordSuffix
- 在每条日志记录后附加的字符串。public String getRecordDelimiter()
public void setRecordDelimiter(String RecordDelimiter)
RecordDelimiter
- 插入日志记录之间作为分隔符的字符串,取值有:
public String getFieldDelimiter()
public void setFieldDelimiter(String FieldDelimiter)
FieldDelimiter
- 单条日志记录内,插入字段之间作为分隔符的字符串,取值有:
Copyright © 2024. All rights reserved.