Add bytes param to cat.shards and cat.segments (#654)

This commit is contained in:
Glen Smith
2017-10-11 14:16:50 -06:00
committed by Honza Král
parent a3a52af081
commit cfec19afd8
+6 -2
View File
@@ -201,7 +201,7 @@ class CatClient(NamespacedClient):
return self.transport.perform_request('GET', _make_path('_cat',
'recovery', index), params=params)
@query_params('format', 'h', 'help', 'local', 'master_timeout', 's', 'v')
@query_params('bytes', 'format', 'h', 'help', 'local', 'master_timeout', 's', 'v')
def shards(self, index=None, params=None):
"""
The shards command is the detailed view of what nodes contain which shards.
@@ -209,6 +209,8 @@ class CatClient(NamespacedClient):
:arg index: A comma-separated list of index names to limit the returned
information
:arg bytes: The unit in which to display byte values, valid choices are:
'b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb'
:arg format: a short version of the Accept header, e.g. json, yaml
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False
@@ -223,7 +225,7 @@ class CatClient(NamespacedClient):
return self.transport.perform_request('GET', _make_path('_cat',
'shards', index), params=params)
@query_params('format', 'h', 'help', 's', 'v')
@query_params('bytes', 'format', 'h', 'help', 's', 'v')
def segments(self, index=None, params=None):
"""
The segments command is the detailed view of Lucene segments per index.
@@ -231,6 +233,8 @@ class CatClient(NamespacedClient):
:arg index: A comma-separated list of index names to limit the returned
information
:arg bytes: The unit in which to display byte values, valid choices are:
'b', 'k', 'kb', 'm', 'mb', 'g', 'gb', 't', 'tb', 'p', 'pb'
:arg format: a short version of the Accept header, e.g. json, yaml
:arg h: Comma-separated list of column names to display
:arg help: Return help information, default False