@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class RetentionFilterCreateAttributes extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ENABLED |
static String |
JSON_PROPERTY_FILTER |
static String |
JSON_PROPERTY_FILTER_TYPE |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_RATE |
static String |
JSON_PROPERTY_TRACE_RATE |
boolean |
unparsed |
| Constructor and Description |
|---|
RetentionFilterCreateAttributes() |
RetentionFilterCreateAttributes(Boolean enabled,
SpansFilterCreate filter,
RetentionFilterType filterType,
String name,
Double rate) |
| Modifier and Type | Method and Description |
|---|---|
RetentionFilterCreateAttributes |
enabled(Boolean enabled) |
boolean |
equals(Object o)
Return true if this RetentionFilterCreateAttributes object is equal to o.
|
RetentionFilterCreateAttributes |
filter(SpansFilterCreate filter) |
RetentionFilterCreateAttributes |
filterType(RetentionFilterType filterType) |
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
Boolean |
getEnabled()
Enable/Disable the retention filter.
|
SpansFilterCreate |
getFilter()
The spans filter.
|
RetentionFilterType |
getFilterType()
The type of retention filter.
|
String |
getName()
The name of the retention filter.
|
Double |
getRate()
Sample rate to apply to spans going through this retention filter.
|
Double |
getTraceRate()
Sample rate to apply to traces containing spans going through this retention filter.
|
int |
hashCode() |
RetentionFilterCreateAttributes |
name(String name) |
RetentionFilterCreateAttributes |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
RetentionFilterCreateAttributes |
rate(Double rate) |
void |
setEnabled(Boolean enabled) |
void |
setFilter(SpansFilterCreate filter) |
void |
setFilterType(RetentionFilterType filterType) |
void |
setName(String name) |
void |
setRate(Double rate) |
void |
setTraceRate(Double traceRate) |
String |
toString() |
RetentionFilterCreateAttributes |
traceRate(Double traceRate) |
public boolean unparsed
public static final String JSON_PROPERTY_ENABLED
public static final String JSON_PROPERTY_FILTER
public static final String JSON_PROPERTY_FILTER_TYPE
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_RATE
public static final String JSON_PROPERTY_TRACE_RATE
public RetentionFilterCreateAttributes()
public RetentionFilterCreateAttributes(Boolean enabled, SpansFilterCreate filter, RetentionFilterType filterType, String name, Double rate)
public RetentionFilterCreateAttributes enabled(Boolean enabled)
public Boolean getEnabled()
public void setEnabled(Boolean enabled)
public RetentionFilterCreateAttributes filter(SpansFilterCreate filter)
public SpansFilterCreate getFilter()
public void setFilter(SpansFilterCreate filter)
public RetentionFilterCreateAttributes filterType(RetentionFilterType filterType)
public RetentionFilterType getFilterType()
public void setFilterType(RetentionFilterType filterType)
public RetentionFilterCreateAttributes name(String name)
public String getName()
public void setName(String name)
public RetentionFilterCreateAttributes rate(Double rate)
public Double getRate()
public void setRate(Double rate)
public RetentionFilterCreateAttributes traceRate(Double traceRate)
@Nullable public Double getTraceRate()
public void setTraceRate(Double traceRate)
public RetentionFilterCreateAttributes putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2025. All rights reserved.