pub struct Health {
pub slots: usize,
pub running: usize,
pub starting: usize,
pub warm: usize,
pub waiting: usize,
pub oldest_wait: Option<u64>,
}Expand description
Whether CI keeps up now, from Status::health.
Fields§
§slots: usizeEvery configured slot.
running: usizeSlots whose runner runs a job.
starting: usizeSlots whose runner waits for the queued job it started for.
warm: usizeSlots whose warm runner waits for jobs not queued yet.
waiting: usizeQueued jobs no runner holds yet.
oldest_wait: Option<u64>How long the oldest of them has waited, in seconds; None when none says when it was queued.
Implementations§
Source§impl Health
impl Health
Sourcepub fn waiting_tone(&self) -> Tone
pub fn waiting_tone(&self) -> Tone
What the queue means: any job waiting is worth a look.
Source§impl Health
impl Health
Sourcepub fn figures(&self, activity: Option<&Activity>) -> Vec<Figure>
pub fn figures(&self, activity: Option<&Activity>) -> Vec<Figure>
The four figures that say whether CI keeps up: slots running, jobs waiting and the oldest’s wait, and from
the last day’s activity, the wait of the jobs that started and the failures. The last two are left out
until the day is read.
Trait Implementations§
impl Copy for Health
impl Eq for Health
impl StructuralPartialEq for Health
Auto Trait Implementations§
impl Freeze for Health
impl RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl UnsafeUnpin for Health
impl UnwindSafe for Health
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.