[[reference-ml-put_data_frame_analytics]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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 || || || || || || || =========================================================================================================================== //////// [discrete] [[client.ml.putDataFrameAnalytics]] === client.ml.putDataFrameAnalytics Create a data frame analytics job. This API creates a data frame analytics job that performs an analysis on the source indices and stores the outcome in a destination index. {ref}/put-dfanalytics.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlPutDataFrameAnalyticsRequest, options?): Promise ---- [discrete] ==== Request [pass] ++++
++++
interface MlPutDataFrameAnalyticsRequest extends <> {
  id: <>
  allow_lazy_start?: boolean
  analysis: <>
  analyzed_fields?: <> | string[]
  description?: string
  dest: <>
  max_num_threads?: <>
  model_memory_limit?: string
  source: <>
  headers?: <>
  version?: <>
}

[pass]
++++
++++ [discrete] ==== Response [pass] ++++
++++
interface MlPutDataFrameAnalyticsResponse {
  authorization?: <>
  allow_lazy_start: boolean
  analysis: <>
  analyzed_fields?: <> | string[]
  create_time: <><<>>
  description?: string
  dest: <>
  id: <>
  max_num_threads: <>
  model_memory_limit: string
  source: <>
  version: <>
}

[pass]
++++
++++