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 Details

  • Constructor Details

  • Method Details

    • isEnabled

      public LogsAttributeRemapper isEnabled(Boolean isEnabled)
    • getIsEnabled

      @Nullable public Boolean getIsEnabled()
      Whether or not the processor is enabled.
      Returns:
      isEnabled
    • setIsEnabled

      public void setIsEnabled(Boolean isEnabled)
    • name

      public LogsAttributeRemapper name(String name)
    • getName

      @Nullable public String getName()
      Name of the processor.
      Returns:
      name
    • setName

      public void setName(String name)
    • overrideOnConflict

      public LogsAttributeRemapper overrideOnConflict(Boolean overrideOnConflict)
    • getOverrideOnConflict

      @Nullable public Boolean getOverrideOnConflict()
      Whether to override the target element if it's already set.
      Returns:
      overrideOnConflict
    • setOverrideOnConflict

      public void setOverrideOnConflict(Boolean overrideOnConflict)
    • preserveSource

      public LogsAttributeRemapper preserveSource(Boolean preserveSource)
    • getPreserveSource

      @Nullable public Boolean getPreserveSource()
      Remove or preserve the remapped source element.
      Returns:
      preserveSource
    • setPreserveSource

      public void setPreserveSource(Boolean preserveSource)
    • sourceType

      public LogsAttributeRemapper sourceType(String sourceType)
    • getSourceType

      @Nullable public String getSourceType()
      Defines if the sources are from log attribute or tag.
      Returns:
      sourceType
    • setSourceType

      public void setSourceType(String sourceType)
    • sources

      public LogsAttributeRemapper sources(List<String> sources)
    • addSourcesItem

      public LogsAttributeRemapper addSourcesItem(String sourcesItem)
    • getSources

      public List<String> getSources()
      Array of source attributes.
      Returns:
      sources
    • setSources

      public void setSources(List<String> sources)
    • target

      public LogsAttributeRemapper target(String target)
    • getTarget

      public String getTarget()
      Final attribute or tag name to remap the sources to.
      Returns:
      target
    • setTarget

      public void setTarget(String target)
    • targetFormat

      public LogsAttributeRemapper targetFormat(TargetFormatType targetFormat)
    • getTargetFormat

      @Nullable public TargetFormatType getTargetFormat()
      If the target_type of the remapper is attribute, try to cast the value to a new specific type. If the cast is not possible, the original type is kept. string, integer, or double are the possible types. If the target_type is tag, this parameter may not be specified.
      Returns:
      targetFormat
    • setTargetFormat

      public void setTargetFormat(TargetFormatType targetFormat)
    • targetType

      public LogsAttributeRemapper targetType(String targetType)
    • getTargetType

      @Nullable public String getTargetType()
      Defines if the final attribute or tag name is from log attribute or tag .
      Returns:
      targetType
    • setTargetType

      public void setTargetType(String targetType)
    • type

    • getType

      public LogsAttributeRemapperType getType()
      Type of logs attribute remapper.
      Returns:
      type
    • setType

      public void setType(LogsAttributeRemapperType type)
    • putAdditionalProperty

      public LogsAttributeRemapper putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      LogsAttributeRemapper
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this LogsAttributeRemapper object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object