Skip to content

E2B.Team reference

Source: packages/e2b/src/ReadTeam.ts

Read the team’s sandbox usage and lifecycle event log: dashboards, quotas, auditing which sandboxes started, paused and were killed.

To react to lifecycle events as they happen, use E2B.SandboxEvents.

const team = yield* E2B.ReadTeam();
// in fetch:
const now = Math.floor(Date.now() / 1000);
const metrics = yield* team.metrics({ start: now - 3600, end: now });

Source: packages/e2b/src/ReadTeamHttp.ts Kind: Layer · Provides: E2B.ReadTeam

HTTP implementation of ReadTeam. Works on any host.

Effect.gen(function* () {
const team = yield* E2B.ReadTeam();
// ...
}).pipe(Effect.provide(E2B.ReadTeamHttp))