Get model snapshots info
Generally available; Added in 5.4.0
Path parameters
-
Identifier for the anomaly detection job.
-
A numerical character string that uniquely identifies the model snapshot. You can get information for multiple snapshots by using a comma-separated list or a wildcard expression. You can get all snapshots by using
_all
, by specifying*
as the snapshot ID, or by omitting the snapshot ID.
Query parameters
-
If true, the results are sorted in descending order.
-
Returns snapshots with timestamps earlier than this time.
-
Skips the specified number of snapshots.
-
Specifies the maximum number of snapshots to obtain.
-
Specifies the sort field for the requested snapshots. By default, the snapshots are sorted by their timestamp.
-
Returns snapshots with timestamps after this time.
Body
-
Refer to the description for the
desc
query parameter. -
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
curl \
--request GET 'http://api.example.com/_ml/anomaly_detectors/{job_id}/model_snapshots/{snapshot_id}' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '"{\n \"start\": \"1575402236000\"\n}"'
{
"start": "1575402236000"
}