From c767981f19e9c4e7bb53cc5ca7ba4e7079564086 Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Fri, 6 Jun 2025 12:08:22 +0200 Subject: [PATCH] Correct type for policy stats (#4471) * correct type for policy stats * pretty (cherry picked from commit b5e234535d9e1df5b4d2041e394f825dab139fc4) --- specification/slm/_types/SnapshotLifecycle.ts | 8 ++++++++ .../slm/get_stats/GetSnapshotLifecycleStatsResponse.ts | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/specification/slm/_types/SnapshotLifecycle.ts b/specification/slm/_types/SnapshotLifecycle.ts index acbcee8f25..a4e144b715 100644 --- a/specification/slm/_types/SnapshotLifecycle.ts +++ b/specification/slm/_types/SnapshotLifecycle.ts @@ -149,3 +149,11 @@ export class Invocation { snapshot_name: Name time: DateTime } + +export class SnapshotPolicyStats { + policy: string + snapshots_taken: long + snapshots_failed: long + snapshots_deleted: long + snapshot_deletion_failures: long +} diff --git a/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts b/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts index d42fa3fe65..167c788e19 100644 --- a/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts +++ b/specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts @@ -19,6 +19,7 @@ import { long } from '@_types/Numeric' import { Duration, DurationValue, UnitMillis } from '@_types/Time' +import { SnapshotPolicyStats } from '@slm/_types/SnapshotLifecycle' export class Response { body: { @@ -31,6 +32,6 @@ export class Response { total_snapshot_deletion_failures: long total_snapshots_failed: long total_snapshots_taken: long - policy_stats: string[] + policy_stats: SnapshotPolicyStats[] } }