Skip to content

Commit 0529894

Browse files
Auto-generated API code
1 parent 1b6f84a commit 0529894

File tree

2 files changed

+62
-38
lines changed

2 files changed

+62
-38
lines changed

elasticsearch/_async/client/cat.py

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ async def aliases(
6969
7070
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
7171
72-
:param name: A comma-separated list of alias names to return
72+
:param name: A comma-separated list of aliases to retrieve. Supports wildcards
73+
(`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
7374
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
7475
that are open, closed or both.
7576
:param format: Specifies the format to return the columnar data in, can be set
@@ -153,9 +154,9 @@ async def allocation(
153154
154155
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
155156
156-
:param node_id: A comma-separated list of node IDs or names to limit the returned
157-
information
158-
:param bytes: The unit in which to display byte values
157+
:param node_id: Comma-separated list of node identifiers or names used to limit
158+
the returned information.
159+
:param bytes: The unit used to display byte values.
159160
:param format: Specifies the format to return the columnar data in, can be set
160161
to `text`, `json`, `cbor`, `yaml`, or `smile`.
161162
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -231,7 +232,8 @@ async def component_templates(
231232
232233
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
233234
234-
:param name: A pattern that returned component template names must match
235+
:param name: The name of the component template. Accepts wildcard expressions.
236+
If omitted, all component templates are returned.
235237
:param format: Specifies the format to return the columnar data in, can be set
236238
to `text`, `json`, `cbor`, `yaml`, or `smile`.
237239
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -306,7 +308,9 @@ async def count(
306308
307309
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
308310
309-
:param index: A comma-separated list of index names to limit the returned information
311+
:param index: Comma-separated list of data streams, indices, and aliases used
312+
to limit the request. Supports wildcards (`*`). To target all data streams
313+
and indices, omit this parameter or use `*` or `_all`.
310314
:param format: Specifies the format to return the columnar data in, can be set
311315
to `text`, `json`, `cbor`, `yaml`, or `smile`.
312316
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -386,8 +390,9 @@ async def fielddata(
386390
387391
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
388392
389-
:param fields: A comma-separated list of fields to return the fielddata size
390-
:param bytes: The unit in which to display byte values
393+
:param fields: Comma-separated list of fields used to limit returned information.
394+
To retrieve all fields, omit this parameter.
395+
:param bytes: The unit used to display byte values.
391396
:param format: Specifies the format to return the columnar data in, can be set
392397
to `text`, `json`, `cbor`, `yaml`, or `smile`.
393398
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -455,6 +460,9 @@ async def health(
455460
] = None,
456461
pretty: t.Optional[bool] = None,
457462
s: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
463+
time: t.Optional[
464+
t.Union["t.Literal['d', 'h', 'm', 'micros', 'ms', 'nanos', 's']", str]
465+
] = None,
458466
ts: t.Optional[bool] = None,
459467
v: t.Optional[bool] = None,
460468
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
@@ -476,7 +484,8 @@ async def health(
476484
:param s: List of columns that determine how the table should be sorted. Sorting
477485
defaults to ascending and can be changed by setting `:asc` or `:desc` as
478486
a suffix to the column name.
479-
:param ts: Set to false to disable timestamping
487+
:param time: The unit used to display time values.
488+
:param ts: If true, returns `HH:MM:SS` and Unix epoch timestamps.
480489
:param v: When set to `true` will enable verbose output.
481490
"""
482491
__path = "/_cat/health"
@@ -501,6 +510,8 @@ async def health(
501510
__query["pretty"] = pretty
502511
if s is not None:
503512
__query["s"] = s
513+
if time is not None:
514+
__query["time"] = time
504515
if ts is not None:
505516
__query["ts"] = ts
506517
if v is not None:
@@ -633,29 +644,30 @@ async def indices(
633644
634645
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
635646
636-
:param index: A comma-separated list of index names to limit the returned information
637-
:param bytes: The unit in which to display byte values
638-
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
639-
that are open, closed or both.
647+
:param index: Comma-separated list of data streams, indices, and aliases used
648+
to limit the request. Supports wildcards (`*`). To target all data streams
649+
and indices, omit this parameter or use `*` or `_all`.
650+
:param bytes: The unit used to display byte values.
651+
:param expand_wildcards: The type of index that wildcard patterns can match.
640652
:param format: Specifies the format to return the columnar data in, can be set
641653
to `text`, `json`, `cbor`, `yaml`, or `smile`.
642654
:param h: List of columns to appear in the response. Supports simple wildcards.
643-
:param health: A health status ("green", "yellow", or "red" to filter only indices
644-
matching the specified health status
655+
:param health: The health status used to limit returned indices. By default,
656+
the response includes indices of any health status.
645657
:param help: When set to `true` will output available columns. This option can't
646658
be combined with any other query string option.
647-
:param include_unloaded_segments: If set to true segment stats will include stats
648-
for segments that are not currently loaded into memory
659+
:param include_unloaded_segments: If true, the response includes information
660+
from segments that are not loaded into memory.
649661
:param local: If `true`, the request computes the list of selected nodes from
650662
the local cluster state. If `false` the list of selected nodes are computed
651663
from the cluster state of the master node. In both cases the coordinating
652664
node will send requests for further information to each selected node.
653665
:param master_timeout: Period to wait for a connection to the master node.
654-
:param pri: Set to true to return stats only for primary shards
666+
:param pri: If true, the response only includes information from primary shards.
655667
:param s: List of columns that determine how the table should be sorted. Sorting
656668
defaults to ascending and can be changed by setting `:asc` or `:desc` as
657669
a suffix to the column name.
658-
:param time: The unit in which to display time values
670+
:param time: The unit used to display time values.
659671
:param v: When set to `true` will enable verbose output.
660672
"""
661673
if index not in SKIP_IN_PATH:

elasticsearch/_sync/client/cat.py

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def aliases(
6969
7070
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html>`_
7171
72-
:param name: A comma-separated list of alias names to return
72+
:param name: A comma-separated list of aliases to retrieve. Supports wildcards
73+
(`*`). To retrieve all aliases, omit this parameter or use `*` or `_all`.
7374
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
7475
that are open, closed or both.
7576
:param format: Specifies the format to return the columnar data in, can be set
@@ -153,9 +154,9 @@ def allocation(
153154
154155
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html>`_
155156
156-
:param node_id: A comma-separated list of node IDs or names to limit the returned
157-
information
158-
:param bytes: The unit in which to display byte values
157+
:param node_id: Comma-separated list of node identifiers or names used to limit
158+
the returned information.
159+
:param bytes: The unit used to display byte values.
159160
:param format: Specifies the format to return the columnar data in, can be set
160161
to `text`, `json`, `cbor`, `yaml`, or `smile`.
161162
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -231,7 +232,8 @@ def component_templates(
231232
232233
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-component-templates.html>`_
233234
234-
:param name: A pattern that returned component template names must match
235+
:param name: The name of the component template. Accepts wildcard expressions.
236+
If omitted, all component templates are returned.
235237
:param format: Specifies the format to return the columnar data in, can be set
236238
to `text`, `json`, `cbor`, `yaml`, or `smile`.
237239
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -306,7 +308,9 @@ def count(
306308
307309
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html>`_
308310
309-
:param index: A comma-separated list of index names to limit the returned information
311+
:param index: Comma-separated list of data streams, indices, and aliases used
312+
to limit the request. Supports wildcards (`*`). To target all data streams
313+
and indices, omit this parameter or use `*` or `_all`.
310314
:param format: Specifies the format to return the columnar data in, can be set
311315
to `text`, `json`, `cbor`, `yaml`, or `smile`.
312316
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -386,8 +390,9 @@ def fielddata(
386390
387391
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html>`_
388392
389-
:param fields: A comma-separated list of fields to return the fielddata size
390-
:param bytes: The unit in which to display byte values
393+
:param fields: Comma-separated list of fields used to limit returned information.
394+
To retrieve all fields, omit this parameter.
395+
:param bytes: The unit used to display byte values.
391396
:param format: Specifies the format to return the columnar data in, can be set
392397
to `text`, `json`, `cbor`, `yaml`, or `smile`.
393398
:param h: List of columns to appear in the response. Supports simple wildcards.
@@ -455,6 +460,9 @@ def health(
455460
] = None,
456461
pretty: t.Optional[bool] = None,
457462
s: t.Optional[t.Union[str, t.Union[t.List[str], t.Tuple[str, ...]]]] = None,
463+
time: t.Optional[
464+
t.Union["t.Literal['d', 'h', 'm', 'micros', 'ms', 'nanos', 's']", str]
465+
] = None,
458466
ts: t.Optional[bool] = None,
459467
v: t.Optional[bool] = None,
460468
) -> t.Union[ObjectApiResponse[t.Any], TextApiResponse]:
@@ -476,7 +484,8 @@ def health(
476484
:param s: List of columns that determine how the table should be sorted. Sorting
477485
defaults to ascending and can be changed by setting `:asc` or `:desc` as
478486
a suffix to the column name.
479-
:param ts: Set to false to disable timestamping
487+
:param time: The unit used to display time values.
488+
:param ts: If true, returns `HH:MM:SS` and Unix epoch timestamps.
480489
:param v: When set to `true` will enable verbose output.
481490
"""
482491
__path = "/_cat/health"
@@ -501,6 +510,8 @@ def health(
501510
__query["pretty"] = pretty
502511
if s is not None:
503512
__query["s"] = s
513+
if time is not None:
514+
__query["time"] = time
504515
if ts is not None:
505516
__query["ts"] = ts
506517
if v is not None:
@@ -633,29 +644,30 @@ def indices(
633644
634645
`<https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html>`_
635646
636-
:param index: A comma-separated list of index names to limit the returned information
637-
:param bytes: The unit in which to display byte values
638-
:param expand_wildcards: Whether to expand wildcard expression to concrete indices
639-
that are open, closed or both.
647+
:param index: Comma-separated list of data streams, indices, and aliases used
648+
to limit the request. Supports wildcards (`*`). To target all data streams
649+
and indices, omit this parameter or use `*` or `_all`.
650+
:param bytes: The unit used to display byte values.
651+
:param expand_wildcards: The type of index that wildcard patterns can match.
640652
:param format: Specifies the format to return the columnar data in, can be set
641653
to `text`, `json`, `cbor`, `yaml`, or `smile`.
642654
:param h: List of columns to appear in the response. Supports simple wildcards.
643-
:param health: A health status ("green", "yellow", or "red" to filter only indices
644-
matching the specified health status
655+
:param health: The health status used to limit returned indices. By default,
656+
the response includes indices of any health status.
645657
:param help: When set to `true` will output available columns. This option can't
646658
be combined with any other query string option.
647-
:param include_unloaded_segments: If set to true segment stats will include stats
648-
for segments that are not currently loaded into memory
659+
:param include_unloaded_segments: If true, the response includes information
660+
from segments that are not loaded into memory.
649661
:param local: If `true`, the request computes the list of selected nodes from
650662
the local cluster state. If `false` the list of selected nodes are computed
651663
from the cluster state of the master node. In both cases the coordinating
652664
node will send requests for further information to each selected node.
653665
:param master_timeout: Period to wait for a connection to the master node.
654-
:param pri: Set to true to return stats only for primary shards
666+
:param pri: If true, the response only includes information from primary shards.
655667
:param s: List of columns that determine how the table should be sorted. Sorting
656668
defaults to ascending and can be changed by setting `:asc` or `:desc` as
657669
a suffix to the column name.
658-
:param time: The unit in which to display time values
670+
:param time: The unit used to display time values.
659671
:param v: When set to `true` will enable verbose output.
660672
"""
661673
if index not in SKIP_IN_PATH:

0 commit comments

Comments
 (0)