pub struct ExecutionEvent {
pub id: EventId,
pub execution_id: ExecutionId,
pub workflow_id: WorkflowId,
pub node_id: Option<NodeId>,
pub timestamp: DateTime<Utc>,
pub event_type: EventType,
pub details: EventDetails,
}Expand description
Execution event tracking node-level and workflow-level activities
Fields§
§id: EventIdUnique event identifier
execution_id: ExecutionIdExecution this event belongs to
workflow_id: WorkflowIdWorkflow being executed
node_id: Option<NodeId>Node associated with this event (if applicable)
timestamp: DateTime<Utc>Event timestamp
event_type: EventTypeEvent type classification
details: EventDetailsDetailed event information
Implementations§
Source§impl ExecutionEvent
impl ExecutionEvent
Sourcepub fn workflow_started(
execution_id: ExecutionId,
workflow_id: WorkflowId,
metadata: WorkflowMetadata,
input: HashMap<String, Value>,
) -> Self
pub fn workflow_started( execution_id: ExecutionId, workflow_id: WorkflowId, metadata: WorkflowMetadata, input: HashMap<String, Value>, ) -> Self
Create a new workflow started event
Sourcepub fn workflow_completed(
execution_id: ExecutionId,
workflow_id: WorkflowId,
duration_ms: u64,
result: ExecutionResult,
) -> Self
pub fn workflow_completed( execution_id: ExecutionId, workflow_id: WorkflowId, duration_ms: u64, result: ExecutionResult, ) -> Self
Create a new workflow completed event
Sourcepub fn workflow_failed(
execution_id: ExecutionId,
workflow_id: WorkflowId,
duration_ms: u64,
error: String,
stack_trace: Option<String>,
) -> Self
pub fn workflow_failed( execution_id: ExecutionId, workflow_id: WorkflowId, duration_ms: u64, error: String, stack_trace: Option<String>, ) -> Self
Create a new workflow failed event
Sourcepub fn workflow_cancelled(
execution_id: ExecutionId,
workflow_id: WorkflowId,
duration_ms: u64,
reason: String,
) -> Self
pub fn workflow_cancelled( execution_id: ExecutionId, workflow_id: WorkflowId, duration_ms: u64, reason: String, ) -> Self
Create a new workflow cancelled event
Sourcepub fn node_started(
execution_id: ExecutionId,
workflow_id: WorkflowId,
node_id: NodeId,
node_kind: NodeKind,
input: HashMap<String, Value>,
) -> Self
pub fn node_started( execution_id: ExecutionId, workflow_id: WorkflowId, node_id: NodeId, node_kind: NodeKind, input: HashMap<String, Value>, ) -> Self
Create a new node started event
Sourcepub fn node_completed(
execution_id: ExecutionId,
workflow_id: WorkflowId,
node_id: NodeId,
node_kind: NodeKind,
duration_ms: u64,
metrics: NodeMetrics,
output: HashMap<String, Value>,
) -> Self
pub fn node_completed( execution_id: ExecutionId, workflow_id: WorkflowId, node_id: NodeId, node_kind: NodeKind, duration_ms: u64, metrics: NodeMetrics, output: HashMap<String, Value>, ) -> Self
Create a new node completed event
Sourcepub fn node_failed(
execution_id: ExecutionId,
workflow_id: WorkflowId,
node_id: NodeId,
node_kind: NodeKind,
error: String,
stack_trace: Option<String>,
retry_attempt: u32,
) -> Self
pub fn node_failed( execution_id: ExecutionId, workflow_id: WorkflowId, node_id: NodeId, node_kind: NodeKind, error: String, stack_trace: Option<String>, retry_attempt: u32, ) -> Self
Create a new node failed event
Sourcepub fn node_skipped(
execution_id: ExecutionId,
workflow_id: WorkflowId,
node_id: NodeId,
node_kind: NodeKind,
reason: String,
) -> Self
pub fn node_skipped( execution_id: ExecutionId, workflow_id: WorkflowId, node_id: NodeId, node_kind: NodeKind, reason: String, ) -> Self
Create a new node skipped event
Sourcepub fn variable_changed(
execution_id: ExecutionId,
workflow_id: WorkflowId,
node_id: Option<NodeId>,
variable_name: String,
old_value: Option<Value>,
new_value: Value,
source: String,
) -> Self
pub fn variable_changed( execution_id: ExecutionId, workflow_id: WorkflowId, node_id: Option<NodeId>, variable_name: String, old_value: Option<Value>, new_value: Value, source: String, ) -> Self
Create a new variable changed event
Sourcepub fn error_occurred(
execution_id: ExecutionId,
workflow_id: WorkflowId,
node_id: Option<NodeId>,
error: String,
stack_trace: Option<String>,
context: HashMap<String, Value>,
) -> Self
pub fn error_occurred( execution_id: ExecutionId, workflow_id: WorkflowId, node_id: Option<NodeId>, error: String, stack_trace: Option<String>, context: HashMap<String, Value>, ) -> Self
Create a new error occurred event
Sourcepub fn checkpoint_created(
execution_id: ExecutionId,
workflow_id: WorkflowId,
checkpoint_id: String,
nodes_completed: usize,
state: String,
) -> Self
pub fn checkpoint_created( execution_id: ExecutionId, workflow_id: WorkflowId, checkpoint_id: String, nodes_completed: usize, state: String, ) -> Self
Create a new checkpoint created event
Sourcepub fn execution_resumed(
execution_id: ExecutionId,
workflow_id: WorkflowId,
checkpoint_id: String,
nodes_to_skip: usize,
) -> Self
pub fn execution_resumed( execution_id: ExecutionId, workflow_id: WorkflowId, checkpoint_id: String, nodes_to_skip: usize, ) -> Self
Create a new execution resumed event
Trait Implementations§
Source§impl Clone for ExecutionEvent
impl Clone for ExecutionEvent
Source§fn clone(&self) -> ExecutionEvent
fn clone(&self) -> ExecutionEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionEvent
impl Debug for ExecutionEvent
Source§impl<'de> Deserialize<'de> for ExecutionEvent
impl<'de> Deserialize<'de> for ExecutionEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExecutionEvent
impl RefUnwindSafe for ExecutionEvent
impl Send for ExecutionEvent
impl Sync for ExecutionEvent
impl Unpin for ExecutionEvent
impl UnwindSafe for ExecutionEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more