Create a retention filter
POST {{baseUrl}}/api/v2/apm/config/retention-filters
Create a retention filter to index spans in your organization. Returns the retention filter definition when the request is successful.
Request Body
{"data"=>{"attributes"=>{"name"=>"<string>", "filter"=>{"query"=>"<string>"}, "enabled"=>"<boolean>", "filter_type"=>"spans-sampling-processor", "rate"=>"<double>"}, "type"=>"apm_retention_filter"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"id":"\u003cstring\u003e","type":"apm_retention_filter","attributes":{"created_at":"\u003clong\u003e","created_by":"\u003cstring\u003e","editable":"\u003cboolean\u003e","enabled":"\u003cboolean\u003e","execution_order":"\u003clong\u003e","filter":{"query":"\u003cstring\u003e"},"filter_type":"spans-sampling-processor","modified_at":"\u003clong\u003e","modified_by":"\u003cstring\u003e","name":"\u003cstring\u003e","rate":"\u003cdouble\u003e"}}}