Metrics
Timeout
Set a timeout at create time or update it while the sandbox is running. The SDK and CLI examples in this section are equivalent alternatives for the same lifecycle settings; use the one that matches the rest of your workflow.on_timeoutis create-time lifecycle policy. Use"destroy"or"pause".timeout_actionis used byset_timeout(). Use"destroy"or"hibernate".
on_timeout="pause" at create time when persistence-capable deployments should
hibernate the sandbox instead.
auto_resume=True is valid only with pause/hibernate timeout behavior. Updating
an auto-resumable sandbox to destroy-on-timeout is rejected so paused alias
routing cannot become inconsistent.
CLI equivalents: