Type Alias DevboxLifecycleEvent
DevboxLifecycleEvent:
| { devboxId: string; kind: "running"; type: "devbox.lifecycle" }
| { devboxId: string; kind: "suspended"; type: "devbox.lifecycle" }
| { devboxId: string; kind: "shutdown"; type: "devbox.lifecycle" }
| {
devboxId: string;
kind: "failed";
reason?: string;
type: "devbox.lifecycle";
}
Devbox lifecycle event. Discriminate on
kindto narrow:running— devbox is runningsuspended— devbox is suspended / suspendingshutdown— devbox reached shutdown statefailed— devbox failed / not found / deadline exceeded (reasonis set)