Create a tag configuration
POST {{baseUrl}}/api/v2/metrics/:metric_name/tags
Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric.
Optionally, include percentile aggregations on any distribution metric or configure custom aggregations
on any count, rate, or gauge metric.
Can only be used with application keys of users with the Manage Tags for Metrics
permission.
Request Body
{"data"=>{"id"=>"<string>", "type"=>"manage_tags", "attributes"=>{"metric_type"=>"gauge", "aggregations"=>[{"time"=>"count", "space"=>"max"}, {"time"=>"max", "space"=>"min"}], "include_percentiles"=>"<boolean>"}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: Created
{"data":{"attributes":{"aggregations":[{"time":"avg","space":"avg"},{"time":"count","space":"min"}],"created_at":"\u003cdateTime\u003e","include_percentiles":"\u003cboolean\u003e","metric_type":"gauge","modified_at":"\u003cdateTime\u003e","tags":["\u003cstring\u003e","\u003cstring\u003e"]},"id":"\u003cstring\u003e","type":"manage_tags"}}