[[reference-slm-get_stats]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.slm.getStats Returns global and policy-level statistics about actions taken by snapshot lifecycle management. {ref}/slm-api-get-stats.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (SlmGetStatsRequest, options?): Promise ---- [discrete] ===== `SlmGetStatsRequest` [source,ts] ---- interface SlmGetStatsRequest extends <> { } ---- [discrete] ===== `SlmGetStatsResponse` [source,ts] ---- interface SlmGetStatsResponse { retention_deletion_time: <> retention_deletion_time_millis: <><<>> retention_failed: <> retention_runs: <> retention_timed_out: <> total_snapshots_deleted: <> total_snapshot_deletion_failures: <> total_snapshots_failed: <> total_snapshots_taken: <> policy_stats: string[] } ----