Files
elasticsearch-js/docs/reference/cat-ml_jobs.asciidoc
2024-12-05 14:47:29 -06:00

74 lines
4.4 KiB
Plaintext

[[reference-cat-ml_jobs]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
++++
<style>
.lang-ts a.xref {
text-decoration: underline !important;
}
</style>
++++
[[client.cat.mlJobs]]
== client.cat.mlJobs
Get anomaly detection jobs. Returns configuration and usage information for anomaly detection jobs. This API returns a maximum of 10,000 jobs. If the Elasticsearch security features are enabled, you must have `monitor_ml`, `monitor`, `manage_ml`, or `manage` cluster privileges to use this API. CAT APIs are only intended for human consumption using the Kibana console or command line. They are not intended for use by applications. For application consumption, use the get anomaly detection job statistics API.
{ref}/cat-anomaly-detectors.html[{es} documentation]
[discrete]
== Function signature
[source,ts]
----
(CatMlJobsRequest, options?): Promise<CatMlJobsResponse>
----
[discrete]
=== Request
[source,ts,subs=+macros]
----
interface CatMlJobsRequest extends <<CatCatRequestBase>> {
job_id?: <<Id>>
allow_no_match?: boolean
bytes?: <<Bytes>>
h?: <<CatCatAnonalyDetectorColumns>>
s?: <<CatCatAnonalyDetectorColumns>>
time?: <<TimeUnit>>
}
----
[discrete]
=== Response
[source,ts,subs=+macros]
----
type CatMlJobsResponse = CatMlJobsJobsRecord[]
----