elasticsearch-api/lib/elasticsearch/api/actions/nodes/hot_threads.rb
# Returns information about hot threads on each node in the cluster.
#
# @option arguments [List] :node_id 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
# @option arguments [Time] :interval The interval for the second sampling of threads
# @option arguments [Number] :snapshots Number of samples of thread stacktrace (default: 10)
# @option arguments [Number] :threads Specify the number of threads to provide information for (default: 3)
# @option arguments [Boolean] :ignore_idle_threads 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)
# @option arguments [String] :type The type to sample (default: cpu) (options: cpu, wait, block)
# @option arguments [Time] :timeout Explicit operation timeout
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html
#
Returns information about hot threads on each node in the cluster.
Returns information about hot threads on each node in the cluster .
def hot_threads(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _node_id = arguments.delete(:node_id)
          method = Elasticsearch::API::HTTP_GET
          path   = if _node_id
                     "_nodes/#{Utils.__listify(_node_id)}/hot_threads"
                   else
                     "_nodes/hot_threads"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def hot_threads ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _node_id = arguments . delete ( :node_id ) method = Elasticsearch :: API :: HTTP_GET path = if _node_id "_nodes/#{Utils.__listify(_node_id)}/hot_threads" else "_nodes/hot_threads" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Returns information about hot threads on each node in the cluster.
Returns information about hot threads on each node in the cluster .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None