pub struct Insights {
pub since: u64,
pub until: u64,
pub insights: Vec<Insight>,
pub waits: Vec<RepositoryWaits>,
pub host: Vec<HostHazard>,
pub disk: Option<DiskWrites>,
}Expand description
GET /v1/insights: what the history says about the window.
Fields§
§since: u64The start of the window.
until: u64When it was read: the end of the window.
insights: Vec<Insight>Warnings first, then by repository, workflow and job.
waits: Vec<RepositoryWaits>Each repository’s waits this week and the week before, by repository. Always the last 14 days, whatever the window.
host: Vec<HostHazard>What the host’s memory came to on each UTC day of the window that CI ran, newest first (ADR 0108); absent from a daemon before 0.0.30.
disk: Option<DiskWrites>What the jobs that ended in the window and the drive under Docker’s root wrote (ADR 0143); None when no job
was measured and the daemon read no drive, and from a daemon before 0.1.3.
Implementations§
Source§impl Insights
impl Insights
Sourcepub fn warning_count(&self) -> usize
pub fn warning_count(&self) -> usize
How many insights warn.
Sourcepub fn heading(&self) -> InsightsHeading
pub fn heading(&self) -> InsightsHeading
What the insights page says over its list: how many insights it lists, how many of them warn, and the window they come from.
Sourcepub fn window_line(&self) -> String
pub fn window_line(&self) -> String
Where its insights come from: from the last 30 days.
Sourcepub fn empty_line(&self) -> String
pub fn empty_line(&self) -> String
What it says without any insight: nothing stands out from the last 30 days.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Insights
impl<'de> Deserialize<'de> for Insights
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 Insights
impl StructuralPartialEq for Insights
Auto Trait Implementations§
impl Forget for Insights
impl Freeze for Insights
impl Move for Insights
impl RefUnwindSafe for Insights
impl Send for Insights
impl Sync for Insights
impl Unpin for Insights
impl UnsafeUnpin for Insights
impl UnwindSafe for Insights
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.