pub struct WorkersHealth {
pub healthy: bool,
pub active_count: i64,
pub worker_groups: Vec<String>,
pub min_version: String,
pub versions: Vec<String>,
pub job_isolation: Vec<JobIsolation>,
pub workers_without_isolation: i64,
}Expand description
WorkersHealth : Workers health status
Fields§
§healthy: boolWhether any workers are active
active_count: i64Number of active workers (pinged in last 5 minutes)
worker_groups: Vec<String>List of active worker groups
min_version: StringMinimum required worker version
versions: Vec<String>List of active worker versions
job_isolation: Vec<JobIsolation>Distinct job isolation modes reported by live workers. nsjail means the worker both asked for nsjail sandboxing and has a working nsjail binary; unshare is PID-namespace isolation only; none means jobs run with no process isolation; unknown is a worker that reported no mode. Sorted for stability across polls.
workers_without_isolation: i64Number of live workers running with no process isolation (reported none, or nothing at all).
Implementations§
Trait Implementations§
Source§impl Clone for WorkersHealth
impl Clone for WorkersHealth
Source§fn clone(&self) -> WorkersHealth
fn clone(&self) -> WorkersHealth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkersHealth
impl Debug for WorkersHealth
Source§impl Default for WorkersHealth
impl Default for WorkersHealth
Source§fn default() -> WorkersHealth
fn default() -> WorkersHealth
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkersHealth
impl<'de> Deserialize<'de> for WorkersHealth
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkersHealth
impl PartialEq for WorkersHealth
Source§impl Serialize for WorkersHealth
impl Serialize for WorkersHealth
impl StructuralPartialEq for WorkersHealth
Auto Trait Implementations§
impl Freeze for WorkersHealth
impl RefUnwindSafe for WorkersHealth
impl Send for WorkersHealth
impl Sync for WorkersHealth
impl Unpin for WorkersHealth
impl UnsafeUnpin for WorkersHealth
impl UnwindSafe for WorkersHealth
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
Mutably borrows from an owned value. Read more