pub struct Insight {
pub key: String,
pub severity: Severity,
pub repository: String,
pub workflow: Option<String>,
pub job: Option<String>,
pub sentence: String,
pub kind: InsightKind,
pub runs: Vec<RunLink>,
}Expand description
One thing the history says, about one job or one repository.
Fields§
§key: StringThe same while it holds, such as slower:halyard/api/CI/test.
severity: SeverityHow much it matters.
repository: Stringowner/name.
workflow: Option<String>The workflow’s name; None for a repository’s waits, or when unknown.
job: Option<String>The job’s name; None for a repository’s waits.
sentence: StringWhat it is, in one line.
kind: InsightKindWhat it is, with its figures.
runs: Vec<RunLink>The runs that show it, newest first, at most 5.
Implementations§
Source§impl Insight
impl Insight
Sourcepub fn host_held_sentence(
jobs: u32,
waited: u64,
longest: &str,
memory: &HostMemory,
) -> String
pub fn host_held_sentence( jobs: u32, waited: u64, longest: &str, memory: &HostMemory, ) -> String
What a HostHeld insight says: 3 jobs wait for the host's memory, the longest for 42m 10s (halyard/api: CI / build); programs outside CI hold 30G, most java 9.3G and claude 5.1G. Closing programs frees only part of that. longest names the job that waited longest; memory is the
reading that names who holds the memory. The part the programs named leave is the kernel, compressed swap and
the many small programs, so the sentence never says closing them frees the whole figure.
Source§impl Insight
impl Insight
Sourcepub fn host_low_sentence(
day: u64,
seconds: u64,
lowest: u64,
line: u64,
) -> String
pub fn host_low_sentence( day: u64, seconds: u64, lowest: u64, line: u64, ) -> String
What a HostLow insight says: On Nov 6 the host had under 6.2G available for 34s while a host credit stood, down to 4.1G. The credit lets runners start on memory the running ones may still grow into; [host] pooled_count = false makes the budgets count every reservation again.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Insight
impl<'de> Deserialize<'de> for Insight
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 Insight
impl StructuralPartialEq for Insight
Auto Trait Implementations§
impl Forget for Insight
impl Freeze for Insight
impl RefUnwindSafe for Insight
impl Send for Insight
impl Sync for Insight
impl Unpin for Insight
impl UnsafeUnpin for Insight
impl UnwindSafe for Insight
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.