Skip to content

LifecycleEvent

junjo.hooks.LifecycleEvent

Kind: Class

SDK version: 0.64.0

Documentation channel: Next source preview

LifecycleEvent(*, run_id: str, executable_definition_id: str, name: str, trace_id: str, span_id: str, executable_type: ExecutableType, executable_runtime_id: str, executable_structural_id: str, parent_executable_definition_id: str | None = None, parent_executable_runtime_id: str | None = None, parent_executable_structural_id: str | None = None, parent_executable_type: ExecutableType | None = None)

View source

Base payload shared by every public hook event.

run_id: str

View source

Public attribute.

executable_definition_id: str

View source

Public attribute.

name: str

View source

Public attribute.

trace_id: str

View source

Public attribute.

span_id: str

View source

Public attribute.

executable_type: ExecutableType

View source

Public attribute.

executable_runtime_id: str

View source

Public attribute.

executable_structural_id: str

View source

Public attribute.

parent_executable_definition_id: str | None

View source

Public attribute.

parent_executable_runtime_id: str | None

View source

Public attribute.

parent_executable_structural_id: str | None

View source

Public attribute.

parent_executable_type: ExecutableType | None

View source

Public attribute.

hook_name: str

View source

Return the public lifecycle hook name for this payload.

This is derived from the concrete event class name so callers can log the event type directly without each payload redefining its own string constant.