pub struct CollectionMaintenanceHealth {
pub phase: CollectionMaintenancePhase,
pub interval_ms: u64,
pub worker_alive: bool,
pub run_in_progress: bool,
pub successful_runs: u64,
pub failed_runs: u64,
pub skipped_runs: u64,
pub last_attempted_revision: Option<u64>,
pub last_successful_revision: Option<u64>,
pub last_error: Option<String>,
}Expand description
Point-in-time diagnostics for one maintenance schedule.
Fields§
§phase: CollectionMaintenancePhase§interval_ms: u64§worker_alive: bool§run_in_progress: bool§successful_runs: u64§failed_runs: u64§skipped_runs: u64§last_attempted_revision: Option<u64>§last_successful_revision: Option<u64>§last_error: Option<String>Implementations§
Source§impl CollectionMaintenanceHealth
impl CollectionMaintenanceHealth
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Returns true for a live non-degraded worker or a cleanly closed worker.
Trait Implementations§
Source§impl Clone for CollectionMaintenanceHealth
impl Clone for CollectionMaintenanceHealth
Source§impl Debug for CollectionMaintenanceHealth
impl Debug for CollectionMaintenanceHealth
Source§impl<'de> Deserialize<'de> for CollectionMaintenanceHealth
impl<'de> Deserialize<'de> for CollectionMaintenanceHealth
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
impl Eq for CollectionMaintenanceHealth
impl StructuralPartialEq for CollectionMaintenanceHealth
Auto Trait Implementations§
impl Freeze for CollectionMaintenanceHealth
impl RefUnwindSafe for CollectionMaintenanceHealth
impl Send for CollectionMaintenanceHealth
impl Sync for CollectionMaintenanceHealth
impl Unpin for CollectionMaintenanceHealth
impl UnsafeUnpin for CollectionMaintenanceHealth
impl UnwindSafe for CollectionMaintenanceHealth
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
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<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