Provides a Datadog APM Retention Filters API resource, which is used to manage Datadog APM retention filters order.
# 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
}
# Create APM reention filter order
resource "datadog_apm_retention_filter_order" "bar" {
filter_ids = [datadog_apm_retention_filter.foo.id]
}
filter_ids
(List of String) The filter IDs list. The order of filters IDs in this attribute defines the overall APM retention filters order.id
(String) The ID of this resource.Import is supported using the following syntax:
# Import existing APM retention filter order
# Note: Value of <foo> can be anything as this id is not stored by the resource
terraform import datadog_apm_retention_filter_order.bar <foo>