Package com.datadog.api.client.v2.model
Class RetentionFilterCreateAttributes
java.lang.Object
com.datadog.api.client.v2.model.RetentionFilterCreateAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class RetentionFilterCreateAttributes
extends Object
The object describing the configuration of the retention filter to create/update.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRetentionFilterCreateAttributes(Boolean enabled, SpansFilterCreate filter, RetentionFilterType filterType, String name, Double rate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this RetentionFilterCreateAttributes object is equal to o.filter(SpansFilterCreate filter) filterType(RetentionFilterType filterType) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Enable/Disable the retention filter.The spans filter.The type of retention filter.getName()The name of the retention filter.getRate()Sample rate to apply to spans going through this retention filter.Sample rate to apply to traces containing spans going through this retention filter.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetEnabled(Boolean enabled) voidsetFilter(SpansFilterCreate filter) voidsetFilterType(RetentionFilterType filterType) voidvoidvoidsetTraceRate(Double traceRate) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_FILTER
- See Also:
-
JSON_PROPERTY_FILTER_TYPE
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_RATE
- See Also:
-
JSON_PROPERTY_TRACE_RATE
- See Also:
-
-
Constructor Details
-
RetentionFilterCreateAttributes
public RetentionFilterCreateAttributes() -
RetentionFilterCreateAttributes
public RetentionFilterCreateAttributes(Boolean enabled, SpansFilterCreate filter, RetentionFilterType filterType, String name, Double rate)
-
-
Method Details
-
enabled
-
getEnabled
Enable/Disable the retention filter.- Returns:
- enabled
-
setEnabled
-
filter
-
getFilter
The spans filter. Spans matching this filter will be indexed and stored.- Returns:
- filter
-
setFilter
-
filterType
-
getFilterType
The type of retention filter. The value should always be spans-sampling-processor.- Returns:
- filterType
-
setFilterType
-
name
-
getName
The name of the retention filter.- Returns:
- name
-
setName
-
rate
-
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
-
traceRate
-
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
-
putAdditionalProperty
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 setvalue- The associated value- Returns:
- RetentionFilterCreateAttributes
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
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
Return true if this RetentionFilterCreateAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-