pub struct ServerStats {
pub name: String,
pub metrics: Vec<i64>,
}Expand description
Per-datastore-server collected metrics.
§Examples
use dynomite::stats::ServerStats;
let s = ServerStats::new("redis_local");
assert_eq!(s.name, "redis_local");Fields§
§name: StringServer name (the host name from the YAML).
metrics: Vec<i64>Counter/gauge values, indexed by ServerField::index().
Implementations§
Trait Implementations§
Source§impl Clone for ServerStats
impl Clone for ServerStats
Source§fn clone(&self) -> ServerStats
fn clone(&self) -> ServerStats
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 ServerStats
impl Debug for ServerStats
Auto Trait Implementations§
impl Freeze for ServerStats
impl RefUnwindSafe for ServerStats
impl Send for ServerStats
impl Sync for ServerStats
impl Unpin for ServerStats
impl UnsafeUnpin for ServerStats
impl UnwindSafe for ServerStats
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