Update a snapshot Added in 5.4.0
Updates certain properties of a snapshot.
Path parameters
-
Identifier for the anomaly detection job.
-
Identifier for the model snapshot.
Body Required
-
description string
A description of the model snapshot.
-
retain boolean
If
true
, this snapshot will not be deleted during automatic cleanup of snapshots older thanmodel_snapshot_retention_days
. However, this snapshot will be deleted when the job is deleted.
POST
/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update
curl \
-X POST http://api.example.com/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}/_update \
-H "Content-Type: application/json" \
-d '{"description":"string","retain":true}'
Request examples
{
"description": "string",
"retain": true
}
Response examples (200)
{
"acknowledged": true,
"model": {
"description": "string",
"job_id": "string",
"latest_record_time_stamp": 42.0,
"latest_result_time_stamp": 42.0,
"min_version": "string",
"model_size_stats": {
"bucket_allocation_failures_count": 42.0,
"job_id": "string",
"": 42.0,
"memory_status": "ok",
"assignment_memory_basis": "string",
"result_type": "string",
"total_by_field_count": 42.0,
"total_over_field_count": 42.0,
"total_partition_field_count": 42.0,
"categorization_status": "ok",
"categorized_doc_count": 42.0,
"dead_category_count": 42.0,
"failed_category_count": 42.0,
"frequent_category_count": 42.0,
"rare_category_count": 42.0,
"total_category_count": 42.0,
"timestamp": 42.0
},
"retain": true,
"snapshot_doc_count": 42.0,
"snapshot_id": "string",
"timestamp": 42.0
}
}