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"=>"my retention filter", "filter"=>{"query"=>"@http.status_code:200 service:my-service"}, "enabled"=>true, "filter_type"=>"spans-sampling-processor", "rate"=>1}, "type"=>"apm_retention_filter"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"id":"7RBOb7dLSYWI01yc3pIH8w","type":"apm_retention_filter","attributes":{"created_at":-50257320,"created_by":"amet sint","editable":true,"enabled":true,"execution_order":-85582523,"filter":{"query":"@http.status_code:200 service:my-service"},"filter_type":"spans-sampling-processor","modified_at":52601432,"modified_by":"consequat culpa fugiat eu","name":"my retention filter","rate":1}}}