From 6ccc08520c70dd35255d529f8b7581fb95230ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Krawaczy=C5=84ski?= Date: Wed, 10 May 2017 16:33:38 +0200 Subject: [PATCH] doc_type = type to sample (#572) elasticsearch.exceptions.RequestError: TransportError(400, 'illegal_argument_exception', 'request [/_cluster/nodes/hotthreads] contains unrecognized parameter: [doc_type]') https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-nodes-hot-threads.html --- elasticsearch/client/nodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/client/nodes.py b/elasticsearch/client/nodes.py index 2df280b0..dec86810 100644 --- a/elasticsearch/client/nodes.py +++ b/elasticsearch/client/nodes.py @@ -57,7 +57,7 @@ class NodesClient(NamespacedClient): return self.transport.perform_request('GET', _make_path('_nodes', node_id, 'stats', metric, index_metric), params=params) - @query_params('doc_type', 'ignore_idle_threads', 'interval', 'snapshots', + @query_params('type', 'ignore_idle_threads', 'interval', 'snapshots', 'threads', 'timeout') def hot_threads(self, node_id=None, params=None): """ @@ -68,7 +68,7 @@ class NodesClient(NamespacedClient): returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - :arg doc_type: The type to sample (default: cpu), valid choices are: + :arg type: The type to sample (default: cpu), valid choices are: 'cpu', 'wait', 'block' :arg 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