{
  "watcher.stats": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-watcher-stats",
      "description": "Get Watcher statistics"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_watcher/stats",
          "methods": [
            "GET"
          ]
        },
        {
          "path": "/_watcher/stats/{metric}",
          "methods": [
            "GET"
          ],
          "parts": {
            "metric": {
              "type": "list",
              "options": [
                "_all",
                "queued_watches",
                "current_watches",
                "pending_watches"
              ],
              "description": "Controls what additional stat metrics should be include in the response"
            }
          }
        }
      ]
    },
    "params": {
      "metric": {
        "type": "list",
        "options": [
          "_all",
          "queued_watches",
          "current_watches",
          "pending_watches"
        ],
        "description": "Controls what additional stat metrics should be include in the response"
      },
      "emit_stacktraces": {
        "type": "boolean",
        "default": false,
        "description": "Emits stack traces of currently running watches"
      }
    }
  }
}
