Class LogsMessageRemapper

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsMessageRemapper extends Object
The message is a key attribute in Datadog. It is displayed in the message column of the Log Explorer and you can do full string search on it. Use this Processor to define one or more attributes as the official log message.

Note: If multiple log message remapper processors can be applied to a given log, only the first one (according to the pipeline order) is taken into account.

  • Field Details

  • Constructor Details

  • Method Details

    • isEnabled

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

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

      public void setName(String name)
    • sources

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

      public LogsMessageRemapper addSourcesItem(String sourcesItem)
    • getSources

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

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

    • getType

      public LogsMessageRemapperType getType()
      Type of logs message remapper.
      Returns:
      type
    • setType

      public void setType(LogsMessageRemapperType type)
    • putAdditionalProperty

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