Force buffered data to be processed
- POST /_ml/anomaly_detectors/{job_id}/_flush
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.
- Cluster privileges:
manage_ml
Path Parameters
-
job_idstring Idrequired -
Identifier for the anomaly detection job.
Query Parameters
-
advance_timeDateTime Specifies to advance to a particular time value. Results are generated and the model is updated for data from the specified time interval.
-
calc_interimboolean If true, calculates the interim results for the most recent bucket or all buckets within the latency period.
-
endDateTime When used in conjunction with
calc_interimandstart, specifies the range of buckets on which to calculate interim results.-
skip_timeDateTime 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.
-
startDateTime When used in conjunction with
calc_interim, specifies the range of buckets on which to calculate interim results.
Request
-
advance_timeDateTime -
Refer to the description for the
advance_timequery parameter. -
calc_interimboolean -
Refer to the description for the
calc_interimquery parameter. -
endDateTime -
Refer to the description for the
endquery parameter. -
skip_timeDateTime -
Refer to the description for the
skip_timequery parameter. -
startDateTime -
Refer to the description for the
startquery parameter.
Response
-
flushedbooleanrequired -
last_finalized_bucket_endnumber -
Provides the timestamp (in milliseconds since the epoch) of the end of the last bucket that was processed.