pub enum AuditEvent {
Show 21 variants
Observe {
timestamp: DateTime<Utc>,
query: String,
symbol_count: usize,
},
Constrain {
timestamp: DateTime<Utc>,
policy_count: usize,
violations: usize,
},
Plan {
timestamp: DateTime<Utc>,
step_count: usize,
estimated_files: usize,
},
Mutate {
timestamp: DateTime<Utc>,
files_modified: Vec<String>,
},
Verify {
timestamp: DateTime<Utc>,
passed: bool,
diagnostic_count: usize,
},
Commit {
timestamp: DateTime<Utc>,
transaction_id: String,
},
Rollback {
timestamp: DateTime<Utc>,
reason: String,
phase: String,
},
WorkflowStarted {
timestamp: DateTime<Utc>,
workflow_id: String,
task_count: usize,
},
WorkflowTaskStarted {
timestamp: DateTime<Utc>,
workflow_id: String,
task_id: String,
task_name: String,
},
WorkflowTaskCompleted {
timestamp: DateTime<Utc>,
workflow_id: String,
task_id: String,
task_name: String,
result: String,
},
WorkflowTaskFailed {
timestamp: DateTime<Utc>,
workflow_id: String,
task_id: String,
task_name: String,
error: String,
},
WorkflowCompleted {
timestamp: DateTime<Utc>,
workflow_id: String,
total_tasks: usize,
completed_tasks: usize,
},
WorkflowTaskRolledBack {
timestamp: DateTime<Utc>,
workflow_id: String,
task_id: String,
compensation: String,
},
WorkflowRolledBack {
timestamp: DateTime<Utc>,
workflow_id: String,
reason: String,
rolled_back_tasks: Vec<String>,
},
WorkflowCancelled {
timestamp: DateTime<Utc>,
workflow_id: String,
},
WorkflowTaskTimedOut {
timestamp: DateTime<Utc>,
workflow_id: String,
task_id: String,
task_name: String,
timeout_secs: u64,
},
WorkflowToolFallback {
timestamp: DateTime<Utc>,
workflow_id: String,
task_id: String,
tool_name: String,
error: String,
fallback_action: String,
},
WorkflowTaskParallelStarted {
timestamp: DateTime<Utc>,
workflow_id: String,
layer_index: usize,
task_count: usize,
},
WorkflowTaskParallelCompleted {
timestamp: DateTime<Utc>,
workflow_id: String,
layer_index: usize,
task_count: usize,
},
WorkflowDeadlockCheck {
timestamp: DateTime<Utc>,
workflow_id: String,
has_cycles: bool,
warnings: Vec<String>,
},
WorkflowDeadlockTimeout {
timestamp: DateTime<Utc>,
workflow_id: String,
layer_index: usize,
timeout_secs: u64,
},
}Expand description
Audit event for phase transitions.
Each event captures the timestamp and phase-specific data for complete transaction reconstruction.
Variants§
Observe
Observation phase - gather context from graph
Constrain
Constraint phase - apply policy rules
Plan
Plan phase - generate execution steps
Mutate
Mutate phase - apply changes
Verify
Verify phase - validate results
Commit
Commit phase - finalize transaction
Rollback
Rollback occurred with reason
WorkflowStarted
Workflow execution started
WorkflowTaskStarted
Workflow task started
WorkflowTaskCompleted
Workflow task completed
Fields
WorkflowTaskFailed
Workflow task failed
WorkflowCompleted
Workflow execution completed
WorkflowTaskRolledBack
Workflow task rolled back
WorkflowRolledBack
Workflow rolled back
WorkflowCancelled
Workflow cancelled
WorkflowTaskTimedOut
Workflow task timed out
Fields
WorkflowToolFallback
Workflow tool fallback activated
Fields
WorkflowTaskParallelStarted
Parallel task layer started
WorkflowTaskParallelCompleted
Parallel task layer completed
WorkflowDeadlockCheck
Workflow deadlock check completed
WorkflowDeadlockTimeout
Workflow deadlock timeout occurred
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone for AuditEvent
Source§fn clone(&self) -> AuditEvent
fn clone(&self) -> AuditEvent
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 AuditEvent
impl Debug for AuditEvent
Source§impl<'de> Deserialize<'de> for AuditEvent
impl<'de> Deserialize<'de> for AuditEvent
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 AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnsafeUnpin for AuditEvent
impl UnwindSafe for AuditEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more