Search + K

Command Palette

Search for a command to run...

Sign In

Send data to an anomaly detection job for analysis

Deprecated
POST /_ml/anomaly_detectors/{job_id}/_data
Copy endpoint

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.

Required authorization

  • Cluster privileges: manage_ml

Parameters

path Path Parameters

Name Type
job_id required

Identifier for the anomaly detection job. The job must have a state of open to receive and process the data.

type TypesId = string

query Query Parameters

Name Type
reset_end

Specifies the end of the bucket resetting range.

type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string
reset_start

Specifies the start of the bucket resetting range.

type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string

Request Body

application/json required
{}[]

Responses

200 application/json
{
job_id: TypesId
type TypesId = string
;
processed_record_count: number;
processed_field_count: number;
input_bytes: number;
input_field_count: number;
invalid_date_count: number;
missing_field_count: number;
out_of_order_timestamp_count: number;
empty_bucket_count: number;
sparse_bucket_count: number;
bucket_count: number;
earliest_record_timestamp?: TypesEpochTimeUnitMillis
type TypesEpochTimeUnitMillis = TypesUnitMillis
;
latest_record_timestamp?: TypesEpochTimeUnitMillis
type TypesEpochTimeUnitMillis = TypesUnitMillis
;
last_data_time?: TypesEpochTimeUnitMillis
type TypesEpochTimeUnitMillis = TypesUnitMillis
;
latest_empty_bucket_timestamp?: TypesEpochTimeUnitMillis
type TypesEpochTimeUnitMillis = TypesUnitMillis
;
latest_sparse_bucket_timestamp?: TypesEpochTimeUnitMillis
type TypesEpochTimeUnitMillis = TypesUnitMillis
;
input_record_count: number;
log_time?: TypesEpochTimeUnitMillis
type TypesEpochTimeUnitMillis = TypesUnitMillis
;
}