pub struct SystemMetrics {
pub total_workflows_completed: u64,
pub successful_workflows: u64,
pub failed_workflows: u64,
pub error_count: u64,
pub cpu_usage: f32,
pub memory_usage_mb: u64,
pub last_updated: SystemTime,
pub start_time: SystemTime,
}Expand description
System-wide metrics
Fields§
§total_workflows_completed: u64Total workflows completed
successful_workflows: u64Successful workflows
failed_workflows: u64Failed workflows
error_count: u64Total error count
cpu_usage: f32CPU usage percentage
memory_usage_mb: u64Memory usage in MB
last_updated: SystemTimeLast update timestamp
start_time: SystemTimeStart time for rate calculations
Implementations§
Source§impl SystemMetrics
impl SystemMetrics
Sourcepub fn calculate_error_rate(&self) -> f32
pub fn calculate_error_rate(&self) -> f32
Calculate error rate per minute
Trait Implementations§
Source§impl Clone for SystemMetrics
impl Clone for SystemMetrics
Source§fn clone(&self) -> SystemMetrics
fn clone(&self) -> SystemMetrics
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 SystemMetrics
impl Debug for SystemMetrics
Auto Trait Implementations§
impl Freeze for SystemMetrics
impl RefUnwindSafe for SystemMetrics
impl Send for SystemMetrics
impl Sync for SystemMetrics
impl Unpin for SystemMetrics
impl UnwindSafe for SystemMetrics
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