@@ -1464,6 +1464,7 @@ async def get_trained_models(
1464
1464
],
1465
1465
]
1466
1466
] = None ,
1467
+ include_model_definition : t .Optional [bool ] = None ,
1467
1468
pretty : t .Optional [bool ] = None ,
1468
1469
size : t .Optional [int ] = None ,
1469
1470
tags : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
@@ -1490,6 +1491,8 @@ async def get_trained_models(
1490
1491
:param from_: Skips the specified number of models.
1491
1492
:param include: A comma delimited string of optional fields to include in the
1492
1493
response body.
1494
+ :param include_model_definition: parameter is deprecated! Use [include=definition]
1495
+ instead
1493
1496
:param size: Specifies the maximum number of models to obtain.
1494
1497
:param tags: A comma delimited string of tags. A trained model can have many
1495
1498
tags, or none. When supplied, only trained models that contain all the supplied
@@ -1519,6 +1522,8 @@ async def get_trained_models(
1519
1522
__query ["human" ] = human
1520
1523
if include is not None :
1521
1524
__query ["include" ] = include
1525
+ if include_model_definition is not None :
1526
+ __query ["include_model_definition" ] = include_model_definition
1522
1527
if pretty is not None :
1523
1528
__query ["pretty" ] = pretty
1524
1529
if size is not None :
@@ -2038,9 +2043,11 @@ async def put_calendar_job(
2038
2043
"description" ,
2039
2044
"headers" ,
2040
2045
"max_num_threads" ,
2046
+ "meta" ,
2041
2047
"model_memory_limit" ,
2042
2048
"version" ,
2043
2049
),
2050
+ parameter_aliases = {"_meta" : "meta" },
2044
2051
ignore_deprecated_options = {"headers" },
2045
2052
)
2046
2053
async def put_data_frame_analytics (
@@ -2058,6 +2065,7 @@ async def put_data_frame_analytics(
2058
2065
headers : t .Optional [t .Mapping [str , t .Union [str , t .Sequence [str ]]]] = None ,
2059
2066
human : t .Optional [bool ] = None ,
2060
2067
max_num_threads : t .Optional [int ] = None ,
2068
+ meta : t .Optional [t .Mapping [str , t .Any ]] = None ,
2061
2069
model_memory_limit : t .Optional [str ] = None ,
2062
2070
pretty : t .Optional [bool ] = None ,
2063
2071
version : t .Optional [str ] = None ,
@@ -2118,6 +2126,7 @@ async def put_data_frame_analytics(
2118
2126
Using more threads may decrease the time necessary to complete the analysis
2119
2127
at the cost of using more CPU. Note that the process may use additional threads
2120
2128
for operational functionality other than the analysis itself.
2129
+ :param meta:
2121
2130
:param model_memory_limit: The approximate maximum amount of memory resources
2122
2131
that are permitted for analytical processing. If your `elasticsearch.yml`
2123
2132
file contains an `xpack.ml.max_model_memory_limit` setting, an error occurs
@@ -2162,6 +2171,8 @@ async def put_data_frame_analytics(
2162
2171
__body ["headers" ] = headers
2163
2172
if max_num_threads is not None :
2164
2173
__body ["max_num_threads" ] = max_num_threads
2174
+ if meta is not None :
2175
+ __body ["_meta" ] = meta
2165
2176
if model_memory_limit is not None :
2166
2177
__body ["model_memory_limit" ] = model_memory_limit
2167
2178
if version is not None :
@@ -2180,6 +2191,7 @@ async def put_data_frame_analytics(
2180
2191
@_rewrite_parameters (
2181
2192
body_fields = (
2182
2193
"aggregations" ,
2194
+ "aggs" ,
2183
2195
"chunking_config" ,
2184
2196
"delayed_data_check_config" ,
2185
2197
"frequency" ,
@@ -2202,6 +2214,7 @@ async def put_datafeed(
2202
2214
* ,
2203
2215
datafeed_id : str ,
2204
2216
aggregations : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
2217
+ aggs : t .Optional [t .Mapping [str , t .Mapping [str , t .Any ]]] = None ,
2205
2218
allow_no_indices : t .Optional [bool ] = None ,
2206
2219
chunking_config : t .Optional [t .Mapping [str , t .Any ]] = None ,
2207
2220
delayed_data_check_config : t .Optional [t .Mapping [str , t .Any ]] = None ,
@@ -2255,6 +2268,8 @@ async def put_datafeed(
2255
2268
:param aggregations: If set, the datafeed performs aggregation searches. Support
2256
2269
for aggregations is limited and should be used only with low cardinality
2257
2270
data.
2271
+ :param aggs: If set, the datafeed performs aggregation searches. Support for
2272
+ aggregations is limited and should be used only with low cardinality data.
2258
2273
:param allow_no_indices: If true, wildcard indices expressions that resolve into
2259
2274
no concrete indices are ignored. This includes the `_all` string or when
2260
2275
no indices are specified.
@@ -2342,6 +2357,8 @@ async def put_datafeed(
2342
2357
if not __body :
2343
2358
if aggregations is not None :
2344
2359
__body ["aggregations" ] = aggregations
2360
+ if aggs is not None :
2361
+ __body ["aggs" ] = aggs
2345
2362
if chunking_config is not None :
2346
2363
__body ["chunking_config" ] = chunking_config
2347
2364
if delayed_data_check_config is not None :
@@ -2464,6 +2481,7 @@ async def put_job(
2464
2481
analysis_config : t .Optional [t .Mapping [str , t .Any ]] = None ,
2465
2482
data_description : t .Optional [t .Mapping [str , t .Any ]] = None ,
2466
2483
allow_lazy_open : t .Optional [bool ] = None ,
2484
+ allow_no_indices : t .Optional [bool ] = None ,
2467
2485
analysis_limits : t .Optional [t .Mapping [str , t .Any ]] = None ,
2468
2486
background_persist_interval : t .Optional [
2469
2487
t .Union [str , t .Literal [- 1 ], t .Literal [0 ]]
@@ -2473,9 +2491,19 @@ async def put_job(
2473
2491
datafeed_config : t .Optional [t .Mapping [str , t .Any ]] = None ,
2474
2492
description : t .Optional [str ] = None ,
2475
2493
error_trace : t .Optional [bool ] = None ,
2494
+ expand_wildcards : t .Optional [
2495
+ t .Union [
2496
+ t .Sequence [
2497
+ t .Union [str , t .Literal ["all" , "closed" , "hidden" , "none" , "open" ]]
2498
+ ],
2499
+ t .Union [str , t .Literal ["all" , "closed" , "hidden" , "none" , "open" ]],
2500
+ ]
2501
+ ] = None ,
2476
2502
filter_path : t .Optional [t .Union [str , t .Sequence [str ]]] = None ,
2477
2503
groups : t .Optional [t .Sequence [str ]] = None ,
2478
2504
human : t .Optional [bool ] = None ,
2505
+ ignore_throttled : t .Optional [bool ] = None ,
2506
+ ignore_unavailable : t .Optional [bool ] = None ,
2479
2507
model_plot_config : t .Optional [t .Mapping [str , t .Any ]] = None ,
2480
2508
model_snapshot_retention_days : t .Optional [int ] = None ,
2481
2509
pretty : t .Optional [bool ] = None ,
@@ -2510,6 +2538,9 @@ async def put_job(
2510
2538
to true, the open anomaly detection jobs API does not return an error and
2511
2539
the job waits in the opening state until sufficient machine learning node
2512
2540
capacity is available.
2541
+ :param allow_no_indices: If `true`, wildcard indices expressions that resolve
2542
+ into no concrete indices are ignored. This includes the `_all` string or
2543
+ when no indices are specified.
2513
2544
:param analysis_limits: Limits can be applied for the resources required to hold
2514
2545
the mathematical models in memory. These limits are approximate and can be
2515
2546
set per job. They do not control the memory used by other processes, for
@@ -2533,7 +2564,20 @@ async def put_job(
2533
2564
using those same roles. If you provide secondary authorization headers, those
2534
2565
credentials are used instead.
2535
2566
:param description: A description of the job.
2567
+ :param expand_wildcards: Type of index that wildcard patterns can match. If the
2568
+ request can target data streams, this argument determines whether wildcard
2569
+ expressions match hidden data streams. Supports comma-separated values. Valid
2570
+ values are: * `all`: Match any data stream or index, including hidden ones.
2571
+ * `closed`: Match closed, non-hidden indices. Also matches any non-hidden
2572
+ data stream. Data streams cannot be closed. * `hidden`: Match hidden data
2573
+ streams and hidden indices. Must be combined with `open`, `closed`, or both.
2574
+ * `none`: Wildcard patterns are not accepted. * `open`: Match open, non-hidden
2575
+ indices. Also matches any non-hidden data stream.
2536
2576
:param groups: A list of job groups. A job can belong to no groups or many.
2577
+ :param ignore_throttled: If `true`, concrete, expanded or aliased indices are
2578
+ ignored when frozen.
2579
+ :param ignore_unavailable: If `true`, unavailable indices (missing or closed)
2580
+ are ignored.
2537
2581
:param model_plot_config: This advanced configuration option stores model information
2538
2582
along with the results. It provides a more detailed view into anomaly detection.
2539
2583
If you enable model plot it can add considerable overhead to the performance
@@ -2573,12 +2617,20 @@ async def put_job(
2573
2617
__path = f'/_ml/anomaly_detectors/{ __path_parts ["job_id" ]} '
2574
2618
__query : t .Dict [str , t .Any ] = {}
2575
2619
__body : t .Dict [str , t .Any ] = body if body is not None else {}
2620
+ if allow_no_indices is not None :
2621
+ __query ["allow_no_indices" ] = allow_no_indices
2576
2622
if error_trace is not None :
2577
2623
__query ["error_trace" ] = error_trace
2624
+ if expand_wildcards is not None :
2625
+ __query ["expand_wildcards" ] = expand_wildcards
2578
2626
if filter_path is not None :
2579
2627
__query ["filter_path" ] = filter_path
2580
2628
if human is not None :
2581
2629
__query ["human" ] = human
2630
+ if ignore_throttled is not None :
2631
+ __query ["ignore_throttled" ] = ignore_throttled
2632
+ if ignore_unavailable is not None :
2633
+ __query ["ignore_unavailable" ] = ignore_unavailable
2582
2634
if pretty is not None :
2583
2635
__query ["pretty" ] = pretty
2584
2636
if not __body :
0 commit comments