pub enum Event {
Show 18 variants
JobQueued {
job: JobSummary,
},
JobStarted {
job: JobSummary,
},
JobStep {
job: u64,
step: Step,
},
JobFinished {
job: JobSummary,
},
SlotChanged {
profile: String,
slot: SlotStatus,
},
ProfileChanged {
profile: ProfileStatus,
},
ProfileRemoved {
profile: String,
},
BudgetChanged {
budget: Budget,
},
RepositoryChanged {
repository: RepositoryStatus,
},
RepositoryRemoved {
repository: String,
},
CacheReseeded {
profile: String,
output: String,
error: Option<String>,
},
RecordCreated {
record: Record,
},
RecordDeleted {
job: u64,
removed_by: RecordRemoval,
},
SizingChanged {
change: SizingChange,
},
RunnerFailed {
failure: RunnerFailure,
},
JobSample {
job: u64,
sample: Sample,
},
HostSample {
sample: HostSample,
},
LogLine {
job: u64,
line: u64,
text: String,
},
}Expand description
Everything that happens, tagged by type.
Variants§
JobQueued
A job that runners of this daemon may run was queued.
Fields
job: JobSummaryThe job.
JobStarted
A runner of this daemon took the job.
Fields
job: JobSummaryThe job.
JobStep
A step of a running job started or completed.
JobFinished
The job’s record is final: it completed and its runner was removed, it was lost, or it ran elsewhere.
Fields
job: JobSummaryThe job.
SlotChanged
A slot’s runner started, took a job, or was removed.
ProfileChanged
The daemon started or a reload added the profile, a reload changed its image, CPUs, memory or slots, or it
started or stopped reseeding. A slot’s runner changing is slot.changed only; this event carries every slot as it is now, so a
client can replace the whole profile.
Fields
profile: ProfileStatusThe profile as it is now.
ProfileRemoved
A reload removed the profile and its last runner and reseed are gone.
BudgetChanged
The memory caps in use changed.
RepositoryChanged
A repository was paused or resumed, its queue changed, a reload changed its profile or labels, or a reload added it.
Fields
repository: RepositoryStatusThe repository as it is now.
RepositoryRemoved
A reload removed the repository from the config.
CacheReseeded
A profile’s snapshot check finished.
Fields
RecordCreated
A failed job’s runner was kept as a record.
RecordDeleted
A record was removed.
SizingChanged
Auto sizing wrote a profile’s new memory and slots into the config, and the daemon runs with them.
Fields
change: SizingChangeThe change.
RunnerFailed
A runner could not be registered or started, and its repository gets no runner for a while: once, until one of its runners takes a job again.
Fields
failure: RunnerFailureWhat failed.
JobSample
Live: a running job’s container was sampled.
HostSample
Live: the slice runners run in was sampled.
Fields
sample: HostSampleThe sample.
LogLine
Live: a line of a running job’s log was stored. Only sent with logs=true.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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.