pub struct Activity {
pub since: u64,
pub until: u64,
pub started: Vec<Started>,
pub finished: u64,
pub failed: u64,
}Expand description
GET /v1/activity: every job runnerd’s runners started or finished in a window, by when that happened rather
than when the job was queued, so a job that waited or ran long counts in the window it started or ended in.
Fields§
§since: u64The start of the window.
until: u64When it was read: the end of the window.
started: Vec<Started>Each job that started in the window, oldest start first.
finished: u64The jobs that finished in the window: completed, or lost with their runner.
failed: u64Of those, the ones that failed, timed out or were lost, as GET /v1/stats counts failures.
Implementations§
Source§impl Activity
impl Activity
Sourcepub fn wait_p95(&self) -> Option<u64>
pub fn wait_p95(&self) -> Option<u64>
The 95th percentile of the waits of the jobs that started, by nearest rank as sizing’s are; None when none
started.
Sourcepub fn wait_hours(&self) -> [u64; 24]
pub fn wait_hours(&self) -> [u64; 24]
The longest wait of the jobs that started in each of the 24 hours before until, oldest hour first; 0 for
an hour without a start. Counted back from until, so the hours are the day the other figures count.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
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>,
impl Eq for Activity
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnsafeUnpin for Activity
impl UnwindSafe for Activity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.