Class UnifiedAgentLoggingRecordTransformerFilter
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.logging.model.UnifiedAgentLoggingFilter
-
- com.oracle.bmc.logging.model.UnifiedAgentLoggingRecordTransformerFilter
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20200531") public final class UnifiedAgentLoggingRecordTransformerFilter extends UnifiedAgentLoggingFilter
Logging record transformer filter object mutates/transforms logs.Ref: https://docs.fluentd.org/filter/record_transformer
Note: Objects should always be created or deserialized using theUnifiedAgentLoggingRecordTransformerFilter.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 theUnifiedAgentLoggingRecordTransformerFilter.Builder
, which maintain a set of all explicitly set fields calledUnifiedAgentLoggingRecordTransformerFilter.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UnifiedAgentLoggingRecordTransformerFilter.Builder
-
Nested classes/interfaces inherited from class com.oracle.bmc.logging.model.UnifiedAgentLoggingFilter
UnifiedAgentLoggingFilter.FilterType
-
-
Constructor Summary
Constructors Constructor Description UnifiedAgentLoggingRecordTransformerFilter(String name, List<RecordTransformerPair> recordList, Boolean isRubyEnabled, Boolean isAutoTypecastEnabled, Boolean isRenewRecordEnabled, String renewTimeKey, List<String> keepKeys, List<String> removeKeys)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UnifiedAgentLoggingRecordTransformerFilter.Builder
builder()
Create a new builder.boolean
equals(Object o)
Boolean
getIsAutoTypecastEnabled()
If true, automatically casts the field types.Boolean
getIsRenewRecordEnabled()
If true, it modifies a new empty hashBoolean
getIsRubyEnabled()
When set to true, the full Ruby syntax is enabled in the ${} expression.List<String>
getKeepKeys()
A list of keys to keep.List<RecordTransformerPair>
getRecordList()
Add new key-value pairs in logsList<String>
getRemoveKeys()
A list of keys to deleteString
getRenewTimeKey()
Overwrites the time of logs with this value, this value must be a Unix timestamp.int
hashCode()
UnifiedAgentLoggingRecordTransformerFilter.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.-
Methods inherited from class com.oracle.bmc.logging.model.UnifiedAgentLoggingFilter
getName
-
-
-
-
Constructor Detail
-
UnifiedAgentLoggingRecordTransformerFilter
@Deprecated public UnifiedAgentLoggingRecordTransformerFilter(String name, List<RecordTransformerPair> recordList, Boolean isRubyEnabled, Boolean isAutoTypecastEnabled, Boolean isRenewRecordEnabled, String renewTimeKey, List<String> keepKeys, List<String> removeKeys)
Deprecated.
-
-
Method Detail
-
builder
public static UnifiedAgentLoggingRecordTransformerFilter.Builder builder()
Create a new builder.
-
toBuilder
public UnifiedAgentLoggingRecordTransformerFilter.Builder toBuilder()
-
getRecordList
public List<RecordTransformerPair> getRecordList()
Add new key-value pairs in logs- Returns:
- the value
-
getIsRubyEnabled
public Boolean getIsRubyEnabled()
When set to true, the full Ruby syntax is enabled in the ${} expression.- Returns:
- the value
-
getIsAutoTypecastEnabled
public Boolean getIsAutoTypecastEnabled()
If true, automatically casts the field types.- Returns:
- the value
-
getIsRenewRecordEnabled
public Boolean getIsRenewRecordEnabled()
If true, it modifies a new empty hash- Returns:
- the value
-
getRenewTimeKey
public String getRenewTimeKey()
Overwrites the time of logs with this value, this value must be a Unix timestamp.- Returns:
- the value
-
getKeepKeys
public List<String> getKeepKeys()
A list of keys to keep.Only relevant if isRenewRecordEnabled is set to true
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classUnifiedAgentLoggingFilter
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Overrides:
toString
in classUnifiedAgentLoggingFilter
- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classUnifiedAgentLoggingFilter
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUnifiedAgentLoggingFilter
-
-