post
https://{app-url}{}/api/v2/metrics/tags/assign-metrics-to-tags
Assign one or more metrics to one or more tags
Provide an array of search expressions defining the metrics to which the tag should be assigned.
Note: Tagging changes may take up to 20 minutes to be applied to the relevant metrics.
Important: If the tag already exists, its current metric assignments are replaced. The tag is removed from metrics matching the previous search expression and assigned only to metrics matching the new search expression.
| Argument | Description |
|---|---|
| tag key | Tag key name. |
| tag value | Tag value. |
| expressions | Array of search expressions defining the metrics to which the tag will be assigned. Each expression can contain multiple metric queries. |
| type | Type of search expression. Supported values: search or property. |
| key | Metric property key. |
| value | Metric property value. |
