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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{&quot;data&quot;:{&quot;attributes&quot;:{&quot;aggregations&quot;:[{&quot;time&quot;:&quot;avg&quot;,&quot;space&quot;:&quot;avg&quot;},{&quot;time&quot;:&quot;count&quot;,&quot;space&quot;:&quot;min&quot;}],&quot;created_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;include_percentiles&quot;:&quot;\u003cboolean\u003e&quot;,&quot;metric_type&quot;:&quot;gauge&quot;,&quot;modified_at&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;tags&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;type&quot;:&quot;manage_tags&quot;}}