Files
elasticsearch-js/docs/reference-ml-get_influencers.asciidoc
2024-12-05 14:46:52 -06:00

84 lines
4.2 KiB
Plaintext

[[reference-ml-get_influencers]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| 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> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
[[client.ml.getInfluencers]]
=== client.ml.getInfluencers
Get anomaly detection job results for influencers. Influencers are the entities that have contributed to, or are to blame for, the anomalies. Influencer results are available only if an `influencer_field_name` is specified in the job configuration.
{ref}/ml-get-influencer.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(MlGetInfluencersRequest, options?): Promise<MlGetInfluencersResponse>
----
[discrete]
==== Request
[pass]
++++
<pre>
++++
interface MlGetInfluencersRequest extends <<RequestBase>> {
job_id: <<Id>>
desc?: boolean
end?: <<DateTime>>
exclude_interim?: boolean
influencer_score?: <<double>>
from?: <<integer>>
size?: <<integer>>
sort?: <<Field>>
start?: <<DateTime>>
page?: <<MlPage>>
}
[pass]
++++
</pre>
++++
[discrete]
==== Response
[pass]
++++
<pre>
++++
interface MlGetInfluencersResponse {
count: <<long>>
influencers: <<MlInfluencer>>[]
}
[pass]
++++
</pre>
++++