Environments¶
What The Environments Page Shows¶
The environments page is the runtime inventory and cleanup view for managed resources.
It shows:
- tracked environments
- containers
- networks
- volumes
- CPU and memory usage
- zombie detection
- cleanup actions
Frontend Route And API¶
The frontend route is:
/environments
The backing API currently still uses the sandboxes path:
GET /api/v1/sandboxesGET /api/v1/sandboxes/eventsPOST /api/v1/sandboxes/reap-allPOST /api/v1/sandboxes/{sandboxId}/reap
Inventory Model¶
An environment snapshot contains:
dockerAvailableupdatedAtsummarysandboxeswarnings
Each tracked environment can include:
sandboxIdrunIdsuiteownerprofilestatussummarystartedAtlastHeartbeatAtorchestratorPidorchestratorStateisZombiecanReapresourceUsagecontainersnetworksvolumeswarnings
Live Updates¶
The page can subscribe to a server-sent event stream from:
/api/v1/sandboxes/events
That stream replays the latest snapshot and then publishes changes over time.
Cleanup¶
Cleanup supports:
- one environment at a time
- all tracked environments at once
The cleanup result reports how many containers, networks, and volumes were removed.