pub struct CommerceHealth {
pub healthy: bool,
pub backend: CommerceBackend,
pub database_reachable: bool,
pub database_error: Option<String>,
pub metrics: MetricsSnapshot,
pub event_subscribers: usize,
pub checked_at: DateTime<Utc>,
}Expand description
Runtime health status for a Commerce engine instance.
Fields§
§healthy: boolWhether the engine is healthy at the time of the check.
backend: CommerceBackendActive database backend.
database_reachable: boolWhether a basic database probe succeeded.
database_error: Option<String>Error details from the last database probe, if any.
metrics: MetricsSnapshotPoint-in-time metrics snapshot.
event_subscribers: usizeAvailable on crate feature
events only.Number of active event subscribers (when events is enabled).
checked_at: DateTime<Utc>Check timestamp in UTC.
Trait Implementations§
Source§impl Clone for CommerceHealth
impl Clone for CommerceHealth
Source§fn clone(&self) -> CommerceHealth
fn clone(&self) -> CommerceHealth
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 moreAuto Trait Implementations§
impl Freeze for CommerceHealth
impl RefUnwindSafe for CommerceHealth
impl Send for CommerceHealth
impl Sync for CommerceHealth
impl Unpin for CommerceHealth
impl UnsafeUnpin for CommerceHealth
impl UnwindSafe for CommerceHealth
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