Summarize the organization's Sandboxes: counts by state and provider, recent creations, running time, recoveries and how many need attention.
const url = 'https://app.everruns.com/api/v1/sandboxes/stats';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.everruns.com/api/v1/sandboxes/statsParameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Comma-separated states: running, paused, lost, starting,
failed, not_started, deleted, or live for the first five.
Comma-separated provider ids, such as daytona,modal.
Only Sandboxes of Sessions that ran this Agent.
Only Sandboxes created from this Sandbox Template.
Only Sandboxes with at least one attention reason.
Case-insensitive match on Session title, Agent, provider or provider resource id.
Include in-process targets (virtual filesystem, host), which have no provider resource.
Responses
Section titled “ Responses ”Success
Roll-ups for the fleet summary.
object
Sandboxes per state.
A count keyed by a label.
object
Created in the window before, for a trend.
Live Sandboxes per provider.
A count keyed by a label.
object
Sandboxes with at least one attention reason.
Provider resources lost and rebuilt in the window.
Total time Sandboxes spent running in the window.
Days covered by the *_in_window figures.
Example
{ "by_state": [ { "count": 5, "key": "running" } ], "live_by_provider": [ { "count": 5, "key": "running" } ], "window_days": 7}