POST: /metadata/tagkey-count

Query for tag keys with value counts

application/json

Structure
Field Type Purpose
filter  required Filter A filter to use when quering for tags.
limit  Limit Limit the response

Example Request


          {
  "filter": ["=", "role", "heroic"],
  "limit": 10
}

      

Example Curl


          $ curl -XPOST -H "Content-Type: application/json"
        http://localhost:8080/metadata/tagkey-count \
          -d '{ "filter": ["=", "role", "heroic"], "limit": 10 }'
      

Example 200 Response

Status: 200, Content-Type: application/json

Structure
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
}