Package com.datadog.api.client.v1.model
Class LogsSchemaRemapper
java.lang.Object
com.datadog.api.client.v1.model.LogsSchemaRemapper
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsSchemaRemapper
extends Object
The schema remapper maps source log fields to their correct fields.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogsSchemaRemapper(String name, List<String> sources, String target, LogsSchemaRemapperType type) -
Method Summary
Modifier and TypeMethodDescriptionaddSourcesItem(String sourcesItem) booleanReturn true if this LogsSchemaRemapper object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getName()Name of the logs schema remapper.Whether to override the target element if it's already set.Remove or preserve the remapped source element.Array of source attributes.Target field to map log source field to.If thetarget_typeof the remapper isattribute, try to cast the value to a new specific type.getType()Type of logs schema remapper.inthashCode()overrideOnConflict(Boolean overrideOnConflict) preserveSource(Boolean preserveSource) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidsetOverrideOnConflict(Boolean overrideOnConflict) voidsetPreserveSource(Boolean preserveSource) voidsetSources(List<String> sources) voidvoidsetTargetFormat(TargetFormatType targetFormat) voidtargetFormat(TargetFormatType targetFormat) toString()type(LogsSchemaRemapperType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_OVERRIDE_ON_CONFLICT
- See Also:
-
JSON_PROPERTY_PRESERVE_SOURCE
- See Also:
-
JSON_PROPERTY_SOURCES
- See Also:
-
JSON_PROPERTY_TARGET
- See Also:
-
JSON_PROPERTY_TARGET_FORMAT
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsSchemaRemapper
public LogsSchemaRemapper() -
LogsSchemaRemapper
public LogsSchemaRemapper(String name, List<String> sources, String target, LogsSchemaRemapperType type)
-
-
Method Details
-
name
-
getName
Name of the logs schema remapper.- Returns:
- name
-
setName
-
overrideOnConflict
-
getOverrideOnConflict
Whether to override the target element if it's already set.- Returns:
- overrideOnConflict
-
setOverrideOnConflict
-
preserveSource
-
getPreserveSource
Remove or preserve the remapped source element.- Returns:
- preserveSource
-
setPreserveSource
-
sources
-
addSourcesItem
-
getSources
Array of source attributes.- Returns:
- sources
-
setSources
-
target
-
getTarget
Target field to map log source field to.- Returns:
- target
-
setTarget
-
targetFormat
-
getTargetFormat
If thetarget_typeof the remapper isattribute, try to cast the value to a new specific type. If the cast is not possible, the original type is kept.string,integer, ordoubleare the possible types. If thetarget_typeistag, this parameter may not be specified.- Returns:
- targetFormat
-
setTargetFormat
-
type
-
getType
Type of logs schema remapper.- Returns:
- type
-
setType
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LogsSchemaRemapper
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LogsSchemaRemapper object is equal to o. -
hashCode
public int hashCode() -
toString
-