Query for tag keys with value counts
application/json
{
"filter": ["=", "role", "heroic"],
"limit": 10
}
$ curl -XPOST -H "Content-Type: application/json"
http://localhost:8080/metadata/tagkey-count \
-d '{ "filter": ["=", "role", "heroic"], "limit": 10 }'
Field | Type | Purpose |
---|---|---|
errors
|
[RequestError, ...]
|
Errors that occured during the request. |
suggestions
required
|
[{key: <string> count: <number>,exactValues: <string>}, ...]
|
Suggested tag keys with value counts |
limited
|
Limit
|
Was the response limited or not. |
{
"errors": [],
"suggestions": [
{
"key": "cluster_name",
"count": 3,
"exactValues": [
"heroic-suggest-guc3",
"heroic-suggest-gae2",
"heroic-suggest-gew1"
]
},
{
"key": "component",
"count": 12,
"exactValues": [
"disk",
"output-manager",
"input-manager",
"output-plugin"
]
}
],
"limited": false
}