获取快照生命周期统计 API
编辑获取快照生命周期统计 API
编辑返回关于快照生命周期管理所采取操作的全局和策略级别统计信息。
请求
编辑GET /_slm/stats
示例
编辑resp = client.slm.get_stats() print(resp)
response = client.slm.get_stats puts response
const response = await client.slm.getStats(); console.log(response);
GET /_slm/stats
该 API 返回以下响应
{ "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 }