pub struct JobStatistics {Show 14 fields
pub total_processed: u64,
pub completed: u64,
pub failed: u64,
pub dead: u64,
pub timed_out: u64,
pub running: u64,
pub avg_processing_time_ms: f64,
pub min_processing_time_ms: u64,
pub max_processing_time_ms: u64,
pub throughput_per_minute: f64,
pub error_rate: f64,
pub priority_stats: Option<PriorityStats>,
pub time_window: Duration,
pub calculated_at: DateTime<Utc>,
}
Expand description
Statistics for job processing over a time window
Fields§
§total_processed: u64
Total number of jobs processed in the time window
completed: u64
Number of successfully completed jobs
failed: u64
Number of failed jobs
dead: u64
Number of dead jobs (exhausted all retries)
timed_out: u64
Number of timed out jobs
running: u64
Number of currently running jobs
avg_processing_time_ms: f64
Average processing time in milliseconds
min_processing_time_ms: u64
Minimum processing time in milliseconds
max_processing_time_ms: u64
Maximum processing time in milliseconds
throughput_per_minute: f64
Job throughput per minute
error_rate: f64
Error rate (failed + dead + timed out jobs / total processed)
priority_stats: Option<PriorityStats>
Priority-based statistics breakdown
time_window: Duration
Time window these statistics cover
calculated_at: DateTime<Utc>
When these statistics were calculated
Trait Implementations§
Source§impl Clone for JobStatistics
impl Clone for JobStatistics
Source§fn clone(&self) -> JobStatistics
fn clone(&self) -> JobStatistics
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 JobStatistics
impl Debug for JobStatistics
Source§impl Default for JobStatistics
impl Default for JobStatistics
Source§impl<'de> Deserialize<'de> for JobStatistics
impl<'de> Deserialize<'de> for JobStatistics
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 JobStatistics
impl RefUnwindSafe for JobStatistics
impl Send for JobStatistics
impl Sync for JobStatistics
impl Unpin for JobStatistics
impl UnwindSafe for JobStatistics
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