Path parameters
- job_id
string Required Identifier for the anomaly detection job.
- snapshot_id
string Required You can specify
empty
as the . Reverting to the empty snapshot means the anomaly detection job starts learning a new model from scratch when it is started.
Query parameters
- delete_intervening_results
boolean If true, deletes the results in the time period between the latest results and the time of the reverted snapshot. It also resets the model to accept records for this time period. If you choose not to delete intervening results when reverting a snapshot, the job will not accept input data that is older than the current time. If you want to resend data, then delete the intervening results.
Body
- delete_intervening_results
boolean Refer to the description for the
delete_intervening_results
query parameter.
POST /_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert
curl \
--request POST 'http://api.example.com/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_revert' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"delete_intervening_results":true}'