pub struct MetricsData {Show 22 fields
pub timestamp: u64,
pub requests_total: u64,
pub requests_successful: u64,
pub requests_failed: u64,
pub errors_total: u64,
pub memory_bytes: u64,
pub cpu_percent: f64,
pub active_connections: u64,
pub active_threads: u64,
pub authentication_operations: u64,
pub authentication_failures: u64,
pub downloads_total: u64,
pub downloads_completed: u64,
pub downloads_failed: u64,
pub downloads_bytes: u64,
pub indexing_operations: u64,
pub indexing_entries: u64,
pub updates_checked: u64,
pub updates_applied: u64,
pub latency_avg_ms: f64,
pub latency_min_ms: u64,
pub latency_max_ms: u64,
}Expand description
Structured metrics data for serialization
Fields§
§timestamp: u64§requests_total: u64§requests_successful: u64§requests_failed: u64§errors_total: u64§memory_bytes: u64§cpu_percent: f64§active_connections: u64§active_threads: u64§authentication_operations: u64§authentication_failures: u64§downloads_total: u64§downloads_completed: u64§downloads_failed: u64§downloads_bytes: u64§indexing_operations: u64§indexing_entries: u64§updates_checked: u64§updates_applied: u64§latency_avg_ms: f64§latency_min_ms: u64§latency_max_ms: u64Implementations§
Source§impl MetricsData
impl MetricsData
Sourcepub fn SuccessRate(&self) -> f64
pub fn SuccessRate(&self) -> f64
Calculate success rate as percentage
Sourcepub fn DownloadSuccessRate(&self) -> f64
pub fn DownloadSuccessRate(&self) -> f64
Calculate download success rate
Trait Implementations§
Source§impl Clone for MetricsData
impl Clone for MetricsData
Source§fn clone(&self) -> MetricsData
fn clone(&self) -> MetricsData
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 moreSource§impl Debug for MetricsData
impl Debug for MetricsData
Source§impl<'de> Deserialize<'de> for MetricsData
impl<'de> Deserialize<'de> for MetricsData
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 MetricsData
impl RefUnwindSafe for MetricsData
impl Send for MetricsData
impl Sync for MetricsData
impl Unpin for MetricsData
impl UnwindSafe for MetricsData
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> 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].