pub struct SystemStats {
pub objects_processed: u64,
pub actions_executed: u64,
pub errors: u64,
pub total_processing_time_ms: u64,
pub last_processed: Option<DateTime<Utc>>,
pub avg_processing_time_ms: f64,
pub peak_processing_time_ms: u64,
}Expand description
Statistics for a system
Fields§
§objects_processed: u64Number of objects processed
actions_executed: u64Number of actions executed
errors: u64Number of errors encountered
total_processing_time_ms: u64Total processing time in milliseconds
last_processed: Option<DateTime<Utc>>Last processing timestamp
avg_processing_time_ms: f64Average processing time per object in milliseconds
peak_processing_time_ms: u64Peak processing time in milliseconds
Implementations§
Source§impl SystemStats
impl SystemStats
Sourcepub fn update_processing_time(&mut self, processing_time_ms: u64)
pub fn update_processing_time(&mut self, processing_time_ms: u64)
Update stats with new processing time
Sourcepub fn throughput_objects_per_second(&self) -> f64
pub fn throughput_objects_per_second(&self) -> f64
Get processing throughput (objects per second)
Sourcepub fn error_rate(&self) -> f64
pub fn error_rate(&self) -> f64
Get error rate as percentage
Trait Implementations§
Source§impl Clone for SystemStats
impl Clone for SystemStats
Source§fn clone(&self) -> SystemStats
fn clone(&self) -> SystemStats
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 SystemStats
impl Debug for SystemStats
Source§impl Default for SystemStats
impl Default for SystemStats
Source§fn default() -> SystemStats
fn default() -> SystemStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemStats
impl<'de> Deserialize<'de> for SystemStats
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 SystemStats
impl RefUnwindSafe for SystemStats
impl Send for SystemStats
impl Sync for SystemStats
impl Unpin for SystemStats
impl UnwindSafe for SystemStats
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