Class LogsLookupProcessor

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsLookupProcessor extends Object
Use the Lookup Processor to define a mapping between a log attribute and a human readable value saved in the processors mapping table. For example, you can use the Lookup Processor to map an internal service ID into a human readable service name. Alternatively, you could also use it to check if the MAC address that just attempted to connect to the production environment belongs to your list of stolen machines.
  • Field Details

  • Constructor Details

  • Method Details

    • defaultLookup

      public LogsLookupProcessor defaultLookup(String defaultLookup)
    • getDefaultLookup

      @Nullable public String getDefaultLookup()
      Value to set the target attribute if the source value is not found in the list.
      Returns:
      defaultLookup
    • setDefaultLookup

      public void setDefaultLookup(String defaultLookup)
    • isEnabled

      public LogsLookupProcessor isEnabled(Boolean isEnabled)
    • getIsEnabled

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

      public void setIsEnabled(Boolean isEnabled)
    • lookupTable

      public LogsLookupProcessor lookupTable(List<String> lookupTable)
    • addLookupTableItem

      public LogsLookupProcessor addLookupTableItem(String lookupTableItem)
    • getLookupTable

      public List<String> getLookupTable()
      Mapping table of values for the source attribute and their associated target attribute values, formatted as ["source_key1,target_value1", "source_key2,target_value2"]
      Returns:
      lookupTable
    • setLookupTable

      public void setLookupTable(List<String> lookupTable)
    • name

      public LogsLookupProcessor name(String name)
    • getName

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

      public void setName(String name)
    • source

      public LogsLookupProcessor source(String source)
    • getSource

      public String getSource()
      Source attribute used to perform the lookup.
      Returns:
      source
    • setSource

      public void setSource(String source)
    • target

      public LogsLookupProcessor target(String target)
    • getTarget

      public String getTarget()
      Name of the attribute that contains the corresponding value in the mapping list or the default_lookup if not found in the mapping list.
      Returns:
      target
    • setTarget

      public void setTarget(String target)
    • type

    • getType

      public LogsLookupProcessorType getType()
      Type of logs lookup processor.
      Returns:
      type
    • setType

      public void setType(LogsLookupProcessorType type)
    • putAdditionalProperty

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