The object describing the configuration of the retention filter to create/update.
# Create APM retention filter
resource "datadog_apm_retention_filter" "foo" {
name = "Sample order"
rate = "1.0"
filter {
query = "*"
}
filter_type = "spans-sampling-processor"
enabled = false
}
enabled
(Boolean) the status of the retention filter.filter_type
(String) The type of the retention filter, currently only spans-processing-sampling is available. Valid values are spans-sampling-processor
.name
(String) The name of the retention filter.rate
(String) Sample rate to apply to spans going through this retention filter as a string, a value of 1.0 keeps all spans matching the query.filter
(Block, Optional) The spans filter. Spans matching this filter will be indexed and stored. (see below for nested schema)id
(String) The ID of this resource.filter
Optional:
query
(String) The search query - following the span search syntax. Defaults to "*"
.Import is supported using the following syntax:
# Import existing APM retention filter
terraform import datadog_apm_retention_filter.foo <filter_id>