Package com.datadog.api.client.v1.model
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this LogsExclusionFilter object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getQuery()Default query is*, meaning all logs flowing in the index would be excluded.Sample attribute to use for the sampling of logs going through this exclusion filter.Sample rate to apply to logs going through this exclusion filter, a value of 1.0 excludes all logs matching the query.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.sampleAttribute(String sampleAttribute) sampleRate(Double sampleRate) voidvoidsetSampleAttribute(String sampleAttribute) voidsetSampleRate(Double sampleRate) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_QUERY
- See Also:
-
JSON_PROPERTY_SAMPLE_ATTRIBUTE
- See Also:
-
JSON_PROPERTY_SAMPLE_RATE
- See Also:
-
-
Constructor Details
-
LogsExclusionFilter
public LogsExclusionFilter() -
LogsExclusionFilter
-
-
Method Details
-
query
-
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
-
sampleAttribute
-
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
-
sampleRate
-
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
-
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:
- LogsExclusionFilter
-
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 LogsExclusionFilter object is equal to o. -
hashCode
public int hashCode() -
toString
-