elasticsearch-api/lib/elasticsearch/api/actions/cat/thread_pool.rb
def thread_pool(arguments = {})
          headers = arguments.delete(:headers) || {}

          body = nil

          arguments = arguments.clone

          _thread_pool_patterns = arguments.delete(:thread_pool_patterns)

          method = Elasticsearch::API::HTTP_GET
          path   = if _thread_pool_patterns
                     "_cat/thread_pool/#{Utils.__listify(_thread_pool_patterns)}"
                   else
                     "_cat/thread_pool"
                   end
          params = Utils.process_params(arguments)
          params[:h] = Utils.__listify(params[:h]) if params[:h]

          perform_request(method, path, params, body, headers).body
        end
# Returns cluster-wide thread pool statistics per node.
# By default the active, queue and rejected statistics are returned for all thread pools.
#
# @option arguments [List] :thread_pool_patterns A comma-separated list of regular-expressions to filter the thread pools in the output
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
# @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos)
# @option arguments [Boolean] :local Return local information, do not retrieve the state from master node (default: false)
# @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [List] :h Comma-separated list of column names to display
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html
#
Returns cluster-wide thread pool statistics per node.
By default the active, queue and rejected statistics are returned for all thread pools.
Returns cluster - wide thread pool statistics per node . By default the active queue and rejected statistics are returned for all thread pools .
def thread_pool(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _thread_pool_patterns = arguments.delete(:thread_pool_patterns)
          method = Elasticsearch::API::HTTP_GET
          path   = if _thread_pool_patterns
                     "_cat/thread_pool/#{Utils.__listify(_thread_pool_patterns)}"
                   else
                     "_cat/thread_pool"
                   end
          params = Utils.process_params(arguments)
          params[:h] = Utils.__listify(params[:h]) if params[:h]
          perform_request(method, path, params, body, headers).body
        end
def thread_pool ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _thread_pool_patterns = arguments . delete ( :thread_pool_patterns ) method = Elasticsearch :: API :: HTTP_GET path = if _thread_pool_patterns "_cat/thread_pool/#{Utils.__listify(_thread_pool_patterns)}" else "_cat/thread_pool" end params = Utils . process_params ( arguments ) params [ :h ] = Utils . __listify ( params [ :h ] ) if params [ :h ] perform_request ( method , path , params , body , headers ) . body end
Returns cluster-wide thread pool statistics per node.
Returns cluster - wide thread pool statistics per node .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None