[[reference-ml-post_data]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || 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.postData Send data to an anomaly detection job for analysis. IMPORTANT: For each job, data can be accepted from only a single connection at a time. It is not currently possible to post data to multiple jobs using wildcards or a comma-separated list. {ref}/ml-post-data.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlPostDataRequest, options?): Promise ---- [discrete] ===== `MlPostDataRequest` [source,ts] ---- interface MlPostDataRequest extends <> { job_id: <> reset_end?: <> reset_start?: <> data?: TData[] } ---- [discrete] ===== `MlPostDataResponse` [source,ts] ---- interface MlPostDataResponse { bucket_count: <> earliest_record_timestamp: <> empty_bucket_count: <> input_bytes: <> input_field_count: <> input_record_count: <> invalid_date_count: <> job_id: <> last_data_time: <> latest_record_timestamp: <> missing_field_count: <> out_of_order_timestamp_count: <> processed_field_count: <> processed_record_count: <> sparse_bucket_count: <> } ----