@Generated(value="OracleSDKGenerator", comments="API Version: 20200531") public final class UnifiedAgentParserFilter extends UnifiedAgentLoggingFilter
Logging parser filter object. Ref: https://docs.fluentd.org/filter/parser
Note: Objects should always be created or deserialized using the UnifiedAgentParserFilter.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the UnifiedAgentParserFilter.Builder
, which maintain a
set of all explicitly set fields called UnifiedAgentParserFilter.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
UnifiedAgentParserFilter.Builder |
UnifiedAgentLoggingFilter.FilterType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
UnifiedAgentParserFilter(String name,
UnifiedAgentParser parser,
String keyName,
Boolean reserveTime,
Boolean reserveData,
Boolean removeKeyNameField,
Boolean replaceInvalidSequence,
String injectKeyPrefix,
String hashValueField,
Boolean emitInvalidRecordToError)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static UnifiedAgentParserFilter.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getEmitInvalidRecordToError()
If true, emit invalid record to @ERROR label.
|
String |
getHashValueField()
Store the parsed values as a hash value in a field.
|
String |
getInjectKeyPrefix()
Store the parsed values with the specified key name prefix.
|
String |
getKeyName()
The field name in the record to parse.
|
UnifiedAgentParser |
getParser() |
Boolean |
getRemoveKeyNameField()
If true, remove the keyName field when parsing is succeeded.
|
Boolean |
getReplaceInvalidSequence()
If true, the invalid string is replaced with safe characters and is re-parsed.
|
Boolean |
getReserveData()
If true, keep the original key-value pair in the parsed result.
|
Boolean |
getReserveTime()
If true, keep the original event time in the parsed result.
|
int |
hashCode() |
UnifiedAgentParserFilter.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getName
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public UnifiedAgentParserFilter(String name, UnifiedAgentParser parser, String keyName, Boolean reserveTime, Boolean reserveData, Boolean removeKeyNameField, Boolean replaceInvalidSequence, String injectKeyPrefix, String hashValueField, Boolean emitInvalidRecordToError)
public static UnifiedAgentParserFilter.Builder builder()
Create a new builder.
public UnifiedAgentParserFilter.Builder toBuilder()
public UnifiedAgentParser getParser()
public String getKeyName()
The field name in the record to parse.
public Boolean getReserveTime()
If true, keep the original event time in the parsed result.
public Boolean getReserveData()
If true, keep the original key-value pair in the parsed result.
public Boolean getRemoveKeyNameField()
If true, remove the keyName field when parsing is succeeded.
public Boolean getReplaceInvalidSequence()
If true, the invalid string is replaced with safe characters and is re-parsed.
public String getInjectKeyPrefix()
Store the parsed values with the specified key name prefix.
public String getHashValueField()
Store the parsed values as a hash value in a field.
public Boolean getEmitInvalidRecordToError()
If true, emit invalid record to @ERROR label. Invalid cases are: 1) key does not exist; 2) the format does not match; or 3) an unexpected error. You can rescue unexpected format logs in the @ERROR lable. If you want to ignore these errors, set this to false.
public String toString()
toString
in class UnifiedAgentLoggingFilter
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class UnifiedAgentLoggingFilter
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class UnifiedAgentLoggingFilter
public int hashCode()
hashCode
in class UnifiedAgentLoggingFilter
Copyright © 2016–2024. All rights reserved.