##Required authorization
- Cluster privileges:
monitor_ml
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
descquery parameter. -
Path to field or array of paths. Some API's support wildcards in the path to select multiple fields.
GET
/_ml/anomaly_detectors/{job_id}/model_snapshots
Console
GET _ml/anomaly_detectors/high_sum_total_sales/model_snapshots
{
"start": "1575402236000"
}
curl \
--request GET 'http://api.example.com/_ml/anomaly_detectors/{job_id}/model_snapshots' \
--header "Content-Type: application/json" \
--data '"{\n \"start\": \"1575402236000\"\n}"'
Request example
An example body for a `GET _ml/anomaly_detectors/high_sum_total_sales/model_snapshots` request.
{
"start": "1575402236000"
}