nodes.hotThreads

edit
client.nodes.hotThreads({
  node_id: string | string[],
  interval: string,
  snapshots: number,
  threads: number,
  ignore_idle_threads: boolean,
  type: 'cpu' | 'wait' | 'block',
  timeout: string
})

Reference

node_id or nodeId

string | string[] - 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

interval

string - The interval for the second sampling of threads

snapshots

number - Number of samples of thread stacktrace (default: 10)

threads

number - Specify the number of threads to provide information for (default: 3)

ignore_idle_threads or ignoreIdleThreads

boolean - 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

'cpu' | 'wait' | 'block' - The type to sample (default: cpu)

timeout

string - Explicit operation timeout