Class RetentionFilterUpdateAttributes

java.lang.Object
com.datadog.api.client.v2.model.RetentionFilterUpdateAttributes

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RetentionFilterUpdateAttributes extends Object
The object describing the configuration of the retention filter to create/update.
  • Field Details

  • Constructor Details

  • Method Details

    • enabled

      public RetentionFilterUpdateAttributes enabled(Boolean enabled)
    • getEnabled

      public Boolean getEnabled()
      Enable/Disable the retention filter.
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • filter

    • getFilter

      public SpansFilterCreate getFilter()
      The spans filter. Spans matching this filter will be indexed and stored.
      Returns:
      filter
    • setFilter

      public void setFilter(SpansFilterCreate filter)
    • filterType

    • getFilterType

      public RetentionFilterAllType getFilterType()
      The type of retention filter.
      Returns:
      filterType
    • setFilterType

      public void setFilterType(RetentionFilterAllType filterType)
    • name

    • getName

      public String getName()
      The name of the retention filter.
      Returns:
      name
    • setName

      public void setName(String name)
    • rate

    • getRate

      public Double getRate()
      Sample rate to apply to spans going through this retention filter. A value of 1.0 keeps all spans matching the query.
      Returns:
      rate
    • setRate

      public void setRate(Double rate)
    • traceRate

      public RetentionFilterUpdateAttributes traceRate(Double traceRate)
    • getTraceRate

      @Nullable public Double getTraceRate()
      Sample rate to apply to traces containing spans going through this retention filter. A value of 1.0 keeps all traces with spans matching the query.
      Returns:
      traceRate
    • setTraceRate

      public void setTraceRate(Double traceRate)
    • putAdditionalProperty

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