pub struct Job {
pub summary: JobSummary,
pub steps: Vec<Step>,
pub record: Option<RecordNote>,
pub admission: Option<Admission>,
}Expand description
GET /v1/jobs/{id}: a job with its steps.
Fields§
§summary: JobSummaryEverything but the steps.
steps: Vec<Step>The steps as GitHub numbers them, including Set up job and Complete job.
record: Option<RecordNote>Its record, for a failed job of a profile that records failures.
admission: Option<Admission>How its runner was admitted; None for one started before runnerd recorded it.
Implementations§
Source§impl Job
impl Job
Sourcepub fn observe(&mut self, sample: &Sample)
pub fn observe(&mut self, sample: &Sample)
Takes a sample of its container as it arrives: while the job runs, its peaks rise to it, high-water marks that deleting old samples does not lower. A final job’s figures are the daemon’s totals and stay.
Sourcepub fn reread(&mut self, read: Job)
pub fn reread(&mut self, read: Job)
Takes the job as read again. While it runs, its peaks keep the highest seen, since the store’s lag the samples a client saw arrive; once it is final, the read is the daemon’s totals.
Sourcepub fn compare(&self, runs: &[JobSummary], now: u64) -> RunComparison
pub fn compare(&self, runs: &[JobSummary], now: u64) -> RunComparison
How it compares with the same job’s latest runs, oldest first as given: this job among them as it is now,
not as the runs were read, since it may have started, finished or peaked higher since.
Source§impl Job
impl Job
Sourcepub fn chart_lines(&self, profile: Option<&ProfileStatus>) -> ChartLines
pub fn chart_lines(&self, profile: Option<&ProfileStatus>) -> ChartLines
The lines across its memory and CPU charts, as every client labels them: what admission reserved of the
budget, when the record has it, and the cap its container ran with, or for a record without it, profile’s
limit as configured now. A reservation of the whole cap is one line.
Sourcepub fn limits(&self, profile: Option<&ProfileStatus>) -> Limits
pub fn limits(&self, profile: Option<&ProfileStatus>) -> Limits
What its container may use of each resource, as every client scales its use against: the cap it ran with,
or, for a record without it, profile’s limit as configured now. Each resource falls back on its own, so a
reload that changes the profile never replaces a cap the record has.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 Job
impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
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.