Skip to content

Commit 3c0ca3c

Browse files
feat(api): add desired_size field to WarmPoolStatus
1 parent 28f6118 commit 3c0ca3c

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-3f158bc08381a9336e28ef19d3bc89fba44faae548fd29c8e53849d3573c2d4c.yml
3-
openapi_spec_hash: 054f7fecad0cd62c97b22c93dc79a369
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gitpod%2Fgitpod-8f6dea0eef78b44b26c72efce3f2a9443d1b431e4a11b4c540c3967ddf0e063e.yml
3+
openapi_spec_hash: 7b0e355f20c891b32efe36e691704b75
44
config_hash: de54bcc58fea1260a6792f8fd013439b

src/gitpod/types/warm_pool_status.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ class WarmPoolStatus(BaseModel):
1818
phase: WarmPoolPhase
1919
"""phase is the current phase of the warm pool lifecycle"""
2020

21+
desired_size: Optional[int] = FieldInfo(alias="desiredSize", default=None)
22+
"""
23+
desired_size is the current target number of instances the autoscaler has
24+
decided on. Unlike running_instances, this value is stable and does not
25+
fluctuate as instances are claimed and backfilled.
26+
"""
27+
2128
failure_message: Optional[str] = FieldInfo(alias="failureMessage", default=None)
2229
"""failure_message contains details about why the warm pool is degraded or failed"""
2330

0 commit comments

Comments
 (0)