Skip to content

Get Sandbox Container Events in the SDK#1558

Draft
cooper-grc wants to merge 1 commit intomainfrom
cg/sandbox-events-sdk
Draft

Get Sandbox Container Events in the SDK#1558
cooper-grc wants to merge 1 commit intomainfrom
cg/sandbox-events-sdk

Conversation

@cooper-grc
Copy link
Contributor

@cooper-grc cooper-grc commented Mar 20, 2026

Summary by cubic

Add sandbox container lifecycle events to the API and Python SDK so clients can fetch recent events for a sandbox with pagination. OpenAPI/gRPC gateway are updated, and monitoring now also scrapes port 8112.

  • New Features
    • API: GET /pods/{stub_id}/events (PodService_SandboxListEvents) adds paginated event listing via optional searchAfter; returns events (id, time, type, status, containerId, workerId, stubId, exitCode) and nextCursor, sorted newest first, with workspace ownership checks; backed by Elasticsearch. OpenAPI and gateway code generated accordingly.
    • Python SDK: added SandboxInstance.list_events(cursor=None) and AsyncSandboxInstance.list_events(cursor=None) returning (List[SandboxEvent], next_cursor); raises SandboxConnectionError on failure.

Written for commit e6d623a. Summary will update on new commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant