pub struct ServiceLoadMetrics {
pub active_requests: u32,
pub requests_per_second: f64,
pub avg_response_time_ms: f64,
pub error_rate: f64,
pub cpu_usage: f64,
pub memory_usage: u64,
}
Expand description
Service load metrics
Fields§
§active_requests: u32
Current active requests
requests_per_second: f64
Requests per second
avg_response_time_ms: f64
Average response time in milliseconds
error_rate: f64
Error rate (0.0-1.0)
cpu_usage: f64
CPU usage percentage
memory_usage: u64
Memory usage in bytes
Trait Implementations§
Source§impl Clone for ServiceLoadMetrics
impl Clone for ServiceLoadMetrics
Source§fn clone(&self) -> ServiceLoadMetrics
fn clone(&self) -> ServiceLoadMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ServiceLoadMetrics
impl Debug for ServiceLoadMetrics
Source§impl<'de> Deserialize<'de> for ServiceLoadMetrics
impl<'de> Deserialize<'de> for ServiceLoadMetrics
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 ServiceLoadMetrics
impl RefUnwindSafe for ServiceLoadMetrics
impl Send for ServiceLoadMetrics
impl Sync for ServiceLoadMetrics
impl Unpin for ServiceLoadMetrics
impl UnwindSafe for ServiceLoadMetrics
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