Update a span-based metric

PATCH {{baseUrl}}/api/v2/apm/config/metrics/:metric_id

Update a specific span-based metric from your organization. Returns the span-based metric object from the request body when the request is successful.

Request Body

{"data"=>{"type"=>"spans_metrics", "attributes"=>{"compute"=>{"include_percentiles"=>false}, "filter"=>{"query"=>"@http.status_code:200 service:my-service"}, "group_by"=>[{"path"=>"resource_name", "tag_name"=>"resource_name"}, {"path"=>"resource_name", "tag_name"=>"resource_name"}]}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"data":{"attributes":{"compute":{"aggregation_type":"distribution","include_percentiles":false,"path":"@duration"},"filter":{"query":"@http.status_code:200 service:my-service"},"group_by":[{"path":"resource_name","tag_name":"resource_name"},{"path":"resource_name","tag_name":"resource_name"}]},"id":"my.metric","type":"spans_metrics"}}