Package com.datadog.api.client.v1.model
Class LogsAttributeRemapper
java.lang.Object
com.datadog.api.client.v1.model.LogsAttributeRemapper
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LogsAttributeRemapper
extends Object
The remapper processor remaps any source attribute(s) or tag to another target attribute or tag.
Constraints on the tag/attribute name are explained in the Tag Best Practice
documentation. Some additional constraints are applied as
: or ,
are not allowed in the target tag/attribute name.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLogsAttributeRemapper(List<String> sources, String target, LogsAttributeRemapperType type) -
Method Summary
Modifier and TypeMethodDescriptionaddSourcesItem(String sourcesItem) booleanReturn true if this LogsAttributeRemapper object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Whether or not the processor is enabled.getName()Name of the processor.Whether to override the target element if it's already set.Remove or preserve the remapped source element.Array of source attributes.Defines if the sources are from logattributeortag.Final attribute or tag name to remap the sources to.If thetarget_typeof the remapper isattribute, try to cast the value to a new specific type.Defines if the final attribute or tag name is from logattributeortag.getType()Type of logs attribute remapper.inthashCode()overrideOnConflict(Boolean overrideOnConflict) preserveSource(Boolean preserveSource) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetIsEnabled(Boolean isEnabled) voidvoidsetOverrideOnConflict(Boolean overrideOnConflict) voidsetPreserveSource(Boolean preserveSource) voidsetSources(List<String> sources) voidsetSourceType(String sourceType) voidvoidsetTargetFormat(TargetFormatType targetFormat) voidsetTargetType(String targetType) voidsourceType(String sourceType) targetFormat(TargetFormatType targetFormat) targetType(String targetType) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_IS_ENABLED
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_OVERRIDE_ON_CONFLICT
- See Also:
-
JSON_PROPERTY_PRESERVE_SOURCE
- See Also:
-
JSON_PROPERTY_SOURCE_TYPE
- See Also:
-
JSON_PROPERTY_SOURCES
- See Also:
-
JSON_PROPERTY_TARGET
- See Also:
-
JSON_PROPERTY_TARGET_FORMAT
- See Also:
-
JSON_PROPERTY_TARGET_TYPE
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
LogsAttributeRemapper
public LogsAttributeRemapper() -
LogsAttributeRemapper
-
-
Method Details
-
isEnabled
-
getIsEnabled
Whether or not the processor is enabled.- Returns:
- isEnabled
-
setIsEnabled
-
name
-
getName
Name of the processor.- 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
-
sourceType
-
getSourceType
Defines if the sources are from logattributeortag.- Returns:
- sourceType
-
setSourceType
-
sources
-
addSourcesItem
-
getSources
Array of source attributes.- Returns:
- sources
-
setSources
-
target
-
getTarget
Final attribute or tag name to remap the sources 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
-
targetType
-
getTargetType
Defines if the final attribute or tag name is from logattributeortag.- Returns:
- targetType
-
setTargetType
-
type
-
getType
Type of logs attribute 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:
- LogsAttributeRemapper
-
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 LogsAttributeRemapper object is equal to o. -
hashCode
public int hashCode() -
toString
-