Class LogsExclusionFilter

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsExclusionFilter extends Object
Exclusion filter is defined by a query, a sampling rule, and a active/inactive toggle.
  • Field Details

  • Constructor Details

    • LogsExclusionFilter

      public LogsExclusionFilter()
    • LogsExclusionFilter

      public LogsExclusionFilter(Double sampleRate)
  • Method Details

    • query

      public LogsExclusionFilter query(String query)
    • getQuery

      @Nullable public String getQuery()
      Default query is *, meaning all logs flowing in the index would be excluded. Scope down exclusion filter to only a subset of logs with a log query.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • sampleAttribute

      public LogsExclusionFilter sampleAttribute(String sampleAttribute)
    • getSampleAttribute

      @Nullable public String getSampleAttribute()
      Sample attribute to use for the sampling of logs going through this exclusion filter. When set, only the logs with the specified attribute are sampled.
      Returns:
      sampleAttribute
    • setSampleAttribute

      public void setSampleAttribute(String sampleAttribute)
    • sampleRate

      public LogsExclusionFilter sampleRate(Double sampleRate)
    • getSampleRate

      public Double getSampleRate()
      Sample rate to apply to logs going through this exclusion filter, a value of 1.0 excludes all logs matching the query.
      Returns:
      sampleRate
    • setSampleRate

      public void setSampleRate(Double sampleRate)
    • putAdditionalProperty

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