Class LogsArrayMapProcessor

java.lang.Object
com.datadog.api.client.v1.model.LogsArrayMapProcessor

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsArrayMapProcessor extends Object
The array-map processor transforms each element of a source array by applying sub-processors in order and collecting the results into a target array. Results can be written to a new array, to the source array (in-place), or to an existing target array. Sub-processors can read from $sourceElem.<field> (object element field), bare $sourceElem (primitive element), or any parent log attribute path. Sub-processors write to $targetElem.<field> (object output field) or bare $targetElem (primitive output).
  • Field Details

  • Constructor Details

  • Method Details

    • isEnabled

      public LogsArrayMapProcessor 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 LogsArrayMapProcessor name(String name)
    • getName

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

      public void setName(String name)
    • preserveSource

      public LogsArrayMapProcessor preserveSource(Boolean preserveSource)
    • getPreserveSource

      @Nullable public Boolean getPreserveSource()
      When false and source != target, the source attribute is removed after processing. Cannot be false when source == target.
      Returns:
      preserveSource
    • setPreserveSource

      public void setPreserveSource(Boolean preserveSource)
    • processors

      public LogsArrayMapProcessor processors(List<LogsArrayMapSubProcessor> processors)
    • addProcessorsItem

      public LogsArrayMapProcessor addProcessorsItem(LogsArrayMapSubProcessor processorsItem)
    • getProcessors

      public List<LogsArrayMapSubProcessor> getProcessors()
      Sub-processors applied to each element. Allowed types: attribute-remapper, string-builder-processor, arithmetic-processor, category-processor .
      Returns:
      processors
    • setProcessors

      public void setProcessors(List<LogsArrayMapSubProcessor> processors)
    • source

      public LogsArrayMapProcessor source(String source)
    • getSource

      public String getSource()
      Attribute path of the source array. Elements are read-only via $sourceElem inside sub-processors.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • target

      public LogsArrayMapProcessor target(String target)
    • getTarget

      public String getTarget()
      Attribute path of the output array. Sub-processors write to $targetElem (or $targetElem.<field>) to build each output element.
      Returns:
      target
    • setTarget

      public void setTarget(String target)
    • type

    • getType

      public LogsArrayMapProcessorType getType()
      Type of logs array-map processor.
      Returns:
      type
    • setType

      public void setType(LogsArrayMapProcessorType type)
    • putAdditionalProperty

      public LogsArrayMapProcessor 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:
      LogsArrayMapProcessor
    • 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 LogsArrayMapProcessor 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