From bece0e52554e87f859795aa6ab7af0e84765c0c5 Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Mon, 9 May 2016 11:55:03 -0400 Subject: [PATCH] Add `size` param to Cat/Threadpool whitelist --- src/Elasticsearch/Endpoints/Cat/ThreadPool.php | 1 + src/Elasticsearch/Namespaces/CatNamespace.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Elasticsearch/Endpoints/Cat/ThreadPool.php b/src/Elasticsearch/Endpoints/Cat/ThreadPool.php index 08f3aa5c5..4128c60e0 100644 --- a/src/Elasticsearch/Endpoints/Cat/ThreadPool.php +++ b/src/Elasticsearch/Endpoints/Cat/ThreadPool.php @@ -38,6 +38,7 @@ protected function getParamWhitelist() 'help', 'v', 'full_id', + 'size' ); } diff --git a/src/Elasticsearch/Namespaces/CatNamespace.php b/src/Elasticsearch/Namespaces/CatNamespace.php index 2a0732727..543ef5bce 100644 --- a/src/Elasticsearch/Namespaces/CatNamespace.php +++ b/src/Elasticsearch/Namespaces/CatNamespace.php @@ -381,6 +381,7 @@ public function snapshots($params = array()) * ['help'] = (bool) Return help information * ['v'] = (bool) Verbose mode. Display column headers * ['full_id'] = (bool) Enables displaying the complete node ids + * ['size'] = (enum) The multiplier in which to display values ([ "", "k", "m", "g", "t", "p" ]) * * @param $params array Associative array of parameters *