public class ConsumerContent extends AbstractModel
header, skipSign
Constructor and Description |
---|
ConsumerContent() |
ConsumerContent(ConsumerContent 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 |
---|---|
Boolean |
getEnableTag()
Get Whether to deliver TAG information.
|
Long |
getJsonType()
Get Deliver in JSON format.JsonType is 0: Consistent with the original log, no escape.
|
String[] |
getMetaFields()
Get List of metadata to ship.
|
Boolean |
getTagJsonNotTiled()
Get When EnableTag is true, the TagJsonNotTiled field must be filled.TagJsonNotTiled is used to indicate whether tag information is JSON flattened.When TagJsonNotTiled is true, it is not flattened.
|
Long |
getTimestampAccuracy()
Get Delivery timestamp precision, optional [1: second; 2: millisecond], default is 1.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
setEnableTag(Boolean EnableTag)
Set Whether to deliver TAG information.
|
void |
setJsonType(Long JsonType)
Set Deliver in JSON format.JsonType is 0: Consistent with the original log, no escape.
|
void |
setMetaFields(String[] MetaFields)
Set List of metadata to ship.
|
void |
setTagJsonNotTiled(Boolean TagJsonNotTiled)
Set When EnableTag is true, the TagJsonNotTiled field must be filled.TagJsonNotTiled is used to indicate whether tag information is JSON flattened.When TagJsonNotTiled is true, it is not flattened.
|
void |
setTimestampAccuracy(Long TimestampAccuracy)
Set Delivery timestamp precision, optional [1: second; 2: millisecond], default is 1.Note: This field may return null, indicating that no valid values can be obtained.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ConsumerContent()
public ConsumerContent(ConsumerContent source)
public Boolean getEnableTag()
public void setEnableTag(Boolean EnableTag)
EnableTag
- Whether to deliver TAG information.
When EnableTag is true, it indicates the delivery of TAG metadata.Note: This field may return null, indicating that no valid values can be obtained.public String[] getMetaFields()
public void setMetaFields(String[] MetaFields)
MetaFields
- List of metadata to ship. Supported metadata types: \_\_SOURCE\_\_, \_\_FILENAME\_\_, \_\_TIMESTAMP\_\_, \_\_HOSTNAME\_\_, and \_\_PKGID\_\_.
Note: This field may return null, indicating that no valid values can be obtained.public Boolean getTagJsonNotTiled()
public void setTagJsonNotTiled(Boolean TagJsonNotTiled)
TagJsonNotTiled
- When EnableTag is true, the TagJsonNotTiled field must be filled.TagJsonNotTiled is used to indicate whether tag information is JSON flattened.When TagJsonNotTiled is true, it is not flattened. Example:TAG information: `{"__TAG__":{"fieldA":200,"fieldB":"text"}}`
Untiled: `{"__TAG__":{"fieldA":200,"fieldB":"text"}}`When TagJsonNotTiled is false, the data is tiled. Example:TAG information: `{"__TAG__":{"fieldA":200,"fieldB":"text"}}`Tiled: `{"__TAG__.fieldA":200,"__TAG__.fieldB":"text"}`
Note: This field may return null, indicating that no valid values can be obtained.public Long getTimestampAccuracy()
public void setTimestampAccuracy(Long TimestampAccuracy)
TimestampAccuracy
- Delivery timestamp precision, optional [1: second; 2: millisecond], default is 1.Note: This field may return null, indicating that no valid values can be obtained.public Long getJsonType()
public void setJsonType(Long JsonType)
JsonType
- Deliver in JSON format.JsonType is 0: Consistent with the original log, no escape. Example:
Original log: `{"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}}`Deliver to CKafka: `{"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}}`JsonType is 1: Escaped. Example:Original log: `{"a":"aa", "b":{"b1":"b1b1", "c1":"c1c1"}}`Delivered to CKafka: `{"a":"aa","b":"{\"b1\":\"b1b1\", \"c1\":\"c1c1\"}"}`
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2024. All rights reserved.