Package com.datadog.api.client.v2.model
Class ObservabilityPipelineQuotaProcessor
java.lang.Object
com.datadog.api.client.v2.model.ObservabilityPipelineQuotaProcessor
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class ObservabilityPipelineQuotaProcessor
extends Object
The
quota processor measures logging traffic for logs that match a specified filter.
When the configured daily quota is met, the processor can drop or alert.
Supported pipeline types: logs
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
ConstructorsConstructorDescriptionObservabilityPipelineQuotaProcessor(Boolean enabled, String id, String include, ObservabilityPipelineQuotaProcessorLimit limit, String name, ObservabilityPipelineQuotaProcessorType type) -
Method Summary
Modifier and TypeMethodDescriptionaddOverridesItem(ObservabilityPipelineQuotaProcessorOverride overridesItem) addPartitionFieldsItem(String partitionFieldsItem) displayName(String displayName) dropEvents(Boolean dropEvents) booleanReturn true if this ObservabilityPipelineQuotaProcessor object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The display name for a component.If set totrue, logs that match the quota filter and are sent after the quota is exceeded are dropped.Indicates whether the processor is enabled.getId()The unique identifier for this component.Iftrue, the processor skips quota checks when partition fields are missing from the logs.A Datadog search query used to determine which logs this processor targets.getLimit()The maximum amount of data or number of events allowed before the quota is enforced.getName()Name of the quota.The action to take when the quota or bucket limit is exceeded.A list of alternate quota rules that apply to specific sets of events, identified by matching field values.A list of fields used to segment log traffic for quota enforcement.The action to take when the quota or bucket limit is exceeded.getType()The processor type.inthashCode()ignoreWhenMissingPartitions(Boolean ignoreWhenMissingPartitions) overflowAction(ObservabilityPipelineQuotaProcessorOverflowAction overflowAction) overrides(List<ObservabilityPipelineQuotaProcessorOverride> overrides) partitionFields(List<String> partitionFields) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetDisplayName(String displayName) voidsetDropEvents(Boolean dropEvents) voidsetEnabled(Boolean enabled) voidvoidsetIgnoreWhenMissingPartitions(Boolean ignoreWhenMissingPartitions) voidsetInclude(String include) voidvoidvoidsetOverflowAction(ObservabilityPipelineQuotaProcessorOverflowAction overflowAction) voidvoidsetPartitionFields(List<String> partitionFields) voidsetTooManyBucketsAction(ObservabilityPipelineQuotaProcessorOverflowAction tooManyBucketsAction) voidtooManyBucketsAction(ObservabilityPipelineQuotaProcessorOverflowAction tooManyBucketsAction) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DISPLAY_NAME
- See Also:
-
JSON_PROPERTY_DROP_EVENTS
- See Also:
-
JSON_PROPERTY_ENABLED
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_IGNORE_WHEN_MISSING_PARTITIONS
- See Also:
-
JSON_PROPERTY_INCLUDE
- See Also:
-
JSON_PROPERTY_LIMIT
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_OVERFLOW_ACTION
- See Also:
-
JSON_PROPERTY_OVERRIDES
- See Also:
-
JSON_PROPERTY_PARTITION_FIELDS
- See Also:
-
JSON_PROPERTY_TOO_MANY_BUCKETS_ACTION
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
-
Constructor Details
-
ObservabilityPipelineQuotaProcessor
public ObservabilityPipelineQuotaProcessor() -
ObservabilityPipelineQuotaProcessor
public ObservabilityPipelineQuotaProcessor(Boolean enabled, String id, String include, ObservabilityPipelineQuotaProcessorLimit limit, String name, ObservabilityPipelineQuotaProcessorType type)
-
-
Method Details
-
displayName
-
getDisplayName
The display name for a component.- Returns:
- displayName
-
setDisplayName
-
dropEvents
-
getDropEvents
If set totrue, logs that match the quota filter and are sent after the quota is exceeded are dropped. Logs that do not match the filter continue through the pipeline. Note: You can set eitherdrop_eventsoroverflow_action, but not both.- Returns:
- dropEvents
-
setDropEvents
-
enabled
-
getEnabled
Indicates whether the processor is enabled.- Returns:
- enabled
-
setEnabled
-
id
-
getId
The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as theinputto downstream components).- Returns:
- id
-
setId
-
ignoreWhenMissingPartitions
public ObservabilityPipelineQuotaProcessor ignoreWhenMissingPartitions(Boolean ignoreWhenMissingPartitions) -
getIgnoreWhenMissingPartitions
Iftrue, the processor skips quota checks when partition fields are missing from the logs.- Returns:
- ignoreWhenMissingPartitions
-
setIgnoreWhenMissingPartitions
-
include
-
getInclude
A Datadog search query used to determine which logs this processor targets.- Returns:
- include
-
setInclude
-
limit
-
getLimit
The maximum amount of data or number of events allowed before the quota is enforced. Can be specified in bytes or events.- Returns:
- limit
-
setLimit
-
name
-
getName
Name of the quota.- Returns:
- name
-
setName
-
overflowAction
public ObservabilityPipelineQuotaProcessor overflowAction(ObservabilityPipelineQuotaProcessorOverflowAction overflowAction) -
getOverflowAction
The action to take when the quota or bucket limit is exceeded. Options: -drop: Drop the event. -no_action: Let the event pass through. -overflow_routing: Route to an overflow destination.When
overflow_routingis used, there must be a destination whoseinputsreference this processor with the<processor-id>.overflow_eventssuffix to route the overflowing events. Only the following destination types support overflow inputs:amazon_s3_generic,amazon_s3,google_cloud_storage, andazure_storage.- Returns:
- overflowAction
-
setOverflowAction
-
overrides
public ObservabilityPipelineQuotaProcessor overrides(List<ObservabilityPipelineQuotaProcessorOverride> overrides) -
addOverridesItem
public ObservabilityPipelineQuotaProcessor addOverridesItem(ObservabilityPipelineQuotaProcessorOverride overridesItem) -
getOverrides
A list of alternate quota rules that apply to specific sets of events, identified by matching field values. Each override can define a custom limit.- Returns:
- overrides
-
setOverrides
-
partitionFields
-
addPartitionFieldsItem
-
getPartitionFields
A list of fields used to segment log traffic for quota enforcement. Quotas are tracked independently by unique combinations of these field values.- Returns:
- partitionFields
-
setPartitionFields
-
tooManyBucketsAction
public ObservabilityPipelineQuotaProcessor tooManyBucketsAction(ObservabilityPipelineQuotaProcessorOverflowAction tooManyBucketsAction) -
getTooManyBucketsAction
The action to take when the quota or bucket limit is exceeded. Options: -drop: Drop the event. -no_action: Let the event pass through. -overflow_routing: Route to an overflow destination.When
overflow_routingis used, there must be a destination whoseinputsreference this processor with the<processor-id>.overflow_eventssuffix to route the overflowing events. Only the following destination types support overflow inputs:amazon_s3_generic,amazon_s3,google_cloud_storage, andazure_storage.- Returns:
- tooManyBucketsAction
-
setTooManyBucketsAction
public void setTooManyBucketsAction(ObservabilityPipelineQuotaProcessorOverflowAction tooManyBucketsAction) -
type
-
getType
The processor type. The value should always bequota.- Returns:
- type
-
setType
-
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:
- ObservabilityPipelineQuotaProcessor
-
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 ObservabilityPipelineQuotaProcessor object is equal to o. -
hashCode
public int hashCode() -
toString
-