pub struct GlobalInfo {
pub server: Option<ServerSummary>,
pub sv2_clients: Option<Sv2ClientsSummary>,
pub sv1_clients: Option<Sv1ClientsSummary>,
pub uptime_secs: u64,
}Expand description
Global statistics from /api/v1/global endpoint
Fields are Option to distinguish “not monitored” (None) from “monitored but empty” (Some
with zeros).
Typical configurations:
- Pool/JDC:
serverandsv2_clientsareSome,sv1_clientsisNone - tProxy:
serverandsv1_clientsareSome,sv2_clientsisNone
Fields§
§server: Option<ServerSummary>Server (upstream) summary - None if server monitoring is not enabled
sv2_clients: Option<Sv2ClientsSummary>Sv2 clients (downstream) summary - None if Sv2 client monitoring is not enabled (e.g.,
tProxy)
sv1_clients: Option<Sv1ClientsSummary>Sv1 clients summary - None if Sv1 monitoring is not enabled (e.g., Pool/JDC)
uptime_secs: u64Uptime in seconds since the application started
Trait Implementations§
Source§impl Clone for GlobalInfo
impl Clone for GlobalInfo
Source§fn clone(&self) -> GlobalInfo
fn clone(&self) -> GlobalInfo
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 ComposeSchema for GlobalInfo
impl ComposeSchema for GlobalInfo
Source§impl Debug for GlobalInfo
impl Debug for GlobalInfo
Source§impl<'de> Deserialize<'de> for GlobalInfo
impl<'de> Deserialize<'de> for GlobalInfo
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
Source§impl Serialize for GlobalInfo
impl Serialize for GlobalInfo
Auto Trait Implementations§
impl Freeze for GlobalInfo
impl RefUnwindSafe for GlobalInfo
impl Send for GlobalInfo
impl Sync for GlobalInfo
impl Unpin for GlobalInfo
impl UnsafeUnpin for GlobalInfo
impl UnwindSafe for GlobalInfo
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