post
https://{app-url}{}/api/v2/metrics/tags-1
Create Tag on set of metrics that match a search expression
Multiple search expressions can be associated with a single tag. These expressions are evaluated using OR logic, meaning that a metric matching any of the expressions will be assigned the tag.
Request Arguements
| Argument | Description |
|---|---|
| tag key | Tag key name. |
| tag value | Tag value. |
| expressions | Array of search expressions. Each expression can contain one or more metric queries. |
| type | Type of search expression. Supported values: search or property. |
| key | Metric property key used in the expression. |
| value | Metric property value used in the expression. |
In the example on the right, all metrics matching the following query will be assigned the tag tagName:tagValue:
((key1 == val1) AND (key2 == val2)) OR ((key1 == val3) AND (key2 == val4))
200