From b8762b647d2cf525a15a2d0277e53cd4d07f8695 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 10 Feb 2014 18:14:30 +0100 Subject: [PATCH] Adding the thread_pool cat api --- elasticsearch/client/cat.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/elasticsearch/client/cat.py b/elasticsearch/client/cat.py index 5f2192b6..f40a3d6b 100644 --- a/elasticsearch/client/cat.py +++ b/elasticsearch/client/cat.py @@ -213,3 +213,22 @@ class CatClient(NamespacedClient): params=params) return data + @query_params('full_id', 'h', 'help', 'local', 'master_timeout', 'v') + def thread_pool(self, params=None): + """ + Get information about thread pools. + ``_ + + :arg full_id: Enables displaying the complete node ids (default: 'false') + :arg h: Comma-separated list of column names to display + :arg help: Return help information (default: 'false') + :arg local: Return local information, do not retrieve the state from + master node (default: false) + :arg master_timeout: Explicit operation timeout for connection to master + node + :arg v: Verbose mode. Display column headers (default: 'false') + + """ + _, data = self.transport.perform_request('GET', '/_cat/thread_pool', + params=params) + return data