pub struct StatsSnapshot {
pub requests_total: u64,
pub requests_ok: u64,
pub requests_error: u64,
pub pools: Vec<PoolSnapshot>,
}Expand description
A single proxy instance’s operational snapshot. Per-instance by definition; the fleet rollup is the external aggregator’s job. Safe to serve unauthenticated, it is shape-only.
Fields§
§requests_total: u64Data-plane requests served since start.
requests_ok: u64Of those, how many responded 2xx.
requests_error: u64Of those, how many responded with an error status.
pools: Vec<PoolSnapshot>Per-cluster upstream pool reuse counters.
Implementations§
Trait Implementations§
Source§impl Clone for StatsSnapshot
impl Clone for StatsSnapshot
Source§fn clone(&self) -> StatsSnapshot
fn clone(&self) -> StatsSnapshot
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 Debug for StatsSnapshot
impl Debug for StatsSnapshot
Source§impl<'de> Deserialize<'de> for StatsSnapshot
impl<'de> Deserialize<'de> for StatsSnapshot
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
impl Eq for StatsSnapshot
Source§impl PartialEq for StatsSnapshot
impl PartialEq for StatsSnapshot
Source§fn eq(&self, other: &StatsSnapshot) -> bool
fn eq(&self, other: &StatsSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StatsSnapshot
impl Serialize for StatsSnapshot
impl StructuralPartialEq for StatsSnapshot
Auto Trait Implementations§
impl Freeze for StatsSnapshot
impl RefUnwindSafe for StatsSnapshot
impl Send for StatsSnapshot
impl Sync for StatsSnapshot
impl Unpin for StatsSnapshot
impl UnsafeUnpin for StatsSnapshot
impl UnwindSafe for StatsSnapshot
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