Class RetentionFilterAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RetentionFilterAttributes extends Object
The attributes of the retention filter.
  • Field Details

  • Constructor Details

    • RetentionFilterAttributes

      public RetentionFilterAttributes()
  • Method Details

    • createdAt

      public RetentionFilterAttributes createdAt(Long createdAt)
    • getCreatedAt

      @Nullable public Long getCreatedAt()
      The creation timestamp of the retention filter.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(Long createdAt)
    • createdBy

      public RetentionFilterAttributes createdBy(String createdBy)
    • getCreatedBy

      @Nullable public String getCreatedBy()
      The creator of the retention filter.
      Returns:
      createdBy
    • setCreatedBy

      public void setCreatedBy(String createdBy)
    • editable

      public RetentionFilterAttributes editable(Boolean editable)
    • getEditable

      @Nullable public Boolean getEditable()
      Shows whether the filter can be edited.
      Returns:
      editable
    • setEditable

      public void setEditable(Boolean editable)
    • enabled

      public RetentionFilterAttributes enabled(Boolean enabled)
    • getEnabled

      @Nullable public Boolean getEnabled()
      The status of the retention filter (Enabled/Disabled).
      Returns:
      enabled
    • setEnabled

      public void setEnabled(Boolean enabled)
    • executionOrder

      public RetentionFilterAttributes executionOrder(Long executionOrder)
    • getExecutionOrder

      @Nullable public Long getExecutionOrder()
      The execution order of the retention filter.
      Returns:
      executionOrder
    • setExecutionOrder

      public void setExecutionOrder(Long executionOrder)
    • filter

      public RetentionFilterAttributes filter(SpansFilter filter)
    • getFilter

      @Nullable public SpansFilter getFilter()
      The spans filter used to index spans.
      Returns:
      filter
    • setFilter

      public void setFilter(SpansFilter filter)
    • filterType

      public RetentionFilterAttributes filterType(RetentionFilterType filterType)
    • getFilterType

      @Nullable public RetentionFilterType getFilterType()
      The type of retention filter. The value should always be spans-sampling-processor.
      Returns:
      filterType
    • setFilterType

      public void setFilterType(RetentionFilterType filterType)
    • modifiedAt

      public RetentionFilterAttributes modifiedAt(Long modifiedAt)
    • getModifiedAt

      @Nullable public Long getModifiedAt()
      The modification timestamp of the retention filter.
      Returns:
      modifiedAt
    • setModifiedAt

      public void setModifiedAt(Long modifiedAt)
    • modifiedBy

      public RetentionFilterAttributes modifiedBy(String modifiedBy)
    • getModifiedBy

      @Nullable public String getModifiedBy()
      The modifier of the retention filter.
      Returns:
      modifiedBy
    • setModifiedBy

      public void setModifiedBy(String modifiedBy)
    • name

      public RetentionFilterAttributes name(String name)
    • getName

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

      public void setName(String name)
    • rate

      public RetentionFilterAttributes rate(Double rate)
    • getRate

      @Nullable 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 RetentionFilterAttributes 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 RetentionFilterAttributes 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:
      RetentionFilterAttributes
    • 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 RetentionFilterAttributes 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