pub struct WorkspaceStats {
pub total_requests: u64,
pub active_routes: usize,
pub last_request_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub avg_response_time_ms: f64,
}
Expand description
Statistics for a tenant workspace
Fields§
§total_requests: u64
Total number of requests handled
active_routes: usize
Total number of active routes
last_request_at: Option<DateTime<Utc>>
Last request timestamp
created_at: DateTime<Utc>
Created at timestamp
avg_response_time_ms: f64
Average response time in milliseconds
Trait Implementations§
Source§impl Clone for WorkspaceStats
impl Clone for WorkspaceStats
Source§fn clone(&self) -> WorkspaceStats
fn clone(&self) -> WorkspaceStats
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 WorkspaceStats
impl Debug for WorkspaceStats
Source§impl Default for WorkspaceStats
impl Default for WorkspaceStats
Source§impl<'de> Deserialize<'de> for WorkspaceStats
impl<'de> Deserialize<'de> for WorkspaceStats
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 WorkspaceStats
impl RefUnwindSafe for WorkspaceStats
impl Send for WorkspaceStats
impl Sync for WorkspaceStats
impl Unpin for WorkspaceStats
impl UnwindSafe for WorkspaceStats
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