Search + K

Command Palette

Search for a command to run...

Sign In

Force buffered data to be processed

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

The flush jobs API is only applicable when sending data for analysis using the post data API. Depending on the content of the buffer, then it might additionally calculate new results. Both flush and close operations are similar, however the flush is more efficient if you are expecting to send more data for analysis. When flushing, the job remains open and is available to continue analyzing data. A close operation additionally prunes and persists the model state to disk and the job must be opened again before analyzing further data.

Required authorization

  • Cluster privileges: manage_ml

Parameters

path Path Parameters

Name Type
job_id required

Identifier for the anomaly detection job.

type TypesId = string

query Query Parameters

Name Type
advance_time

Specifies to advance to a particular time value. Results are generated and the model is updated for data from the specified time interval.

type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string
calc_interim

If true, calculates the interim results for the most recent bucket or all buckets within the latency period.

boolean
end

When used in conjunction with calc_interim and start, specifies the range of buckets on which to calculate interim results.

type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string
skip_time

Specifies to skip to a particular time value. Results are not generated and the model is not updated for data from the specified time interval.

type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string
start

When used in conjunction with calc_interim, specifies the range of buckets on which to calculate interim results.

type TypesDateTime = type TypesEpochTimeUnitMillis = TypesUnitMillis | string

Request Body

application/json
{
advance_time?: TypesDateTime

A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.

type TypesDateTime = TypesEpochTimeUnitMillis | string
;
calc_interim?: boolean;
end?: TypesDateTime

A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.

type TypesDateTime = TypesEpochTimeUnitMillis | string
;
skip_time?: TypesDateTime

A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.

type TypesDateTime = TypesEpochTimeUnitMillis | string
;
start?: TypesDateTime

A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.

type TypesDateTime = TypesEpochTimeUnitMillis | string
;
}

Responses

200 application/json
{ flushed: boolean;last_finalized_bucket_end?: number; }