pub struct StatsSummary {
pub start: u64,
pub jobs: u64,
pub succeeded: u64,
pub failed: u64,
pub cancelled: u64,
pub queue_seconds: u64,
pub run_seconds: u64,
pub memory_peak: Option<u64>,
}Expand description
Finished jobs summed over a time, every repository of the query together, from Stats::daily.
Fields§
§start: u64Its start.
jobs: u64Jobs completed or lost.
succeeded: u64Of those, concluded success.
failed: u64Of those, failed, timed out or lost.
cancelled: u64Of those, cancelled.
queue_seconds: u64Seconds from queued to started, summed.
run_seconds: u64Seconds from started to finished, summed.
memory_peak: Option<u64>The highest sampled memory peak of a job; None when no job had a sample.
Implementations§
Source§impl StatsSummary
impl StatsSummary
Sourcepub fn of(summaries: &[StatsSummary]) -> StatsSummary
pub fn of(summaries: &[StatsSummary]) -> StatsSummary
summaries together, starting at the first’s start.
Sourcepub fn other(&self) -> u64
pub fn other(&self) -> u64
Jobs that finished otherwise: neither succeeded, failed nor cancelled, as a skipped one.
Sourcepub fn success_percent(&self) -> Option<u64>
pub fn success_percent(&self) -> Option<u64>
The share of its jobs that succeeded, in whole percent rounded down; None without jobs.
Sourcepub fn average_run(&self) -> Option<u64>
pub fn average_run(&self) -> Option<u64>
Its jobs’ average run, in seconds; None without jobs.
Sourcepub fn average_wait(&self) -> Option<u64>
pub fn average_wait(&self) -> Option<u64>
Its jobs’ average wait from queued to started, in seconds; None without jobs.
Trait Implementations§
Source§impl Clone for StatsSummary
impl Clone for StatsSummary
impl Copy for StatsSummary
Source§impl Debug for StatsSummary
impl Debug for StatsSummary
Source§impl Default for StatsSummary
impl Default for StatsSummary
impl Eq for StatsSummary
Source§impl PartialEq for StatsSummary
impl PartialEq for StatsSummary
impl StructuralPartialEq for StatsSummary
Auto Trait Implementations§
impl Freeze for StatsSummary
impl RefUnwindSafe for StatsSummary
impl Send for StatsSummary
impl Sync for StatsSummary
impl Unpin for StatsSummary
impl UnsafeUnpin for StatsSummary
impl UnwindSafe for StatsSummary
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.