Skip to content

Commit 8afc197

Browse files
Correct type for policy stats (#4471) (#4484)
* correct type for policy stats * pretty (cherry picked from commit b5e2345) Co-authored-by: Laura Trotta <[email protected]>
1 parent 1b91690 commit 8afc197

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

specification/slm/_types/SnapshotLifecycle.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,11 @@ export class Invocation {
149149
snapshot_name: Name
150150
time: DateTime
151151
}
152+
153+
export class SnapshotPolicyStats {
154+
policy: string
155+
snapshots_taken: long
156+
snapshots_failed: long
157+
snapshots_deleted: long
158+
snapshot_deletion_failures: long
159+
}

specification/slm/get_stats/GetSnapshotLifecycleStatsResponse.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { long } from '@_types/Numeric'
2121
import { Duration, DurationValue, UnitMillis } from '@_types/Time'
22+
import { SnapshotPolicyStats } from '@slm/_types/SnapshotLifecycle'
2223

2324
export class Response {
2425
body: {
@@ -31,6 +32,6 @@ export class Response {
3132
total_snapshot_deletion_failures: long
3233
total_snapshots_failed: long
3334
total_snapshots_taken: long
34-
policy_stats: string[]
35+
policy_stats: SnapshotPolicyStats[]
3536
}
3637
}

0 commit comments

Comments
 (0)