pub struct Health {
pub status: String,
pub components: BTreeMap<String, ComponentHealth>,
pub dependencies: BTreeMap<String, String>,
pub circuit_breakers: BTreeMap<String, String>,
pub risk: RiskSummary,
pub recovery: Option<RecoveryStatus>,
pub ws_connections: u64,
}Expand description
Response shape of GET /health — unauthenticated.
Fields§
§status: String"ok" or "degraded".
components: BTreeMap<String, ComponentHealth>§dependencies: BTreeMap<String, String>§circuit_breakers: BTreeMap<String, String>§risk: RiskSummary§recovery: Option<RecoveryStatus>§ws_connections: u64Implementations§
Source§impl Health
impl Health
pub fn is_ok(&self) -> bool
pub fn component_counts(&self) -> ComponentCounts
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Health
impl<'de> Deserialize<'de> for Health
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
Auto Trait Implementations§
impl Freeze for Health
impl RefUnwindSafe for Health
impl Send for Health
impl Sync for Health
impl Unpin for Health
impl UnsafeUnpin for Health
impl UnwindSafe for Health
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