{
  "nodes.hot_threads": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/cluster-nodes-hot-threads.html",
      "description": "Get the hot threads for nodes"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "text/plain"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_nodes/hot_threads",
          "methods": [
            "GET"
          ]
        },
        {
          "path": "/_nodes/{node_id}/hot_threads",
          "methods": [
            "GET"
          ],
          "parts": {
            "node_id": {
              "type": "list",
              "description": "A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes"
            }
          }
        }
      ]
    },
    "params": {
      "interval": {
        "type": "time",
        "default": "500ms",
        "description": "The interval for the second sampling of threads"
      },
      "snapshots": {
        "type": "long",
        "default": 10,
        "description": "Number of samples of thread stacktrace (default: 10)"
      },
      "threads": {
        "type": "long",
        "default": 3,
        "description": "Specify the number of threads to provide information for (default: 3)"
      },
      "ignore_idle_threads": {
        "type": "boolean",
        "default": true,
        "description": "Don't show threads that are in known-idle places, such as waiting on a socket select or pulling from an empty task queue (default: true)"
      },
      "type": {
        "type": "enum",
        "options": [
          "cpu",
          "wait",
          "block",
          "gpu",
          "mem"
        ],
        "default": "cpu",
        "description": "The type to sample (default: cpu)"
      },
      "sort": {
        "type": "enum",
        "default": "total",
        "options": [
          "cpu",
          "wait",
          "block",
          "gpu",
          "mem"
        ],
        "description": "The sort order for 'cpu' type (default: total)"
      },
      "timeout": {
        "type": "time",
        "default": "30s",
        "description": "Explicit operation timeout"
      }
    }
  }
}
