Skip to content

Commit 778c94b

Browse files
feat(prebuild): expose snapshot completion percentage in prebuild status
1 parent 24cb9a2 commit 778c94b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 160
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-643adebfc36ae5f3c31dc2305867f8259c9ec13420989ec37b78cdf87283a279.yml
3-
openapi_spec_hash: 5d04ebe79f446da15639adddf9bffc9b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3c080e16ecc8c0377535643430e1abc1425a0b8f474fd6f211cac5e617b7ba28.yml
3+
openapi_spec_hash: 154065951ac8ea5188227ec10c2c10c8
44
config_hash: 8e1b089e9f5af438fd56b523014af4f2

src/resources/prebuilds.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,14 @@ export interface PrebuildStatus {
353353
*/
354354
logUrl?: string;
355355

356+
/**
357+
* snapshot_completion_percentage is the progress of snapshot creation (0-100).
358+
* Only populated when phase is SNAPSHOTTING and progress is available from the
359+
* cloud provider. This value may update infrequently or remain at 0 depending on
360+
* the provider.
361+
*/
362+
snapshotCompletionPercentage?: number;
363+
356364
/**
357365
* status_version is incremented each time the status is updated. Used for
358366
* optimistic concurrency control.

0 commit comments

Comments
 (0)