ExecutionEvent

Struct ExecutionEvent 

Source
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: EventId

Unique event identifier

§execution_id: ExecutionId

Execution this event belongs to

§workflow_id: WorkflowId

Workflow being executed

§node_id: Option<NodeId>

Node associated with this event (if applicable)

§timestamp: DateTime<Utc>

Event timestamp

§event_type: EventType

Event type classification

§details: EventDetails

Detailed event information

Implementations§

Source§

impl ExecutionEvent

Source

pub fn workflow_started( execution_id: ExecutionId, workflow_id: WorkflowId, metadata: WorkflowMetadata, input: HashMap<String, Value>, ) -> Self

Create a new workflow started event

Source

pub fn workflow_completed( execution_id: ExecutionId, workflow_id: WorkflowId, duration_ms: u64, result: ExecutionResult, ) -> Self

Create a new workflow completed event

Source

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

Source

pub fn workflow_cancelled( execution_id: ExecutionId, workflow_id: WorkflowId, duration_ms: u64, reason: String, ) -> Self

Create a new workflow cancelled event

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source§

fn clone(&self) -> ExecutionEvent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ExecutionEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ExecutionEvent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for ExecutionEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,