sail.App is the application that owns your sailboxes. Every
Sailbox.create call needs an App, usually
resolved by name with App.find().
App.find
| Parameter | Default | Description |
|---|---|---|
name | required | The app name to look up. |
mint_if_missing | False | Create the app if no app with that name exists. |
App.
Raises LookupError if the app is not found and mint_if_missing is
False, PermissionError on auth failures, RuntimeError on other errors.
App.list
AppOverview rollup row per app the current org
owns. The response is not paginated (the per-org app count is small). Apps with
no recent observed-usage sample report zero usage rather than failing the call.
Attributes
| Attribute | Type | Description |
|---|---|---|
id | str | Stable app identifier. |
name | str | App name. |
created_at | int | Creation timestamp. |
AppOverview
A per-app rollup of sailbox lifecycle counts and resource usage, returned byApp.list. Lifecycle counts and configured resource-control maxima
come from the control plane; observed usage is the latest live sample within
roughly the last two minutes, falling back to zero when no recent sample is
available.
| Field | Type | Description |
|---|---|---|
app_id / app_name | str | App identity. |
sailbox_count | int | Total sailboxes for the app. |
running_count | int | Sailboxes currently running. |
paused_count | int | Sailboxes paused. |
sleeping_count | int | Sailboxes sleeping. |
failed_count | int | Sailboxes in a failed state. |
cpu_requested_vcpu | int | Total configured vCPU maximum. |
cpu_used_vcpu | float | Latest observed vCPU usage. |
memory_requested_bytes / memory_used_bytes | int | Configured max vs observed memory. |
disk_requested_bytes / disk_used_bytes | int | Configured max vs observed disk. |