Query parameters
-
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
External documentation -
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
External documentation
GET /_slm/stats
Console
GET /_slm/stats resp = client.slm.get_stats() const response = await client.slm.getStats(); response = client.slm.get_stats $resp = $client->slm()->getStats(); curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_slm/stats" client.slm().getStats(g -> g); Response examples (200)
A successful response from `GET /_slm/stats`.
{ "retention_runs": 13, "retention_failed": 0, "retention_timed_out": 0, "retention_deletion_time": "1.4s", "retention_deletion_time_millis": 1404, "policy_stats": [ ], "total_snapshots_taken": 1, "total_snapshots_failed": 1, "total_snapshots_deleted": 0, "total_snapshot_deletion_failures": 0 }