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

78 lines
4.7 KiB
Plaintext

[[reference-ml-start_datafeed]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| 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.startDatafeed]]
=== client.ml.startDatafeed
Start datafeeds. A datafeed must be started in order to retrieve data from Elasticsearch. A datafeed can be started and stopped multiple times throughout its lifecycle. Before you can start a datafeed, the anomaly detection job must be open. Otherwise, an error occurs. If you restart a stopped datafeed, it continues processing input data from the next millisecond after it was stopped. If new data was indexed for that exact millisecond between stopping and starting, it will be ignored. When Elasticsearch security features are enabled, your datafeed remembers which roles the last user to create or update it had at the time of creation or update and runs the query using those same roles. If you provided secondary authorization headers when you created or updated the datafeed, those credentials are used instead.
{ref}/ml-start-datafeed.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(MlStartDatafeedRequest, options?): Promise<MlStartDatafeedResponse>
----
[discrete]
==== MlStartDatafeedRequest
[pass]
++++
<pre>
++++
interface MlStartDatafeedRequest extends <<RequestBase>> {
datafeed_id: <<Id>>
end?: <<DateTime>>
start?: <<DateTime>>
timeout?: <<Duration>>
}
[pass]
++++
</pre>
++++
[discrete]
==== MlStartDatafeedResponse
[pass]
++++
<pre>
++++
interface MlStartDatafeedResponse {
node: <<NodeIds>>
started: boolean
}
[pass]
++++
</pre>
++++