pub struct FleetReport {
pub migrated: usize,
pub unresolved: Vec<Uuid>,
pub quarantined: Vec<(Uuid, String)>,
pub unpublished: Vec<(Uuid, String)>,
}Fields§
§migrated: usize§unresolved: Vec<Uuid>Tenants this run could not verify because another worker held the claim.
quarantined: Vec<(Uuid, String)>§unpublished: Vec<(Uuid, String)>Tenants whose verdict could not be written to the directory. The dangerous case: a tenant that failed but whose quarantine did not stick is still being served.
Implementations§
Source§impl FleetReport
impl FleetReport
Sourcepub const fn is_healthy(&self) -> bool
pub const fn is_healthy(&self) -> bool
Whether every tenant was accounted for.
A quarantined tenant does not stop the fleet — that is the whole point of quarantine — but it does mean this run left work undone, and the exit code is what a deployment gate reads. Unresolved and unpublished tenants count too: in both cases the run finished without knowing, or without recording, the state of a customer’s database.
pub fn summary(&self) -> String
Trait Implementations§
Source§impl Debug for FleetReport
impl Debug for FleetReport
Source§impl Default for FleetReport
impl Default for FleetReport
Source§fn default() -> FleetReport
fn default() -> FleetReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FleetReport
impl RefUnwindSafe for FleetReport
impl Send for FleetReport
impl Sync for FleetReport
impl Unpin for FleetReport
impl UnsafeUnpin for FleetReport
impl UnwindSafe for FleetReport
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more