LifecycleEvent
junjo.hooks.LifecycleEvent
Kind: Class
SDK version: 0.64.0
Documentation channel: Next source preview
Signature
Section titled “Signature”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)Base payload shared by every public hook event.
Members
Section titled “Members”run_id
Section titled “run_id”run_id: strPublic attribute.
executable_definition_id
Section titled “executable_definition_id”executable_definition_id: strPublic attribute.
name: strPublic attribute.
trace_id
Section titled “trace_id”trace_id: strPublic attribute.
span_id
Section titled “span_id”span_id: strPublic attribute.
executable_type
Section titled “executable_type”executable_type: ExecutableTypePublic attribute.
executable_runtime_id
Section titled “executable_runtime_id”executable_runtime_id: strPublic attribute.
executable_structural_id
Section titled “executable_structural_id”executable_structural_id: strPublic attribute.
parent_executable_definition_id
Section titled “parent_executable_definition_id”parent_executable_definition_id: str | NonePublic attribute.
parent_executable_runtime_id
Section titled “parent_executable_runtime_id”parent_executable_runtime_id: str | NonePublic attribute.
parent_executable_structural_id
Section titled “parent_executable_structural_id”parent_executable_structural_id: str | NonePublic attribute.
parent_executable_type
Section titled “parent_executable_type”parent_executable_type: ExecutableType | NonePublic attribute.
hook_name
Section titled “hook_name”hook_name: strReturn 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.