elasticsearch 8.17.0__py3-none-any.whl → 8.17.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- elasticsearch/__init__.py +2 -2
- elasticsearch/_async/client/__init__.py +2034 -740
- elasticsearch/_async/client/async_search.py +33 -22
- elasticsearch/_async/client/autoscaling.py +27 -21
- elasticsearch/_async/client/cat.py +280 -336
- elasticsearch/_async/client/ccr.py +96 -70
- elasticsearch/_async/client/cluster.py +152 -144
- elasticsearch/_async/client/connector.py +488 -55
- elasticsearch/_async/client/dangling_indices.py +22 -16
- elasticsearch/_async/client/enrich.py +25 -6
- elasticsearch/_async/client/eql.py +22 -9
- elasticsearch/_async/client/esql.py +295 -3
- elasticsearch/_async/client/features.py +25 -25
- elasticsearch/_async/client/fleet.py +15 -9
- elasticsearch/_async/client/graph.py +9 -8
- elasticsearch/_async/client/ilm.py +91 -61
- elasticsearch/_async/client/indices.py +746 -324
- elasticsearch/_async/client/inference.py +101 -4
- elasticsearch/_async/client/ingest.py +231 -19
- elasticsearch/_async/client/license.py +48 -31
- elasticsearch/_async/client/logstash.py +20 -6
- elasticsearch/_async/client/migration.py +25 -7
- elasticsearch/_async/client/ml.py +532 -278
- elasticsearch/_async/client/monitoring.py +5 -1
- elasticsearch/_async/client/nodes.py +46 -30
- elasticsearch/_async/client/query_rules.py +65 -18
- elasticsearch/_async/client/rollup.py +126 -13
- elasticsearch/_async/client/search_application.py +170 -13
- elasticsearch/_async/client/searchable_snapshots.py +45 -23
- elasticsearch/_async/client/security.py +1299 -340
- elasticsearch/_async/client/shutdown.py +43 -15
- elasticsearch/_async/client/simulate.py +145 -0
- elasticsearch/_async/client/slm.py +163 -19
- elasticsearch/_async/client/snapshot.py +288 -23
- elasticsearch/_async/client/sql.py +94 -53
- elasticsearch/_async/client/ssl.py +16 -17
- elasticsearch/_async/client/synonyms.py +67 -26
- elasticsearch/_async/client/tasks.py +103 -28
- elasticsearch/_async/client/text_structure.py +475 -46
- elasticsearch/_async/client/transform.py +108 -72
- elasticsearch/_async/client/watcher.py +245 -43
- elasticsearch/_async/client/xpack.py +20 -6
- elasticsearch/_async/helpers.py +1 -1
- elasticsearch/_sync/client/__init__.py +2034 -740
- elasticsearch/_sync/client/async_search.py +33 -22
- elasticsearch/_sync/client/autoscaling.py +27 -21
- elasticsearch/_sync/client/cat.py +280 -336
- elasticsearch/_sync/client/ccr.py +96 -70
- elasticsearch/_sync/client/cluster.py +152 -144
- elasticsearch/_sync/client/connector.py +488 -55
- elasticsearch/_sync/client/dangling_indices.py +22 -16
- elasticsearch/_sync/client/enrich.py +25 -6
- elasticsearch/_sync/client/eql.py +22 -9
- elasticsearch/_sync/client/esql.py +295 -3
- elasticsearch/_sync/client/features.py +25 -25
- elasticsearch/_sync/client/fleet.py +15 -9
- elasticsearch/_sync/client/graph.py +9 -8
- elasticsearch/_sync/client/ilm.py +91 -61
- elasticsearch/_sync/client/indices.py +746 -324
- elasticsearch/_sync/client/inference.py +101 -4
- elasticsearch/_sync/client/ingest.py +231 -19
- elasticsearch/_sync/client/license.py +48 -31
- elasticsearch/_sync/client/logstash.py +20 -6
- elasticsearch/_sync/client/migration.py +25 -7
- elasticsearch/_sync/client/ml.py +532 -278
- elasticsearch/_sync/client/monitoring.py +5 -1
- elasticsearch/_sync/client/nodes.py +46 -30
- elasticsearch/_sync/client/query_rules.py +65 -18
- elasticsearch/_sync/client/rollup.py +126 -13
- elasticsearch/_sync/client/search_application.py +170 -13
- elasticsearch/_sync/client/searchable_snapshots.py +45 -23
- elasticsearch/_sync/client/security.py +1299 -340
- elasticsearch/_sync/client/shutdown.py +43 -15
- elasticsearch/_sync/client/simulate.py +145 -0
- elasticsearch/_sync/client/slm.py +163 -19
- elasticsearch/_sync/client/snapshot.py +288 -23
- elasticsearch/_sync/client/sql.py +94 -53
- elasticsearch/_sync/client/ssl.py +16 -17
- elasticsearch/_sync/client/synonyms.py +67 -26
- elasticsearch/_sync/client/tasks.py +103 -28
- elasticsearch/_sync/client/text_structure.py +475 -46
- elasticsearch/_sync/client/transform.py +108 -72
- elasticsearch/_sync/client/utils.py +1 -1
- elasticsearch/_sync/client/watcher.py +245 -43
- elasticsearch/_sync/client/xpack.py +20 -6
- elasticsearch/_version.py +1 -1
- elasticsearch/client.py +4 -0
- elasticsearch/helpers/actions.py +1 -1
- elasticsearch/helpers/vectorstore/_sync/vectorstore.py +4 -1
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/METADATA +1 -1
- elasticsearch-8.17.2.dist-info/RECORD +119 -0
- elasticsearch-8.17.0.dist-info/RECORD +0 -117
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/WHEEL +0 -0
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/LICENSE +0 -0
- {elasticsearch-8.17.0.dist-info → elasticsearch-8.17.2.dist-info}/licenses/NOTICE +0 -0
elasticsearch/_sync/client/ml.py
CHANGED
|
@@ -36,11 +36,14 @@ class MlClient(NamespacedClient):
|
|
|
36
36
|
pretty: t.Optional[bool] = None,
|
|
37
37
|
) -> ObjectApiResponse[t.Any]:
|
|
38
38
|
"""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
.. raw:: html
|
|
40
|
+
|
|
41
|
+
<p>Clear trained model deployment cache.
|
|
42
|
+
Cache will be cleared on all nodes where the trained model is assigned.
|
|
43
|
+
A trained model deployment may have an inference cache enabled.
|
|
44
|
+
As requests are handled by each allocated node, their responses may be cached on that individual node.
|
|
45
|
+
Calling this API clears the caches without restarting the deployment.</p>
|
|
46
|
+
|
|
44
47
|
|
|
45
48
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/clear-trained-model-deployment-cache.html>`_
|
|
46
49
|
|
|
@@ -88,19 +91,14 @@ class MlClient(NamespacedClient):
|
|
|
88
91
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
89
92
|
) -> ObjectApiResponse[t.Any]:
|
|
90
93
|
"""
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
are no longer required to process data. If you close an anomaly detection job
|
|
100
|
-
whose datafeed is running, the request first tries to stop the datafeed. This
|
|
101
|
-
behavior is equivalent to calling stop datafeed API with the same timeout and
|
|
102
|
-
force parameters as the close job request. When a datafeed that has a specified
|
|
103
|
-
end date stops, it automatically closes its associated job.
|
|
94
|
+
.. raw:: html
|
|
95
|
+
|
|
96
|
+
<p>Close anomaly detection jobs.
|
|
97
|
+
A job can be opened and closed multiple times throughout its lifecycle. A closed job cannot receive data or perform analysis operations, but you can still explore and navigate results.
|
|
98
|
+
When you close a job, it runs housekeeping tasks such as pruning the model history, flushing buffers, calculating final results and persisting the model snapshots. Depending upon the size of the job, it could take several minutes to close and the equivalent time to re-open. After it is closed, the job has a minimal overhead on the cluster except for maintaining its meta data. Therefore it is a best practice to close jobs that are no longer required to process data.
|
|
99
|
+
If you close an anomaly detection job whose datafeed is running, the request first tries to stop the datafeed. This behavior is equivalent to calling stop datafeed API with the same timeout and force parameters as the close job request.
|
|
100
|
+
When a datafeed that has a specified end date stops, it automatically closes its associated job.</p>
|
|
101
|
+
|
|
104
102
|
|
|
105
103
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-close-job.html>`_
|
|
106
104
|
|
|
@@ -161,8 +159,11 @@ class MlClient(NamespacedClient):
|
|
|
161
159
|
pretty: t.Optional[bool] = None,
|
|
162
160
|
) -> ObjectApiResponse[t.Any]:
|
|
163
161
|
"""
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
.. raw:: html
|
|
163
|
+
|
|
164
|
+
<p>Delete a calendar.
|
|
165
|
+
Removes all scheduled events from a calendar, then deletes it.</p>
|
|
166
|
+
|
|
166
167
|
|
|
167
168
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-calendar.html>`_
|
|
168
169
|
|
|
@@ -203,7 +204,10 @@ class MlClient(NamespacedClient):
|
|
|
203
204
|
pretty: t.Optional[bool] = None,
|
|
204
205
|
) -> ObjectApiResponse[t.Any]:
|
|
205
206
|
"""
|
|
206
|
-
|
|
207
|
+
.. raw:: html
|
|
208
|
+
|
|
209
|
+
<p>Delete events from a calendar.</p>
|
|
210
|
+
|
|
207
211
|
|
|
208
212
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-calendar-event.html>`_
|
|
209
213
|
|
|
@@ -251,7 +255,10 @@ class MlClient(NamespacedClient):
|
|
|
251
255
|
pretty: t.Optional[bool] = None,
|
|
252
256
|
) -> ObjectApiResponse[t.Any]:
|
|
253
257
|
"""
|
|
254
|
-
|
|
258
|
+
.. raw:: html
|
|
259
|
+
|
|
260
|
+
<p>Delete anomaly jobs from a calendar.</p>
|
|
261
|
+
|
|
255
262
|
|
|
256
263
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-calendar-job.html>`_
|
|
257
264
|
|
|
@@ -300,7 +307,10 @@ class MlClient(NamespacedClient):
|
|
|
300
307
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
301
308
|
) -> ObjectApiResponse[t.Any]:
|
|
302
309
|
"""
|
|
303
|
-
|
|
310
|
+
.. raw:: html
|
|
311
|
+
|
|
312
|
+
<p>Delete a data frame analytics job.</p>
|
|
313
|
+
|
|
304
314
|
|
|
305
315
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-dfanalytics.html>`_
|
|
306
316
|
|
|
@@ -348,7 +358,10 @@ class MlClient(NamespacedClient):
|
|
|
348
358
|
pretty: t.Optional[bool] = None,
|
|
349
359
|
) -> ObjectApiResponse[t.Any]:
|
|
350
360
|
"""
|
|
351
|
-
|
|
361
|
+
.. raw:: html
|
|
362
|
+
|
|
363
|
+
<p>Delete a datafeed.</p>
|
|
364
|
+
|
|
352
365
|
|
|
353
366
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-datafeed.html>`_
|
|
354
367
|
|
|
@@ -400,13 +413,18 @@ class MlClient(NamespacedClient):
|
|
|
400
413
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
401
414
|
) -> ObjectApiResponse[t.Any]:
|
|
402
415
|
"""
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
416
|
+
.. raw:: html
|
|
417
|
+
|
|
418
|
+
<p>Delete expired ML data.
|
|
419
|
+
Deletes all job results, model snapshots and forecast data that have exceeded
|
|
420
|
+
their retention days period. Machine learning state documents that are not
|
|
421
|
+
associated with any job are also deleted.
|
|
422
|
+
You can limit the request to a single or set of anomaly detection jobs by
|
|
423
|
+
using a job identifier, a group name, a comma-separated list of jobs, or a
|
|
424
|
+
wildcard expression. You can delete expired data for all anomaly detection
|
|
425
|
+
jobs by using _all, by specifying * as the <job_id>, or by omitting the
|
|
426
|
+
<job_id>.</p>
|
|
427
|
+
|
|
410
428
|
|
|
411
429
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-expired-data.html>`_
|
|
412
430
|
|
|
@@ -465,9 +483,12 @@ class MlClient(NamespacedClient):
|
|
|
465
483
|
pretty: t.Optional[bool] = None,
|
|
466
484
|
) -> ObjectApiResponse[t.Any]:
|
|
467
485
|
"""
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
486
|
+
.. raw:: html
|
|
487
|
+
|
|
488
|
+
<p>Delete a filter.
|
|
489
|
+
If an anomaly detection job references the filter, you cannot delete the
|
|
490
|
+
filter. You must update or delete the job before you can delete the filter.</p>
|
|
491
|
+
|
|
471
492
|
|
|
472
493
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-filter.html>`_
|
|
473
494
|
|
|
@@ -510,10 +531,14 @@ class MlClient(NamespacedClient):
|
|
|
510
531
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
511
532
|
) -> ObjectApiResponse[t.Any]:
|
|
512
533
|
"""
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
534
|
+
.. raw:: html
|
|
535
|
+
|
|
536
|
+
<p>Delete forecasts from a job.
|
|
537
|
+
By default, forecasts are retained for 14 days. You can specify a
|
|
538
|
+
different retention period with the <code>expires_in</code> parameter in the forecast
|
|
539
|
+
jobs API. The delete forecast API enables you to delete one or more
|
|
540
|
+
forecasts before they expire.</p>
|
|
541
|
+
|
|
517
542
|
|
|
518
543
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-forecast.html>`_
|
|
519
544
|
|
|
@@ -580,12 +605,16 @@ class MlClient(NamespacedClient):
|
|
|
580
605
|
wait_for_completion: t.Optional[bool] = None,
|
|
581
606
|
) -> ObjectApiResponse[t.Any]:
|
|
582
607
|
"""
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
608
|
+
.. raw:: html
|
|
609
|
+
|
|
610
|
+
<p>Delete an anomaly detection job.
|
|
611
|
+
All job configuration, model state and results are deleted.
|
|
612
|
+
It is not currently possible to delete multiple jobs using wildcards or a
|
|
613
|
+
comma separated list. If you delete a job that has a datafeed, the request
|
|
614
|
+
first tries to delete the datafeed. This behavior is equivalent to calling
|
|
615
|
+
the delete datafeed API with the same timeout and force parameters as the
|
|
616
|
+
delete job request.</p>
|
|
617
|
+
|
|
589
618
|
|
|
590
619
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-job.html>`_
|
|
591
620
|
|
|
@@ -639,9 +668,13 @@ class MlClient(NamespacedClient):
|
|
|
639
668
|
pretty: t.Optional[bool] = None,
|
|
640
669
|
) -> ObjectApiResponse[t.Any]:
|
|
641
670
|
"""
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
671
|
+
.. raw:: html
|
|
672
|
+
|
|
673
|
+
<p>Delete a model snapshot.
|
|
674
|
+
You cannot delete the active model snapshot. To delete that snapshot, first
|
|
675
|
+
revert to a different one. To identify the active model snapshot, refer to
|
|
676
|
+
the <code>model_snapshot_id</code> in the results from the get jobs API.</p>
|
|
677
|
+
|
|
645
678
|
|
|
646
679
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-delete-snapshot.html>`_
|
|
647
680
|
|
|
@@ -688,8 +721,11 @@ class MlClient(NamespacedClient):
|
|
|
688
721
|
pretty: t.Optional[bool] = None,
|
|
689
722
|
) -> ObjectApiResponse[t.Any]:
|
|
690
723
|
"""
|
|
691
|
-
|
|
692
|
-
|
|
724
|
+
.. raw:: html
|
|
725
|
+
|
|
726
|
+
<p>Delete an unreferenced trained model.
|
|
727
|
+
The request deletes a trained inference model that is not referenced by an ingest pipeline.</p>
|
|
728
|
+
|
|
693
729
|
|
|
694
730
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-trained-models.html>`_
|
|
695
731
|
|
|
@@ -734,9 +770,13 @@ class MlClient(NamespacedClient):
|
|
|
734
770
|
pretty: t.Optional[bool] = None,
|
|
735
771
|
) -> ObjectApiResponse[t.Any]:
|
|
736
772
|
"""
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
773
|
+
.. raw:: html
|
|
774
|
+
|
|
775
|
+
<p>Delete a trained model alias.
|
|
776
|
+
This API deletes an existing model alias that refers to a trained model. If
|
|
777
|
+
the model alias is missing or refers to a model other than the one identified
|
|
778
|
+
by the <code>model_id</code>, this API returns an error.</p>
|
|
779
|
+
|
|
740
780
|
|
|
741
781
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/delete-trained-models-aliases.html>`_
|
|
742
782
|
|
|
@@ -791,9 +831,13 @@ class MlClient(NamespacedClient):
|
|
|
791
831
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
792
832
|
) -> ObjectApiResponse[t.Any]:
|
|
793
833
|
"""
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
834
|
+
.. raw:: html
|
|
835
|
+
|
|
836
|
+
<p>Estimate job model memory usage.
|
|
837
|
+
Makes an estimation of the memory usage for an anomaly detection job model.
|
|
838
|
+
It is based on analysis configuration details for the job and cardinality
|
|
839
|
+
estimates for the fields it references.</p>
|
|
840
|
+
|
|
797
841
|
|
|
798
842
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-apis.html>`_
|
|
799
843
|
|
|
@@ -858,10 +902,14 @@ class MlClient(NamespacedClient):
|
|
|
858
902
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
859
903
|
) -> ObjectApiResponse[t.Any]:
|
|
860
904
|
"""
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
905
|
+
.. raw:: html
|
|
906
|
+
|
|
907
|
+
<p>Evaluate data frame analytics.
|
|
908
|
+
The API packages together commonly used evaluation metrics for various types
|
|
909
|
+
of machine learning features. This has been designed for use on indexes
|
|
910
|
+
created by data frame analytics. Evaluation requires both a ground truth
|
|
911
|
+
field and an analytics result field to be present.</p>
|
|
912
|
+
|
|
865
913
|
|
|
866
914
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/evaluate-dfanalytics.html>`_
|
|
867
915
|
|
|
@@ -935,13 +983,18 @@ class MlClient(NamespacedClient):
|
|
|
935
983
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
936
984
|
) -> ObjectApiResponse[t.Any]:
|
|
937
985
|
"""
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
986
|
+
.. raw:: html
|
|
987
|
+
|
|
988
|
+
<p>Explain data frame analytics config.
|
|
989
|
+
This API provides explanations for a data frame analytics config that either
|
|
990
|
+
exists already or one that has not been created yet. The following
|
|
991
|
+
explanations are provided:</p>
|
|
992
|
+
<ul>
|
|
993
|
+
<li>which fields are included or not in the analysis and why,</li>
|
|
994
|
+
<li>how much memory is estimated to be required. The estimate can be used when deciding the appropriate value for model_memory_limit setting later on.
|
|
995
|
+
If you have object fields or fields that are excluded via source filtering, they are not included in the explanation.</li>
|
|
996
|
+
</ul>
|
|
997
|
+
|
|
945
998
|
|
|
946
999
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/explain-dfanalytics.html>`_
|
|
947
1000
|
|
|
@@ -1041,14 +1094,18 @@ class MlClient(NamespacedClient):
|
|
|
1041
1094
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
1042
1095
|
) -> ObjectApiResponse[t.Any]:
|
|
1043
1096
|
"""
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1097
|
+
.. raw:: html
|
|
1098
|
+
|
|
1099
|
+
<p>Force buffered data to be processed.
|
|
1100
|
+
The flush jobs API is only applicable when sending data for analysis using
|
|
1101
|
+
the post data API. Depending on the content of the buffer, then it might
|
|
1102
|
+
additionally calculate new results. Both flush and close operations are
|
|
1103
|
+
similar, however the flush is more efficient if you are expecting to send
|
|
1104
|
+
more data for analysis. When flushing, the job remains open and is available
|
|
1105
|
+
to continue analyzing data. A close operation additionally prunes and
|
|
1106
|
+
persists the model state to disk and the job must be opened again before
|
|
1107
|
+
analyzing further data.</p>
|
|
1108
|
+
|
|
1052
1109
|
|
|
1053
1110
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-flush-job.html>`_
|
|
1054
1111
|
|
|
@@ -1116,10 +1173,14 @@ class MlClient(NamespacedClient):
|
|
|
1116
1173
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
1117
1174
|
) -> ObjectApiResponse[t.Any]:
|
|
1118
1175
|
"""
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1176
|
+
.. raw:: html
|
|
1177
|
+
|
|
1178
|
+
<p>Predict future behavior of a time series.</p>
|
|
1179
|
+
<p>Forecasts are not supported for jobs that perform population analysis; an
|
|
1180
|
+
error occurs if you try to create a forecast for a job that has an
|
|
1181
|
+
<code>over_field_name</code> in its configuration. Forcasts predict future behavior
|
|
1182
|
+
based on historical data.</p>
|
|
1183
|
+
|
|
1123
1184
|
|
|
1124
1185
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-forecast.html>`_
|
|
1125
1186
|
|
|
@@ -1201,8 +1262,11 @@ class MlClient(NamespacedClient):
|
|
|
1201
1262
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
1202
1263
|
) -> ObjectApiResponse[t.Any]:
|
|
1203
1264
|
"""
|
|
1204
|
-
|
|
1205
|
-
|
|
1265
|
+
.. raw:: html
|
|
1266
|
+
|
|
1267
|
+
<p>Get anomaly detection job results for buckets.
|
|
1268
|
+
The API presents a chronological view of the records, grouped by bucket.</p>
|
|
1269
|
+
|
|
1206
1270
|
|
|
1207
1271
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-bucket.html>`_
|
|
1208
1272
|
|
|
@@ -1297,7 +1361,10 @@ class MlClient(NamespacedClient):
|
|
|
1297
1361
|
start: t.Optional[t.Union[str, t.Any]] = None,
|
|
1298
1362
|
) -> ObjectApiResponse[t.Any]:
|
|
1299
1363
|
"""
|
|
1300
|
-
|
|
1364
|
+
.. raw:: html
|
|
1365
|
+
|
|
1366
|
+
<p>Get info about events in calendars.</p>
|
|
1367
|
+
|
|
1301
1368
|
|
|
1302
1369
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-calendar-event.html>`_
|
|
1303
1370
|
|
|
@@ -1363,7 +1430,10 @@ class MlClient(NamespacedClient):
|
|
|
1363
1430
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
1364
1431
|
) -> ObjectApiResponse[t.Any]:
|
|
1365
1432
|
"""
|
|
1366
|
-
|
|
1433
|
+
.. raw:: html
|
|
1434
|
+
|
|
1435
|
+
<p>Get calendar configuration info.</p>
|
|
1436
|
+
|
|
1367
1437
|
|
|
1368
1438
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-calendar.html>`_
|
|
1369
1439
|
|
|
@@ -1436,7 +1506,10 @@ class MlClient(NamespacedClient):
|
|
|
1436
1506
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
1437
1507
|
) -> ObjectApiResponse[t.Any]:
|
|
1438
1508
|
"""
|
|
1439
|
-
|
|
1509
|
+
.. raw:: html
|
|
1510
|
+
|
|
1511
|
+
<p>Get anomaly detection job results for categories.</p>
|
|
1512
|
+
|
|
1440
1513
|
|
|
1441
1514
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-category.html>`_
|
|
1442
1515
|
|
|
@@ -1518,9 +1591,13 @@ class MlClient(NamespacedClient):
|
|
|
1518
1591
|
size: t.Optional[int] = None,
|
|
1519
1592
|
) -> ObjectApiResponse[t.Any]:
|
|
1520
1593
|
"""
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1594
|
+
.. raw:: html
|
|
1595
|
+
|
|
1596
|
+
<p>Get data frame analytics job configuration info.
|
|
1597
|
+
You can get information for multiple data frame analytics jobs in a single
|
|
1598
|
+
API request by using a comma-separated list of data frame analytics jobs or a
|
|
1599
|
+
wildcard expression.</p>
|
|
1600
|
+
|
|
1524
1601
|
|
|
1525
1602
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-dfanalytics.html>`_
|
|
1526
1603
|
|
|
@@ -1592,7 +1669,10 @@ class MlClient(NamespacedClient):
|
|
|
1592
1669
|
verbose: t.Optional[bool] = None,
|
|
1593
1670
|
) -> ObjectApiResponse[t.Any]:
|
|
1594
1671
|
"""
|
|
1595
|
-
|
|
1672
|
+
.. raw:: html
|
|
1673
|
+
|
|
1674
|
+
<p>Get data frame analytics jobs usage info.</p>
|
|
1675
|
+
|
|
1596
1676
|
|
|
1597
1677
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-dfanalytics-stats.html>`_
|
|
1598
1678
|
|
|
@@ -1657,12 +1737,16 @@ class MlClient(NamespacedClient):
|
|
|
1657
1737
|
pretty: t.Optional[bool] = None,
|
|
1658
1738
|
) -> ObjectApiResponse[t.Any]:
|
|
1659
1739
|
"""
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1740
|
+
.. raw:: html
|
|
1741
|
+
|
|
1742
|
+
<p>Get datafeeds usage info.
|
|
1743
|
+
You can get statistics for multiple datafeeds in a single API request by
|
|
1744
|
+
using a comma-separated list of datafeeds or a wildcard expression. You can
|
|
1745
|
+
get statistics for all datafeeds by using <code>_all</code>, by specifying <code>*</code> as the
|
|
1746
|
+
<code><feed_id></code>, or by omitting the <code><feed_id></code>. If the datafeed is stopped, the
|
|
1747
|
+
only information you receive is the <code>datafeed_id</code> and the <code>state</code>.
|
|
1748
|
+
This API returns a maximum of 10,000 datafeeds.</p>
|
|
1749
|
+
|
|
1666
1750
|
|
|
1667
1751
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-datafeed-stats.html>`_
|
|
1668
1752
|
|
|
@@ -1718,11 +1802,15 @@ class MlClient(NamespacedClient):
|
|
|
1718
1802
|
pretty: t.Optional[bool] = None,
|
|
1719
1803
|
) -> ObjectApiResponse[t.Any]:
|
|
1720
1804
|
"""
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1805
|
+
.. raw:: html
|
|
1806
|
+
|
|
1807
|
+
<p>Get datafeeds configuration info.
|
|
1808
|
+
You can get information for multiple datafeeds in a single API request by
|
|
1809
|
+
using a comma-separated list of datafeeds or a wildcard expression. You can
|
|
1810
|
+
get information for all datafeeds by using <code>_all</code>, by specifying <code>*</code> as the
|
|
1811
|
+
<code><feed_id></code>, or by omitting the <code><feed_id></code>.
|
|
1812
|
+
This API returns a maximum of 10,000 datafeeds.</p>
|
|
1813
|
+
|
|
1726
1814
|
|
|
1727
1815
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-datafeed.html>`_
|
|
1728
1816
|
|
|
@@ -1785,7 +1873,11 @@ class MlClient(NamespacedClient):
|
|
|
1785
1873
|
size: t.Optional[int] = None,
|
|
1786
1874
|
) -> ObjectApiResponse[t.Any]:
|
|
1787
1875
|
"""
|
|
1788
|
-
|
|
1876
|
+
.. raw:: html
|
|
1877
|
+
|
|
1878
|
+
<p>Get filters.
|
|
1879
|
+
You can get a single filter or all filters.</p>
|
|
1880
|
+
|
|
1789
1881
|
|
|
1790
1882
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-filter.html>`_
|
|
1791
1883
|
|
|
@@ -1847,9 +1939,13 @@ class MlClient(NamespacedClient):
|
|
|
1847
1939
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
1848
1940
|
) -> ObjectApiResponse[t.Any]:
|
|
1849
1941
|
"""
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1942
|
+
.. raw:: html
|
|
1943
|
+
|
|
1944
|
+
<p>Get anomaly detection job results for influencers.
|
|
1945
|
+
Influencers are the entities that have contributed to, or are to blame for,
|
|
1946
|
+
the anomalies. Influencer results are available only if an
|
|
1947
|
+
<code>influencer_field_name</code> is specified in the job configuration.</p>
|
|
1948
|
+
|
|
1853
1949
|
|
|
1854
1950
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-influencer.html>`_
|
|
1855
1951
|
|
|
@@ -1930,7 +2026,10 @@ class MlClient(NamespacedClient):
|
|
|
1930
2026
|
pretty: t.Optional[bool] = None,
|
|
1931
2027
|
) -> ObjectApiResponse[t.Any]:
|
|
1932
2028
|
"""
|
|
1933
|
-
|
|
2029
|
+
.. raw:: html
|
|
2030
|
+
|
|
2031
|
+
<p>Get anomaly detection jobs usage info.</p>
|
|
2032
|
+
|
|
1934
2033
|
|
|
1935
2034
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-job-stats.html>`_
|
|
1936
2035
|
|
|
@@ -1987,11 +2086,14 @@ class MlClient(NamespacedClient):
|
|
|
1987
2086
|
pretty: t.Optional[bool] = None,
|
|
1988
2087
|
) -> ObjectApiResponse[t.Any]:
|
|
1989
2088
|
"""
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
2089
|
+
.. raw:: html
|
|
2090
|
+
|
|
2091
|
+
<p>Get anomaly detection jobs configuration info.
|
|
2092
|
+
You can get information for multiple anomaly detection jobs in a single API
|
|
2093
|
+
request by using a group name, a comma-separated list of jobs, or a wildcard
|
|
2094
|
+
expression. You can get information for all anomaly detection jobs by using
|
|
2095
|
+
<code>_all</code>, by specifying <code>*</code> as the <code><job_id></code>, or by omitting the <code><job_id></code>.</p>
|
|
2096
|
+
|
|
1995
2097
|
|
|
1996
2098
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-job.html>`_
|
|
1997
2099
|
|
|
@@ -2052,9 +2154,12 @@ class MlClient(NamespacedClient):
|
|
|
2052
2154
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
2053
2155
|
) -> ObjectApiResponse[t.Any]:
|
|
2054
2156
|
"""
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2157
|
+
.. raw:: html
|
|
2158
|
+
|
|
2159
|
+
<p>Get machine learning memory usage info.
|
|
2160
|
+
Get information about how machine learning jobs and trained models are using memory,
|
|
2161
|
+
on each node, both within the JVM heap, and natively, outside of the JVM.</p>
|
|
2162
|
+
|
|
2058
2163
|
|
|
2059
2164
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-ml-memory.html>`_
|
|
2060
2165
|
|
|
@@ -2109,7 +2214,10 @@ class MlClient(NamespacedClient):
|
|
|
2109
2214
|
pretty: t.Optional[bool] = None,
|
|
2110
2215
|
) -> ObjectApiResponse[t.Any]:
|
|
2111
2216
|
"""
|
|
2112
|
-
|
|
2217
|
+
.. raw:: html
|
|
2218
|
+
|
|
2219
|
+
<p>Get anomaly detection job model snapshot upgrade usage info.</p>
|
|
2220
|
+
|
|
2113
2221
|
|
|
2114
2222
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-job-model-snapshot-upgrade-stats.html>`_
|
|
2115
2223
|
|
|
@@ -2180,7 +2288,10 @@ class MlClient(NamespacedClient):
|
|
|
2180
2288
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2181
2289
|
) -> ObjectApiResponse[t.Any]:
|
|
2182
2290
|
"""
|
|
2183
|
-
|
|
2291
|
+
.. raw:: html
|
|
2292
|
+
|
|
2293
|
+
<p>Get model snapshots info.</p>
|
|
2294
|
+
|
|
2184
2295
|
|
|
2185
2296
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-snapshot.html>`_
|
|
2186
2297
|
|
|
@@ -2281,19 +2392,26 @@ class MlClient(NamespacedClient):
|
|
|
2281
2392
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2282
2393
|
) -> ObjectApiResponse[t.Any]:
|
|
2283
2394
|
"""
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2395
|
+
.. raw:: html
|
|
2396
|
+
|
|
2397
|
+
<p>Get overall bucket results.</p>
|
|
2398
|
+
<p>Retrievs overall bucket results that summarize the bucket results of
|
|
2399
|
+
multiple anomaly detection jobs.</p>
|
|
2400
|
+
<p>The <code>overall_score</code> is calculated by combining the scores of all the
|
|
2401
|
+
buckets within the overall bucket span. First, the maximum
|
|
2402
|
+
<code>anomaly_score</code> per anomaly detection job in the overall bucket is
|
|
2403
|
+
calculated. Then the <code>top_n</code> of those scores are averaged to result in
|
|
2404
|
+
the <code>overall_score</code>. This means that you can fine-tune the
|
|
2405
|
+
<code>overall_score</code> so that it is more or less sensitive to the number of
|
|
2406
|
+
jobs that detect an anomaly at the same time. For example, if you set
|
|
2407
|
+
<code>top_n</code> to <code>1</code>, the <code>overall_score</code> is the maximum bucket score in the
|
|
2408
|
+
overall bucket. Alternatively, if you set <code>top_n</code> to the number of jobs,
|
|
2409
|
+
the <code>overall_score</code> is high only when all jobs detect anomalies in that
|
|
2410
|
+
overall bucket. If you set the <code>bucket_span</code> parameter (to a value
|
|
2411
|
+
greater than its default), the <code>overall_score</code> is the maximum
|
|
2412
|
+
<code>overall_score</code> of the overall buckets that have a span equal to the
|
|
2413
|
+
jobs' largest bucket span.</p>
|
|
2414
|
+
|
|
2297
2415
|
|
|
2298
2416
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-overall-buckets.html>`_
|
|
2299
2417
|
|
|
@@ -2390,15 +2508,20 @@ class MlClient(NamespacedClient):
|
|
|
2390
2508
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2391
2509
|
) -> ObjectApiResponse[t.Any]:
|
|
2392
2510
|
"""
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2511
|
+
.. raw:: html
|
|
2512
|
+
|
|
2513
|
+
<p>Get anomaly records for an anomaly detection job.
|
|
2514
|
+
Records contain the detailed analytical results. They describe the anomalous
|
|
2515
|
+
activity that has been identified in the input data based on the detector
|
|
2516
|
+
configuration.
|
|
2517
|
+
There can be many anomaly records depending on the characteristics and size
|
|
2518
|
+
of the input data. In practice, there are often too many to be able to
|
|
2519
|
+
manually process them. The machine learning features therefore perform a
|
|
2520
|
+
sophisticated aggregation of the anomaly records into buckets.
|
|
2521
|
+
The number of record results depends on the number of anomalies found in each
|
|
2522
|
+
bucket, which relates to the number of time series being modeled and the
|
|
2523
|
+
number of detectors.</p>
|
|
2524
|
+
|
|
2402
2525
|
|
|
2403
2526
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-get-record.html>`_
|
|
2404
2527
|
|
|
@@ -2494,7 +2617,10 @@ class MlClient(NamespacedClient):
|
|
|
2494
2617
|
tags: t.Optional[t.Union[str, t.Sequence[str]]] = None,
|
|
2495
2618
|
) -> ObjectApiResponse[t.Any]:
|
|
2496
2619
|
"""
|
|
2497
|
-
|
|
2620
|
+
.. raw:: html
|
|
2621
|
+
|
|
2622
|
+
<p>Get trained model configuration info.</p>
|
|
2623
|
+
|
|
2498
2624
|
|
|
2499
2625
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-trained-models.html>`_
|
|
2500
2626
|
|
|
@@ -2580,9 +2706,12 @@ class MlClient(NamespacedClient):
|
|
|
2580
2706
|
size: t.Optional[int] = None,
|
|
2581
2707
|
) -> ObjectApiResponse[t.Any]:
|
|
2582
2708
|
"""
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2709
|
+
.. raw:: html
|
|
2710
|
+
|
|
2711
|
+
<p>Get trained models usage info.
|
|
2712
|
+
You can get usage information for multiple trained
|
|
2713
|
+
models in a single API request by using a comma-separated list of model IDs or a wildcard expression.</p>
|
|
2714
|
+
|
|
2586
2715
|
|
|
2587
2716
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-trained-models-stats.html>`_
|
|
2588
2717
|
|
|
@@ -2645,7 +2774,10 @@ class MlClient(NamespacedClient):
|
|
|
2645
2774
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2646
2775
|
) -> ObjectApiResponse[t.Any]:
|
|
2647
2776
|
"""
|
|
2648
|
-
|
|
2777
|
+
.. raw:: html
|
|
2778
|
+
|
|
2779
|
+
<p>Evaluate a trained model.</p>
|
|
2780
|
+
|
|
2649
2781
|
|
|
2650
2782
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/infer-trained-model.html>`_
|
|
2651
2783
|
|
|
@@ -2702,12 +2834,17 @@ class MlClient(NamespacedClient):
|
|
|
2702
2834
|
pretty: t.Optional[bool] = None,
|
|
2703
2835
|
) -> ObjectApiResponse[t.Any]:
|
|
2704
2836
|
"""
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2837
|
+
.. raw:: html
|
|
2838
|
+
|
|
2839
|
+
<p>Get machine learning information.
|
|
2840
|
+
Get defaults and limits used by machine learning.
|
|
2841
|
+
This endpoint is designed to be used by a user interface that needs to fully
|
|
2842
|
+
understand machine learning configurations where some options are not
|
|
2843
|
+
specified, meaning that the defaults should be used. This endpoint may be
|
|
2844
|
+
used to find out what those defaults are. It also provides information about
|
|
2845
|
+
the maximum size of machine learning jobs that could run in the current
|
|
2846
|
+
cluster configuration.</p>
|
|
2847
|
+
|
|
2711
2848
|
|
|
2712
2849
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/get-ml-info.html>`_
|
|
2713
2850
|
"""
|
|
@@ -2747,12 +2884,16 @@ class MlClient(NamespacedClient):
|
|
|
2747
2884
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2748
2885
|
) -> ObjectApiResponse[t.Any]:
|
|
2749
2886
|
"""
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2887
|
+
.. raw:: html
|
|
2888
|
+
|
|
2889
|
+
<p>Open anomaly detection jobs.
|
|
2890
|
+
An anomaly detection job must be opened to be ready to receive and analyze
|
|
2891
|
+
data. It can be opened and closed multiple times throughout its lifecycle.
|
|
2892
|
+
When you open a new job, it starts with an empty model.
|
|
2893
|
+
When you open an existing job, the most recent model state is automatically
|
|
2894
|
+
loaded. The job is ready to resume its analysis from where it left off, once
|
|
2895
|
+
new data is received.</p>
|
|
2896
|
+
|
|
2756
2897
|
|
|
2757
2898
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-open-job.html>`_
|
|
2758
2899
|
|
|
@@ -2806,7 +2947,10 @@ class MlClient(NamespacedClient):
|
|
|
2806
2947
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2807
2948
|
) -> ObjectApiResponse[t.Any]:
|
|
2808
2949
|
"""
|
|
2809
|
-
|
|
2950
|
+
.. raw:: html
|
|
2951
|
+
|
|
2952
|
+
<p>Add scheduled events to the calendar.</p>
|
|
2953
|
+
|
|
2810
2954
|
|
|
2811
2955
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-post-calendar-event.html>`_
|
|
2812
2956
|
|
|
@@ -2862,9 +3006,12 @@ class MlClient(NamespacedClient):
|
|
|
2862
3006
|
reset_start: t.Optional[t.Union[str, t.Any]] = None,
|
|
2863
3007
|
) -> ObjectApiResponse[t.Any]:
|
|
2864
3008
|
"""
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
3009
|
+
.. raw:: html
|
|
3010
|
+
|
|
3011
|
+
<p>Send data to an anomaly detection job for analysis.</p>
|
|
3012
|
+
<p>IMPORTANT: For each job, data can be accepted from only a single connection at a time.
|
|
3013
|
+
It is not currently possible to post data to multiple jobs using wildcards or a comma-separated list.</p>
|
|
3014
|
+
|
|
2868
3015
|
|
|
2869
3016
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-post-data.html>`_
|
|
2870
3017
|
|
|
@@ -2927,8 +3074,11 @@ class MlClient(NamespacedClient):
|
|
|
2927
3074
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2928
3075
|
) -> ObjectApiResponse[t.Any]:
|
|
2929
3076
|
"""
|
|
2930
|
-
|
|
2931
|
-
|
|
3077
|
+
.. raw:: html
|
|
3078
|
+
|
|
3079
|
+
<p>Preview features used by data frame analytics.
|
|
3080
|
+
Previews the extracted features used by a data frame analytics config.</p>
|
|
3081
|
+
|
|
2932
3082
|
|
|
2933
3083
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/preview-dfanalytics.html>`_
|
|
2934
3084
|
|
|
@@ -2990,15 +3140,18 @@ class MlClient(NamespacedClient):
|
|
|
2990
3140
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
2991
3141
|
) -> ObjectApiResponse[t.Any]:
|
|
2992
3142
|
"""
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3143
|
+
.. raw:: html
|
|
3144
|
+
|
|
3145
|
+
<p>Preview a datafeed.
|
|
3146
|
+
This API returns the first "page" of search results from a datafeed.
|
|
3147
|
+
You can preview an existing datafeed or provide configuration details for a datafeed
|
|
3148
|
+
and anomaly detection job in the API. The preview shows the structure of the data
|
|
3149
|
+
that will be passed to the anomaly detection engine.
|
|
3150
|
+
IMPORTANT: When Elasticsearch security features are enabled, the preview uses the credentials of the user that
|
|
3151
|
+
called the API. However, when the datafeed starts it uses the roles of the last user that created or updated the
|
|
3152
|
+
datafeed. To get a preview that accurately reflects the behavior of the datafeed, use the appropriate credentials.
|
|
3153
|
+
You can also use secondary authorization headers to supply the credentials.</p>
|
|
3154
|
+
|
|
3002
3155
|
|
|
3003
3156
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-preview-datafeed.html>`_
|
|
3004
3157
|
|
|
@@ -3074,7 +3227,10 @@ class MlClient(NamespacedClient):
|
|
|
3074
3227
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
3075
3228
|
) -> ObjectApiResponse[t.Any]:
|
|
3076
3229
|
"""
|
|
3077
|
-
|
|
3230
|
+
.. raw:: html
|
|
3231
|
+
|
|
3232
|
+
<p>Create a calendar.</p>
|
|
3233
|
+
|
|
3078
3234
|
|
|
3079
3235
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-put-calendar.html>`_
|
|
3080
3236
|
|
|
@@ -3128,7 +3284,10 @@ class MlClient(NamespacedClient):
|
|
|
3128
3284
|
pretty: t.Optional[bool] = None,
|
|
3129
3285
|
) -> ObjectApiResponse[t.Any]:
|
|
3130
3286
|
"""
|
|
3131
|
-
|
|
3287
|
+
.. raw:: html
|
|
3288
|
+
|
|
3289
|
+
<p>Add anomaly detection job to calendar.</p>
|
|
3290
|
+
|
|
3132
3291
|
|
|
3133
3292
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-put-calendar-job.html>`_
|
|
3134
3293
|
|
|
@@ -3203,9 +3362,15 @@ class MlClient(NamespacedClient):
|
|
|
3203
3362
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
3204
3363
|
) -> ObjectApiResponse[t.Any]:
|
|
3205
3364
|
"""
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3365
|
+
.. raw:: html
|
|
3366
|
+
|
|
3367
|
+
<p>Create a data frame analytics job.
|
|
3368
|
+
This API creates a data frame analytics job that performs an analysis on the
|
|
3369
|
+
source indices and stores the outcome in a destination index.
|
|
3370
|
+
By default, the query used in the source configuration is <code>{"match_all": {}}</code>.</p>
|
|
3371
|
+
<p>If the destination index does not exist, it is created automatically when you start the job.</p>
|
|
3372
|
+
<p>If you supply only a subset of the regression or classification parameters, hyperparameter optimization occurs. It determines a value for each of the undefined parameters.</p>
|
|
3373
|
+
|
|
3209
3374
|
|
|
3210
3375
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-dfanalytics.html>`_
|
|
3211
3376
|
|
|
@@ -3378,17 +3543,19 @@ class MlClient(NamespacedClient):
|
|
|
3378
3543
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
3379
3544
|
) -> ObjectApiResponse[t.Any]:
|
|
3380
3545
|
"""
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3546
|
+
.. raw:: html
|
|
3547
|
+
|
|
3548
|
+
<p>Create a datafeed.
|
|
3549
|
+
Datafeeds retrieve data from Elasticsearch for analysis by an anomaly detection job.
|
|
3550
|
+
You can associate only one datafeed with each anomaly detection job.
|
|
3551
|
+
The datafeed contains a query that runs at a defined interval (<code>frequency</code>).
|
|
3552
|
+
If you are concerned about delayed data, you can add a delay (<code>query_delay') at each interval. By default, the datafeed uses the following query: </code>{"match_all": {"boost": 1}}`.</p>
|
|
3553
|
+
<p>When Elasticsearch security features are enabled, your datafeed remembers which roles the user who created it had
|
|
3554
|
+
at the time of creation and runs the query using those same roles. If you provide secondary authorization headers,
|
|
3555
|
+
those credentials are used instead.
|
|
3556
|
+
You must use Kibana, this API, or the create anomaly detection jobs API to create a datafeed. Do not add a datafeed
|
|
3557
|
+
directly to the <code>.ml-config</code> index. Do not give users <code>write</code> privileges on the <code>.ml-config</code> index.</p>
|
|
3558
|
+
|
|
3392
3559
|
|
|
3393
3560
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-put-datafeed.html>`_
|
|
3394
3561
|
|
|
@@ -3545,9 +3712,12 @@ class MlClient(NamespacedClient):
|
|
|
3545
3712
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
3546
3713
|
) -> ObjectApiResponse[t.Any]:
|
|
3547
3714
|
"""
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3715
|
+
.. raw:: html
|
|
3716
|
+
|
|
3717
|
+
<p>Create a filter.
|
|
3718
|
+
A filter contains a list of strings. It can be used by one or more anomaly detection jobs.
|
|
3719
|
+
Specifically, filters are referenced in the <code>custom_rules</code> property of detector configuration objects.</p>
|
|
3720
|
+
|
|
3551
3721
|
|
|
3552
3722
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-put-filter.html>`_
|
|
3553
3723
|
|
|
@@ -3644,8 +3814,12 @@ class MlClient(NamespacedClient):
|
|
|
3644
3814
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
3645
3815
|
) -> ObjectApiResponse[t.Any]:
|
|
3646
3816
|
"""
|
|
3647
|
-
|
|
3648
|
-
|
|
3817
|
+
.. raw:: html
|
|
3818
|
+
|
|
3819
|
+
<p>Create an anomaly detection job.
|
|
3820
|
+
If you include a <code>datafeed_config</code>, you must have read index privileges on the source index.
|
|
3821
|
+
If you include a <code>datafeed_config</code> but do not provide a query, the datafeed uses <code>{"match_all": {"boost": 1}}</code>.</p>
|
|
3822
|
+
|
|
3649
3823
|
|
|
3650
3824
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-put-job.html>`_
|
|
3651
3825
|
|
|
@@ -3849,8 +4023,11 @@ class MlClient(NamespacedClient):
|
|
|
3849
4023
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
3850
4024
|
) -> ObjectApiResponse[t.Any]:
|
|
3851
4025
|
"""
|
|
3852
|
-
|
|
3853
|
-
|
|
4026
|
+
.. raw:: html
|
|
4027
|
+
|
|
4028
|
+
<p>Create a trained model.
|
|
4029
|
+
Enable you to supply a trained model that is not created by data frame analytics.</p>
|
|
4030
|
+
|
|
3854
4031
|
|
|
3855
4032
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-trained-models.html>`_
|
|
3856
4033
|
|
|
@@ -3952,19 +4129,26 @@ class MlClient(NamespacedClient):
|
|
|
3952
4129
|
reassign: t.Optional[bool] = None,
|
|
3953
4130
|
) -> ObjectApiResponse[t.Any]:
|
|
3954
4131
|
"""
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
4132
|
+
.. raw:: html
|
|
4133
|
+
|
|
4134
|
+
<p>Create or update a trained model alias.
|
|
4135
|
+
A trained model alias is a logical name used to reference a single trained
|
|
4136
|
+
model.
|
|
4137
|
+
You can use aliases instead of trained model identifiers to make it easier to
|
|
4138
|
+
reference your models. For example, you can use aliases in inference
|
|
4139
|
+
aggregations and processors.
|
|
4140
|
+
An alias must be unique and refer to only a single trained model. However,
|
|
4141
|
+
you can have multiple aliases for each trained model.
|
|
4142
|
+
If you use this API to update an alias such that it references a different
|
|
4143
|
+
trained model ID and the model uses a different type of data frame analytics,
|
|
4144
|
+
an error occurs. For example, this situation occurs if you have a trained
|
|
4145
|
+
model for regression analysis and a trained model for classification
|
|
4146
|
+
analysis; you cannot reassign an alias from one type of trained model to
|
|
4147
|
+
another.
|
|
4148
|
+
If you use this API to update an alias and there are very few input fields in
|
|
4149
|
+
common between the old and new trained models for the model alias, the API
|
|
4150
|
+
returns a warning.</p>
|
|
4151
|
+
|
|
3968
4152
|
|
|
3969
4153
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-trained-models-aliases.html>`_
|
|
3970
4154
|
|
|
@@ -4022,7 +4206,10 @@ class MlClient(NamespacedClient):
|
|
|
4022
4206
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
4023
4207
|
) -> ObjectApiResponse[t.Any]:
|
|
4024
4208
|
"""
|
|
4025
|
-
|
|
4209
|
+
.. raw:: html
|
|
4210
|
+
|
|
4211
|
+
<p>Create part of a trained model definition.</p>
|
|
4212
|
+
|
|
4026
4213
|
|
|
4027
4214
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-trained-model-definition-part.html>`_
|
|
4028
4215
|
|
|
@@ -4099,9 +4286,12 @@ class MlClient(NamespacedClient):
|
|
|
4099
4286
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
4100
4287
|
) -> ObjectApiResponse[t.Any]:
|
|
4101
4288
|
"""
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4289
|
+
.. raw:: html
|
|
4290
|
+
|
|
4291
|
+
<p>Create a trained model vocabulary.
|
|
4292
|
+
This API is supported only for natural language processing (NLP) models.
|
|
4293
|
+
The vocabulary is stored in the index as described in <code>inference_config.*.vocabulary</code> of the trained model definition.</p>
|
|
4294
|
+
|
|
4105
4295
|
|
|
4106
4296
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/put-trained-model-vocabulary.html>`_
|
|
4107
4297
|
|
|
@@ -4157,9 +4347,14 @@ class MlClient(NamespacedClient):
|
|
|
4157
4347
|
wait_for_completion: t.Optional[bool] = None,
|
|
4158
4348
|
) -> ObjectApiResponse[t.Any]:
|
|
4159
4349
|
"""
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4350
|
+
.. raw:: html
|
|
4351
|
+
|
|
4352
|
+
<p>Reset an anomaly detection job.
|
|
4353
|
+
All model state and results are deleted. The job is ready to start over as if
|
|
4354
|
+
it had just been created.
|
|
4355
|
+
It is not currently possible to reset multiple jobs using wildcards or a
|
|
4356
|
+
comma separated list.</p>
|
|
4357
|
+
|
|
4163
4358
|
|
|
4164
4359
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-reset-job.html>`_
|
|
4165
4360
|
|
|
@@ -4213,13 +4408,17 @@ class MlClient(NamespacedClient):
|
|
|
4213
4408
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
4214
4409
|
) -> ObjectApiResponse[t.Any]:
|
|
4215
4410
|
"""
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4411
|
+
.. raw:: html
|
|
4412
|
+
|
|
4413
|
+
<p>Revert to a snapshot.
|
|
4414
|
+
The machine learning features react quickly to anomalous input, learning new
|
|
4415
|
+
behaviors in data. Highly anomalous input increases the variance in the
|
|
4416
|
+
models whilst the system learns whether this is a new step-change in behavior
|
|
4417
|
+
or a one-off event. In the case where this anomalous input is known to be a
|
|
4418
|
+
one-off, then it might be appropriate to reset the model state to a time
|
|
4419
|
+
before this event. For example, you might consider reverting to a saved
|
|
4420
|
+
snapshot after Black Friday or a critical system failure.</p>
|
|
4421
|
+
|
|
4223
4422
|
|
|
4224
4423
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-revert-snapshot.html>`_
|
|
4225
4424
|
|
|
@@ -4279,17 +4478,22 @@ class MlClient(NamespacedClient):
|
|
|
4279
4478
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
4280
4479
|
) -> ObjectApiResponse[t.Any]:
|
|
4281
4480
|
"""
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4481
|
+
.. raw:: html
|
|
4482
|
+
|
|
4483
|
+
<p>Set upgrade_mode for ML indices.
|
|
4484
|
+
Sets a cluster wide upgrade_mode setting that prepares machine learning
|
|
4485
|
+
indices for an upgrade.
|
|
4486
|
+
When upgrading your cluster, in some circumstances you must restart your
|
|
4487
|
+
nodes and reindex your machine learning indices. In those circumstances,
|
|
4488
|
+
there must be no machine learning jobs running. You can close the machine
|
|
4489
|
+
learning jobs, do the upgrade, then open all the jobs again. Alternatively,
|
|
4490
|
+
you can use this API to temporarily halt tasks associated with the jobs and
|
|
4491
|
+
datafeeds and prevent new jobs from opening. You can also use this API
|
|
4492
|
+
during upgrades that do not require you to reindex your machine learning
|
|
4493
|
+
indices, though stopping jobs is not a requirement in that case.
|
|
4494
|
+
You can see the current value for the upgrade_mode setting by using the get
|
|
4495
|
+
machine learning info API.</p>
|
|
4496
|
+
|
|
4293
4497
|
|
|
4294
4498
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-set-upgrade-mode.html>`_
|
|
4295
4499
|
|
|
@@ -4335,16 +4539,21 @@ class MlClient(NamespacedClient):
|
|
|
4335
4539
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
4336
4540
|
) -> ObjectApiResponse[t.Any]:
|
|
4337
4541
|
"""
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4542
|
+
.. raw:: html
|
|
4543
|
+
|
|
4544
|
+
<p>Start a data frame analytics job.
|
|
4545
|
+
A data frame analytics job can be started and stopped multiple times
|
|
4546
|
+
throughout its lifecycle.
|
|
4547
|
+
If the destination index does not exist, it is created automatically the
|
|
4548
|
+
first time you start the data frame analytics job. The
|
|
4549
|
+
<code>index.number_of_shards</code> and <code>index.number_of_replicas</code> settings for the
|
|
4550
|
+
destination index are copied from the source index. If there are multiple
|
|
4551
|
+
source indices, the destination index copies the highest setting values. The
|
|
4552
|
+
mappings for the destination index are also copied from the source indices.
|
|
4553
|
+
If there are any mapping conflicts, the job fails to start.
|
|
4554
|
+
If the destination index exists, it is used as is. You can therefore set up
|
|
4555
|
+
the destination index in advance with custom settings and mappings.</p>
|
|
4556
|
+
|
|
4348
4557
|
|
|
4349
4558
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/start-dfanalytics.html>`_
|
|
4350
4559
|
|
|
@@ -4396,17 +4605,18 @@ class MlClient(NamespacedClient):
|
|
|
4396
4605
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
4397
4606
|
) -> ObjectApiResponse[t.Any]:
|
|
4398
4607
|
"""
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4608
|
+
.. raw:: html
|
|
4609
|
+
|
|
4610
|
+
<p>Start datafeeds.</p>
|
|
4611
|
+
<p>A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped
|
|
4612
|
+
multiple times throughout its lifecycle.</p>
|
|
4613
|
+
<p>Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs.</p>
|
|
4614
|
+
<p>If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped.
|
|
4615
|
+
If new data was indexed for that exact millisecond between stopping and starting, it will be ignored.</p>
|
|
4616
|
+
<p>When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or
|
|
4617
|
+
update it had at the time of creation or update and runs the query using those same roles. If you provided secondary
|
|
4618
|
+
authorization headers when you created or updated the datafeed, those credentials are used instead.</p>
|
|
4619
|
+
|
|
4410
4620
|
|
|
4411
4621
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-start-datafeed.html>`_
|
|
4412
4622
|
|
|
@@ -4475,8 +4685,11 @@ class MlClient(NamespacedClient):
|
|
|
4475
4685
|
] = None,
|
|
4476
4686
|
) -> ObjectApiResponse[t.Any]:
|
|
4477
4687
|
"""
|
|
4478
|
-
|
|
4479
|
-
|
|
4688
|
+
.. raw:: html
|
|
4689
|
+
|
|
4690
|
+
<p>Start a trained model deployment.
|
|
4691
|
+
It allocates the model to every machine learning node.</p>
|
|
4692
|
+
|
|
4480
4693
|
|
|
4481
4694
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/start-trained-model-deployment.html>`_
|
|
4482
4695
|
|
|
@@ -4559,8 +4772,12 @@ class MlClient(NamespacedClient):
|
|
|
4559
4772
|
timeout: t.Optional[t.Union[str, t.Literal[-1], t.Literal[0]]] = None,
|
|
4560
4773
|
) -> ObjectApiResponse[t.Any]:
|
|
4561
4774
|
"""
|
|
4562
|
-
|
|
4563
|
-
|
|
4775
|
+
.. raw:: html
|
|
4776
|
+
|
|
4777
|
+
<p>Stop data frame analytics jobs.
|
|
4778
|
+
A data frame analytics job can be started and stopped multiple times
|
|
4779
|
+
throughout its lifecycle.</p>
|
|
4780
|
+
|
|
4564
4781
|
|
|
4565
4782
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/stop-dfanalytics.html>`_
|
|
4566
4783
|
|
|
@@ -4625,8 +4842,12 @@ class MlClient(NamespacedClient):
|
|
|
4625
4842
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
4626
4843
|
) -> ObjectApiResponse[t.Any]:
|
|
4627
4844
|
"""
|
|
4628
|
-
|
|
4629
|
-
|
|
4845
|
+
.. raw:: html
|
|
4846
|
+
|
|
4847
|
+
<p>Stop datafeeds.
|
|
4848
|
+
A datafeed that is stopped ceases to retrieve data from Elasticsearch. A datafeed can be started and stopped
|
|
4849
|
+
multiple times throughout its lifecycle.</p>
|
|
4850
|
+
|
|
4630
4851
|
|
|
4631
4852
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-stop-datafeed.html>`_
|
|
4632
4853
|
|
|
@@ -4688,7 +4909,10 @@ class MlClient(NamespacedClient):
|
|
|
4688
4909
|
pretty: t.Optional[bool] = None,
|
|
4689
4910
|
) -> ObjectApiResponse[t.Any]:
|
|
4690
4911
|
"""
|
|
4691
|
-
|
|
4912
|
+
.. raw:: html
|
|
4913
|
+
|
|
4914
|
+
<p>Stop a trained model deployment.</p>
|
|
4915
|
+
|
|
4692
4916
|
|
|
4693
4917
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/stop-trained-model-deployment.html>`_
|
|
4694
4918
|
|
|
@@ -4753,7 +4977,10 @@ class MlClient(NamespacedClient):
|
|
|
4753
4977
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
4754
4978
|
) -> ObjectApiResponse[t.Any]:
|
|
4755
4979
|
"""
|
|
4756
|
-
|
|
4980
|
+
.. raw:: html
|
|
4981
|
+
|
|
4982
|
+
<p>Update a data frame analytics job.</p>
|
|
4983
|
+
|
|
4757
4984
|
|
|
4758
4985
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-dfanalytics.html>`_
|
|
4759
4986
|
|
|
@@ -4861,11 +5088,14 @@ class MlClient(NamespacedClient):
|
|
|
4861
5088
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
4862
5089
|
) -> ObjectApiResponse[t.Any]:
|
|
4863
5090
|
"""
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
|
|
4867
|
-
|
|
4868
|
-
|
|
5091
|
+
.. raw:: html
|
|
5092
|
+
|
|
5093
|
+
<p>Update a datafeed.
|
|
5094
|
+
You must stop and start the datafeed for the changes to be applied.
|
|
5095
|
+
When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at
|
|
5096
|
+
the time of the update and runs the query using those same roles. If you provide secondary authorization headers,
|
|
5097
|
+
those credentials are used instead.</p>
|
|
5098
|
+
|
|
4869
5099
|
|
|
4870
5100
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-update-datafeed.html>`_
|
|
4871
5101
|
|
|
@@ -5028,8 +5258,11 @@ class MlClient(NamespacedClient):
|
|
|
5028
5258
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
5029
5259
|
) -> ObjectApiResponse[t.Any]:
|
|
5030
5260
|
"""
|
|
5031
|
-
|
|
5032
|
-
|
|
5261
|
+
.. raw:: html
|
|
5262
|
+
|
|
5263
|
+
<p>Update a filter.
|
|
5264
|
+
Updates the description of a filter, adds items, or removes items from the list.</p>
|
|
5265
|
+
|
|
5033
5266
|
|
|
5034
5267
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-update-filter.html>`_
|
|
5035
5268
|
|
|
@@ -5119,8 +5352,11 @@ class MlClient(NamespacedClient):
|
|
|
5119
5352
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
5120
5353
|
) -> ObjectApiResponse[t.Any]:
|
|
5121
5354
|
"""
|
|
5122
|
-
|
|
5123
|
-
|
|
5355
|
+
.. raw:: html
|
|
5356
|
+
|
|
5357
|
+
<p>Update an anomaly detection job.
|
|
5358
|
+
Updates certain properties of an anomaly detection job.</p>
|
|
5359
|
+
|
|
5124
5360
|
|
|
5125
5361
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-update-job.html>`_
|
|
5126
5362
|
|
|
@@ -5248,7 +5484,11 @@ class MlClient(NamespacedClient):
|
|
|
5248
5484
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
5249
5485
|
) -> ObjectApiResponse[t.Any]:
|
|
5250
5486
|
"""
|
|
5251
|
-
|
|
5487
|
+
.. raw:: html
|
|
5488
|
+
|
|
5489
|
+
<p>Update a snapshot.
|
|
5490
|
+
Updates certain properties of a snapshot.</p>
|
|
5491
|
+
|
|
5252
5492
|
|
|
5253
5493
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-update-snapshot.html>`_
|
|
5254
5494
|
|
|
@@ -5309,7 +5549,10 @@ class MlClient(NamespacedClient):
|
|
|
5309
5549
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
5310
5550
|
) -> ObjectApiResponse[t.Any]:
|
|
5311
5551
|
"""
|
|
5312
|
-
|
|
5552
|
+
.. raw:: html
|
|
5553
|
+
|
|
5554
|
+
<p>Update a trained model deployment.</p>
|
|
5555
|
+
|
|
5313
5556
|
|
|
5314
5557
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/update-trained-model-deployment.html>`_
|
|
5315
5558
|
|
|
@@ -5368,14 +5611,19 @@ class MlClient(NamespacedClient):
|
|
|
5368
5611
|
wait_for_completion: t.Optional[bool] = None,
|
|
5369
5612
|
) -> ObjectApiResponse[t.Any]:
|
|
5370
5613
|
"""
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5614
|
+
.. raw:: html
|
|
5615
|
+
|
|
5616
|
+
<p>Upgrade a snapshot.
|
|
5617
|
+
Upgrades an anomaly detection model snapshot to the latest major version.
|
|
5618
|
+
Over time, older snapshot formats are deprecated and removed. Anomaly
|
|
5619
|
+
detection jobs support only snapshots that are from the current or previous
|
|
5620
|
+
major version.
|
|
5621
|
+
This API provides a means to upgrade a snapshot to the current major version.
|
|
5622
|
+
This aids in preparing the cluster for an upgrade to the next major version.
|
|
5623
|
+
Only one snapshot per anomaly detection job can be upgraded at a time and the
|
|
5624
|
+
upgraded snapshot cannot be the current snapshot of the anomaly detection
|
|
5625
|
+
job.</p>
|
|
5626
|
+
|
|
5379
5627
|
|
|
5380
5628
|
`<https://www.elastic.co/guide/en/elasticsearch/reference/8.17/ml-upgrade-job-model-snapshot.html>`_
|
|
5381
5629
|
|
|
@@ -5451,7 +5699,10 @@ class MlClient(NamespacedClient):
|
|
|
5451
5699
|
body: t.Optional[t.Dict[str, t.Any]] = None,
|
|
5452
5700
|
) -> ObjectApiResponse[t.Any]:
|
|
5453
5701
|
"""
|
|
5454
|
-
|
|
5702
|
+
.. raw:: html
|
|
5703
|
+
|
|
5704
|
+
<p>Validate an anomaly detection job.</p>
|
|
5705
|
+
|
|
5455
5706
|
|
|
5456
5707
|
`<https://www.elastic.co/guide/en/machine-learning/8.17/ml-jobs.html>`_
|
|
5457
5708
|
|
|
@@ -5521,7 +5772,10 @@ class MlClient(NamespacedClient):
|
|
|
5521
5772
|
pretty: t.Optional[bool] = None,
|
|
5522
5773
|
) -> ObjectApiResponse[t.Any]:
|
|
5523
5774
|
"""
|
|
5524
|
-
|
|
5775
|
+
.. raw:: html
|
|
5776
|
+
|
|
5777
|
+
<p>Validate an anomaly detection job.</p>
|
|
5778
|
+
|
|
5525
5779
|
|
|
5526
5780
|
`<https://www.elastic.co/guide/en/machine-learning/8.17/ml-jobs.html>`_
|
|
5527
5781
|
|