pub enum MonitoringEvent {
WorkflowStarted {
workflow_id: WorkflowId,
definition_id: String,
timestamp: SystemTime,
},
WorkflowCompleted {
workflow_id: WorkflowId,
duration: Duration,
success: bool,
timestamp: SystemTime,
},
StageStarted {
workflow_id: WorkflowId,
stage_id: StageId,
timestamp: SystemTime,
},
StageCompleted {
workflow_id: WorkflowId,
stage_id: StageId,
duration: Duration,
timestamp: SystemTime,
},
ErrorOccurred {
workflow_id: WorkflowId,
stage_id: Option<StageId>,
error: String,
timestamp: SystemTime,
},
MetricRecorded {
workflow_id: WorkflowId,
metric_name: String,
value: f64,
timestamp: SystemTime,
},
AlertTriggered {
workflow_id: Option<WorkflowId>,
alert_type: AlertType,
message: String,
timestamp: SystemTime,
},
}Expand description
Monitoring event types
Variants§
WorkflowStarted
Workflow started
WorkflowCompleted
Workflow completed
StageStarted
Stage started
StageCompleted
Stage completed
ErrorOccurred
Error occurred
MetricRecorded
Metric recorded
AlertTriggered
Alert triggered
Trait Implementations§
Source§impl Clone for MonitoringEvent
impl Clone for MonitoringEvent
Source§fn clone(&self) -> MonitoringEvent
fn clone(&self) -> MonitoringEvent
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 MonitoringEvent
impl Debug for MonitoringEvent
Source§impl<'de> Deserialize<'de> for MonitoringEvent
impl<'de> Deserialize<'de> for MonitoringEvent
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 MonitoringEvent
impl RefUnwindSafe for MonitoringEvent
impl Send for MonitoringEvent
impl Sync for MonitoringEvent
impl Unpin for MonitoringEvent
impl UnwindSafe for MonitoringEvent
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