Test run of new docs
This commit is contained in:
64
docs/reference-ml-preview_datafeed.asciidoc
Normal file
64
docs/reference-ml-preview_datafeed.asciidoc
Normal file
@ -0,0 +1,64 @@
|
||||
[[reference-ml-preview_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.previewDatafeed
|
||||
|
||||
Preview a datafeed. This API returns the first "page" of search results from a datafeed. You can preview an existing datafeed or provide configuration details for a datafeed and anomaly detection job in the API. The preview shows the structure of the data that will be passed to the anomaly detection engine. IMPORTANT: When Elasticsearch security features are enabled, the preview uses the credentials of the user that called the API. However, when the datafeed starts it uses the roles of the last user that created or updated the datafeed. To get a preview that accurately reflects the behavior of the datafeed, use the appropriate credentials. You can also use secondary authorization headers to supply the credentials.
|
||||
|
||||
{ref}/ml-preview-datafeed.html[{es} documentation]
|
||||
|
||||
[discrete]
|
||||
==== Function signature
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
(MlPreviewDatafeedRequest, options?): Promise<MlPreviewDatafeedResponse>
|
||||
----
|
||||
|
||||
[discrete]
|
||||
===== `MlPreviewDatafeedRequest`
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
interface MlPreviewDatafeedRequest extends <<shared-type-request-base, RequestBase>> {
|
||||
datafeed_id?: <<shared-type-id, Id>>
|
||||
start?: <<shared-type-date-time, DateTime>>
|
||||
end?: <<shared-type-date-time, DateTime>>
|
||||
datafeed_config?: MlDatafeedConfig
|
||||
job_config?: MlJobConfig
|
||||
}
|
||||
----
|
||||
|
||||
[discrete]
|
||||
===== `MlPreviewDatafeedResponse`
|
||||
|
||||
[source,ts]
|
||||
----
|
||||
type MlPreviewDatafeedResponse<TDocument = unknown> = TDocument[]
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user