pub struct Status {
pub version: String,
pub shutting_down: bool,
pub budget: Budget,
pub profiles: Vec<ProfileStatus>,
pub repositories: Vec<RepositoryStatus>,
pub queued: Vec<QueuedJob>,
}Expand description
GET /v1/status: what the daemon serves and runs right now.
Fields§
§version: StringThe daemon’s version, from its Cargo.toml.
shutting_down: boolSet once the daemon stops polling to shut down.
budget: BudgetThe memory budget and what runners use of it.
profiles: Vec<ProfileStatus>Every configured profile with its slots.
repositories: Vec<RepositoryStatus>Every configured repository.
queued: Vec<QueuedJob>Queued jobs the repositories’ runners can take and none holds yet, at the last poll, oldest first. No event
carries the list: job.queued announces a job, job.started and job.finished its leaving the queue.
A repository whose last listing failed, as while GitHub rate-limits runnerd, or that is no longer polled
because runnerd is shutting down, shows no jobs here, while the history keeps its jobs queued.
Implementations§
Source§impl Status
impl Status
Sourcepub fn budget_parts(&self) -> BudgetParts
pub fn budget_parts(&self) -> BudgetParts
The budget as a bar draws it: a block per slot as large as its cap (under measured admission, a block per runner as large as what it reserves), the mirror, seed containers and shells, then what is free and what of the room no runner may start in; and the whole the blocks are scaled against.
Source§impl Status
impl Status
Sourcepub fn slot_state(profile: &ProfileStatus, slot: &SlotStatus) -> SlotState
pub fn slot_state(profile: &ProfileStatus, slot: &SlotStatus) -> SlotState
What slot of profile is doing: its runner’s state as the daemon reports it, or for a free slot, whether its
profile reseeds into it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
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 Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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.