pub struct LogOutline {
pub job: u64,
pub evidence: LogEvidence,
pub lines: u64,
pub from: u64,
pub groups: Vec<LogGroup>,
pub steps: Vec<StepLines>,
pub unattributed: Vec<LineRange>,
pub errors: u64,
pub warnings: u64,
pub marks: Vec<LogMark>,
pub capped: bool,
pub failure: Option<FailureSummary>,
}Expand description
GET /v1/jobs/{id}/log/outline: a job’s log as structure.
Fields§
§job: u64The job.
evidence: LogEvidenceHow much of the log there is.
lines: u64Lines stored: they are numbered from 0 up to this, less any deleted.
from: u64The first line outlined; lines when none is.
groups: Vec<LogGroup>Its groups, by their first line.
steps: Vec<StepLines>Each stored step and its lines, in the job’s order.
unattributed: Vec<LineRange>The stored lines no step got.
errors: u64Error lines seen.
warnings: u64Warning lines seen.
marks: Vec<LogMark>The error and warning lines, up to 1000.
capped: boolSome groups or marks were only counted: more than it keeps.
failure: Option<FailureSummary>On a failed job: what its log says of the failure.
Implementations§
Source§impl LogOutline
impl LogOutline
Sourcepub fn count_words(lines: usize) -> String
pub fn count_words(lines: usize) -> String
How many lines a part of the log holds, as a fold says it: 1 line, 5 lines.
Sourcepub fn tail_words(first: u64, shown: usize) -> Option<String>
pub fn tail_words(first: u64, shown: usize) -> Option<String>
What a client says when it outlines only the log’s last shown lines, first lines in: The last 5000 lines; the full log has the 1200 before them. None when it shows them all.
Sourcepub fn assemble(
job: &Job,
stored: StoredLog,
parts: OutlineParts,
read: &mut dyn FnMut(LineRead) -> Vec<StoredLine>,
) -> LogOutline
pub fn assemble( job: &Job, stored: StoredLog, parts: OutlineParts, read: &mut dyn FnMut(LineRead) -> Vec<StoredLine>, ) -> LogOutline
Assembles a job’s outline from what the store keeps, all read at one time. read returns the stored lines
a LineRead asks for: the start of the first and last line of each segment, and a failed step’s last
lines, the most of them cut to a few hundred bytes.
Sourcepub fn of(job: &Job, lines: &[String]) -> LogOutline
pub fn of(job: &Job, lines: &[String]) -> LogOutline
The outline of a whole log held in memory, as the store would keep it: for fixtures and the demo.
Sourcepub fn step_lines(&self, number: u32) -> Option<LineRange>
pub fn step_lines(&self, number: u32) -> Option<LineRange>
The lines of step number, when known.
Trait Implementations§
Source§impl Clone for LogOutline
impl Clone for LogOutline
Source§impl Debug for LogOutline
impl Debug for LogOutline
Source§impl<'de> Deserialize<'de> for LogOutline
impl<'de> Deserialize<'de> for LogOutline
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 LogOutline
Source§impl PartialEq for LogOutline
impl PartialEq for LogOutline
Source§impl Serialize for LogOutline
impl Serialize for LogOutline
impl StructuralPartialEq for LogOutline
Auto Trait Implementations§
impl Forget for LogOutline
impl Freeze for LogOutline
impl Move for LogOutline
impl RefUnwindSafe for LogOutline
impl Send for LogOutline
impl Sync for LogOutline
impl Unpin for LogOutline
impl UnsafeUnpin for LogOutline
impl UnwindSafe for LogOutline
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.