Description
Returns a tag's configuration based on a search expression.
Definition
{{api-host}}/api/v1/metrics/tags?token={{token}}&value-contains-string={{string}}&key-contains-string={{string}}
Headers
Content-type=application/json
Parameters
Parameter | Description |
---|---|
value-contains-string (optional) |
The string to search within the value |
key-contains-string (optional) |
The string to search within the key |
Note: The relationship is AND between the two parameters.
Example Request
Get the tag configuration for tags with key account_group equals value VIP
curl \
-X GET \
-H "Content-Type: application/json" \
'https://api.anodot.com/api/v1/metrics/tags?token=<api token>&value-contains-string=VIP&key-contains-string=account_group'
Example Response
[
{
"id": "fbd07458-5fcd-4613-874e-3cc99291ed78",
"expressions": [
{
"q": null,
"expression": [
{
"type": "property",
"key": "account",
"value": "ABCDE",
"exact": false
}
],
"ids": null
},
{
"q": null,
"expression": [
{
"type": "property",
"key": "account",
"value": "FGHIJ",
"exact": false
}
],
"ids": null
},
{
"q": null,
"expression": [
{
"type": "property",
"key": "account",
"value": "KLMNO",
"exact": false
}
],
"ids": null
},
{
"q": null,
"expression": [
{
"type": "property",
"key": "account",
"value": "PQRST",
"exact": false
}
],
"ids": null
},
{
"q": null,
"expression": [
{
"type": "property",
"key": "account",
"value": "UVWXYZ",
"exact": false
}
],
"ids": null
}
],
"tag": {
"key": "account_group",
"value": "VIP",
"metricTagRepresentation": "#account_group=VIP"
}
}
]
Note: For more details about example responses, see HTTP Responses.