Skip to content

GadgetCompleteEvent

Defined in: core/execution-events.ts:123

Emitted when gadget execution completes successfully.

optional cost: number

Defined in: core/execution-events.ts:134

Cost in USD


depth: number

Defined in: core/execution-events.ts:33

Nesting depth (0 = root, 1 = child, etc.)

BaseExecutionEvent.depth


eventId: number

Defined in: core/execution-events.ts:25

Monotonically increasing event ID

BaseExecutionEvent.eventId


executionTimeMs: number

Defined in: core/execution-events.ts:132

Execution time in ms


invocationId: string

Defined in: core/execution-events.ts:126

Invocation ID


optional media: GadgetMediaOutput[]

Defined in: core/execution-events.ts:136

Media outputs


name: string

Defined in: core/execution-events.ts:128

Gadget name


nodeId: string

Defined in: core/execution-events.ts:29

Node that emitted this event

BaseExecutionEvent.nodeId


parentId: string | null

Defined in: core/execution-events.ts:31

Parent node ID (null for root events)

BaseExecutionEvent.parentId


path: string[]

Defined in: core/execution-events.ts:35

Full path from root to this node

BaseExecutionEvent.path


result: string

Defined in: core/execution-events.ts:130

Result string


timestamp: number

Defined in: core/execution-events.ts:27

Event timestamp

BaseExecutionEvent.timestamp


type: "gadget_complete"

Defined in: core/execution-events.ts:124