pub struct HealthStatistics {
pub TotalServices: usize,
pub HealthyServices: usize,
pub DegradedServices: usize,
pub UnhealthyServices: usize,
pub TotalChecks: usize,
pub AverageResponseTimeMs: f64,
pub SuccessRate: f64,
}
Expand description
Health statistics
Fields§
§TotalServices:
usize§HealthyServices:
usize§DegradedServices:
usize§UnhealthyServices:
usize§TotalChecks:
usize§AverageResponseTimeMs:
f64§SuccessRate:
f64
Implementations§
Source§
impl
HealthStatistics
impl HealthStatistics
Source
pub fn
OverallHealthPercentage(&self) ->
f64
pub fn OverallHealthPercentage(&self) -> f64
Get overall health percentage
Trait Implementations§
Source§
impl
Clone
for
HealthStatistics
impl Clone for HealthStatistics
Source§
fn
clone(&self) ->
HealthStatistics
fn clone(&self) -> HealthStatistics
Returns a duplicate of the value.
Read more
1.0.0
·
Source§
fn
clone_from(&mut self, source:
&Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source.
Read more
Source§
impl
Debug
for
HealthStatistics
impl Debug for HealthStatistics
Source§
impl<'de>
Deserialize<'de> for
HealthStatistics
impl<'de> Deserialize<'de> for HealthStatistics
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 HealthStatistics
impl RefUnwindSafe for HealthStatistics
impl Send for HealthStatistics
impl Sync for HealthStatistics
impl Unpin for HealthStatistics
impl UnsafeUnpin for HealthStatistics
impl UnwindSafe for HealthStatistics
Blanket Implementations§
Source§
impl<T>
BorrowMut<T> for T
where T: ?Sized,
impl<T>
BorrowMut<T> for T
where 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 T
where T:
Clone,
impl<T>
CloneToUninit
for T
where T:
Clone,
§
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>
§
impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§
fn
into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in
a tonic::Request
§
impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§
fn
named_layer<S>(&self, service:
S) -> Layered<<L as
Layer<S>>::Service,
S>
where L: Layer<S>,
fn
named_layer<S>(&self, service:
S) -> Layered<<L as
Layer<S>>::Service,
S>
where L: Layer<S>,
Applies the layer to a service and wraps
it in [
Layered].