pub struct PrintRecord {
pub end_reason: Option<String>,
pub ended_at: Option<Timestamp>,
pub file_name: Option<String>,
pub id: PrintId,
pub job_print_time_s: Option<i64>,
pub job_started_at: Option<Timestamp>,
pub narrowings: Vec<ManifestNarrowing>,
pub opened_at: Timestamp,
pub provider_print_id: Option<i64>,
pub state: PrinterState,
}Expand description
One print, and the record supervision keys from.
The provider’s own print id is carried beside this record’s identifier rather than as it, because a print may be observed before the provider that reports it has one.
Fields§
§end_reason: Option<String>Why it ended, if it has.
ended_at: Option<Timestamp>When it ended, if it has.
file_name: Option<String>The file being printed, as the source reported it.
id: PrintIdThis print’s identifier, minted by the store.
job_print_time_s: Option<i64>The longest running time, in whole seconds, the printer reported for this print’s job at a read that found it printing rather than paused.
The time a job has spent printing only grows, pause or no pause, so a
job of this print’s file reporting less — by more than
listing::JOB_IDENTITY_TOLERANCE_S — is a later job. Absent until a
read finds the job printing.
job_started_at: Option<Timestamp>When the printer’s job this print records began, as the printer’s own running time put it at the latest read that found the job running or paused: the instant of that read, less the running time it reported.
OctoPrint counts a pause into the running time until the job resumes
and then takes the pause back out, so a pause moves this later: a read
putting it further than listing::JOB_IDENTITY_TOLERANCE_S from the
one
recorded resets it, rather than it being fixed once. Absent when no
read has
found this print’s job reporting a running time — a print opened by an
alert or a start before any read, and every print recorded before this
was.
narrowings: Vec<ManifestNarrowing>Every manifest range this print narrowed to the envelope’s.
opened_at: TimestampWhen the print was opened.
provider_print_id: Option<i64>The provider’s own identifier for the print, whichever provider reported it, when one has.
state: PrinterStateThe state the print is in.