Skip to content

Commit df6e05b

Browse files
committed
Merge pull request elastic#243 from instacart/time_option
Time option
2 parents 6a45363 + ceffee3 commit df6e05b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

elasticsearch/client/cat.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,20 @@ def master(self, params=None):
134134
params=params)
135135
return data
136136

137-
@query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'v')
137+
@query_params('bytes', 'h', 'help', 'local', 'master_timeout', 'time', 'v')
138138
def nodes(self, params=None):
139139
"""
140140
The nodes command shows the cluster topology.
141141
`<http://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html>`_
142142
143+
:arg bytes: The unit in which to display byte values
143144
:arg h: Comma-separated list of column names to display
144145
:arg help: Return help information, default False
145146
:arg local: Return local information, do not retrieve the state from
146147
master node (default: false)
147148
:arg master_timeout: Explicit operation timeout for connection to master
148149
node
150+
:arg time: The unit in which to display time values
149151
:arg v: Verbose mode. Display column headers, default False
150152
"""
151153
_, data = self.transport.perform_request('GET', '/_cat/nodes',
@@ -181,6 +183,7 @@ def shards(self, index=None, params=None):
181183
182184
:arg index: A comma-separated list of index names to limit the returned
183185
information
186+
:arg bytes: The unit in which to display byte values
184187
:arg h: Comma-separated list of column names to display
185188
:arg help: Return help information, default False
186189
:arg local: Return local information, do not retrieve the state from
@@ -201,6 +204,7 @@ def segments(self, index=None, params=None):
201204
202205
:arg index: A comma-separated list of index names to limit the returned
203206
information
207+
:arg bytes: The unit in which to display byte values
204208
:arg h: Comma-separated list of column names to display
205209
:arg help: Return help information, default False
206210
:arg local: Return local information, do not retrieve the state from

0 commit comments

Comments
 (0)