Skip to content

Commit 20efd21

Browse files
committed
Update APIs to 7.16-SNAPSHOT
1 parent b7cdd64 commit 20efd21

File tree

6 files changed

+14
-6
lines changed

6 files changed

+14
-6
lines changed

elasticsearch/_async/client/fleet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async def msearch(self, body, index=None, params=None, headers=None):
7878
body = _bulk_body(self.transport.serializer, body)
7979
return await self.transport.perform_request(
8080
"POST",
81-
_make_path(index, "_fleet", "_msearch"),
81+
_make_path(index, "_fleet", "_fleet_msearch"),
8282
params=params,
8383
headers=headers,
8484
body=body,
@@ -117,7 +117,7 @@ async def search(self, index, body=None, params=None, headers=None):
117117

118118
return await self.transport.perform_request(
119119
"POST",
120-
_make_path(index, "_fleet", "_search"),
120+
_make_path(index, "_fleet", "_fleet_search"),
121121
params=params,
122122
headers=headers,
123123
body=body,

elasticsearch/_async/client/nodes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ async def stats(
138138
"ignore_idle_threads",
139139
"interval",
140140
"snapshots",
141+
"sort",
141142
"threads",
142143
"timeout",
143144
"type",
@@ -159,11 +160,13 @@ async def hot_threads(self, node_id=None, params=None, headers=None):
159160
:arg interval: The interval for the second sampling of threads
160161
:arg snapshots: Number of samples of thread stacktrace (default:
161162
10)
163+
:arg sort: The sort order for 'cpu' type (default: total) Valid
164+
choices: cpu, total
162165
:arg threads: Specify the number of threads to provide
163166
information for (default: 3)
164167
:arg timeout: Explicit operation timeout
165168
:arg type: The type to sample (default: cpu) Valid choices:
166-
cpu, wait, block
169+
cpu, wait, block, mem
167170
"""
168171
return await self.transport.perform_request(
169172
"GET",

elasticsearch/_async/client/nodes.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class NodesClient(NamespacedClient):
103103
ignore_idle_threads: Optional[bool] = ...,
104104
interval: Optional[Any] = ...,
105105
snapshots: Optional[Any] = ...,
106+
sort: Optional[Any] = ...,
106107
threads: Optional[Any] = ...,
107108
timeout: Optional[Any] = ...,
108109
type: Optional[Any] = ...,

elasticsearch/client/fleet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def msearch(self, body, index=None, params=None, headers=None):
7878
body = _bulk_body(self.transport.serializer, body)
7979
return self.transport.perform_request(
8080
"POST",
81-
_make_path(index, "_fleet", "_msearch"),
81+
_make_path(index, "_fleet", "_fleet_msearch"),
8282
params=params,
8383
headers=headers,
8484
body=body,
@@ -117,7 +117,7 @@ def search(self, index, body=None, params=None, headers=None):
117117

118118
return self.transport.perform_request(
119119
"POST",
120-
_make_path(index, "_fleet", "_search"),
120+
_make_path(index, "_fleet", "_fleet_search"),
121121
params=params,
122122
headers=headers,
123123
body=body,

elasticsearch/client/nodes.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ def stats(
138138
"ignore_idle_threads",
139139
"interval",
140140
"snapshots",
141+
"sort",
141142
"threads",
142143
"timeout",
143144
"type",
@@ -159,11 +160,13 @@ def hot_threads(self, node_id=None, params=None, headers=None):
159160
:arg interval: The interval for the second sampling of threads
160161
:arg snapshots: Number of samples of thread stacktrace (default:
161162
10)
163+
:arg sort: The sort order for 'cpu' type (default: total) Valid
164+
choices: cpu, total
162165
:arg threads: Specify the number of threads to provide
163166
information for (default: 3)
164167
:arg timeout: Explicit operation timeout
165168
:arg type: The type to sample (default: cpu) Valid choices:
166-
cpu, wait, block
169+
cpu, wait, block, mem
167170
"""
168171
return self.transport.perform_request(
169172
"GET",

elasticsearch/client/nodes.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class NodesClient(NamespacedClient):
103103
ignore_idle_threads: Optional[bool] = ...,
104104
interval: Optional[Any] = ...,
105105
snapshots: Optional[Any] = ...,
106+
sort: Optional[Any] = ...,
106107
threads: Optional[Any] = ...,
107108
timeout: Optional[Any] = ...,
108109
type: Optional[Any] = ...,

0 commit comments

Comments
 (0)