Skip to content

Commit 8a91a03

Browse files
authored
fix(sandboxes): sync runtime billing API contract (#392)
* fix(sandboxes): sync runtime billing API contract * fix(sandboxes): declare deployment project token authentication
1 parent eb9128f commit 8a91a03

56 files changed

Lines changed: 6072 additions & 147 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/sandboxes.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,17 @@ its sessions and requires the `sandboxes.terminate` permission. History page
153153
limits range from 1 to 100. Archives are limited to 32 MiB compressed and expanded.
154154

155155
Custom deployments accept at most 16 unique ports, from 1 through 65532.
156+
157+
## Runtime billing
158+
159+
Confirmed cloud running time is measured using baseline memory times observed
160+
running duration and consumes the account's Sandbox allowance. Paid overage is
161+
purchased in 5 GBh blocks at 25 credits per block; unused purchased capacity
162+
carries forward. Usage is not rounded up to a whole hour per session.
163+
Suspended and uncertain time are uncharged, snapshot costs are included, and
164+
burst resources are not billed separately. Local sessions consume no cloud
165+
allowance or credits.
166+
167+
Plan and allowance refusals use `sandbox_plan_limit_exceeded` and
168+
`sandbox_allowance_exhausted`. Retrying these errors with a fresh request ID
169+
does not bypass the plan or account limit.

0 commit comments

Comments
 (0)