pub struct HealthReport {
pub probe: HealthProbe,
pub endpoint: String,
pub path: String,
pub status_code: u16,
pub healthy: bool,
pub latency_ms: u64,
pub status: Option<String>,
pub service: Option<String>,
pub server_version: Option<String>,
}Expand description
Result returned for a completed HTTP health probe.
Fields§
§probe: HealthProbeProbe kind.
endpoint: StringConfigured service endpoint, without credentials.
path: StringProbe path used for the request.
status_code: u16HTTP status code returned by the service.
healthy: boolWhether the endpoint reported the requested health state.
latency_ms: u64Round-trip latency in milliseconds.
status: Option<String>Optional server-provided state such as ok or degraded.
service: Option<String>Optional server-provided service identity.
server_version: Option<String>Optional server-provided version.
Trait Implementations§
Source§impl Clone for HealthReport
impl Clone for HealthReport
Source§fn clone(&self) -> HealthReport
fn clone(&self) -> HealthReport
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 HealthReport
impl Debug for HealthReport
Source§impl<'de> Deserialize<'de> for HealthReport
impl<'de> Deserialize<'de> for HealthReport
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 HealthReport
Source§impl PartialEq for HealthReport
impl PartialEq for HealthReport
Source§impl Serialize for HealthReport
impl Serialize for HealthReport
impl StructuralPartialEq for HealthReport
Auto Trait Implementations§
impl Freeze for HealthReport
impl RefUnwindSafe for HealthReport
impl Send for HealthReport
impl Sync for HealthReport
impl Unpin for HealthReport
impl UnsafeUnpin for HealthReport
impl UnwindSafe for HealthReport
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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