pub enum QueueGauge {
ClientOut,
ServerIn,
ServerOut,
DnodeClientOut,
PeerIn,
PeerOut,
RemotePeerIn,
RemotePeerOut,
}Expand description
Channels used for queue-length observations (observed at sample time, not events).
§Examples
use dynomite::stats::QueueGauge;
// Each variant is distinct so the dispatch in `record_queue_len`
// routes to a unique histogram.
let all = [
QueueGauge::ClientOut,
QueueGauge::ServerIn,
QueueGauge::ServerOut,
QueueGauge::DnodeClientOut,
QueueGauge::PeerIn,
QueueGauge::PeerOut,
QueueGauge::RemotePeerIn,
QueueGauge::RemotePeerOut,
];
for (i, lhs) in all.iter().enumerate() {
for rhs in &all[i + 1..] {
assert_ne!(lhs, rhs);
}
}Variants§
ClientOut
Client out-queue length.
ServerIn
Server in-queue length.
ServerOut
Server out-queue length.
DnodeClientOut
Dnode client out-queue length.
PeerIn
Local-DC peer in-queue length.
PeerOut
Local-DC peer out-queue length.
RemotePeerIn
Remote-DC peer in-queue length.
RemotePeerOut
Remote-DC peer out-queue length.
Trait Implementations§
Source§impl Clone for QueueGauge
impl Clone for QueueGauge
Source§fn clone(&self) -> QueueGauge
fn clone(&self) -> QueueGauge
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 QueueGauge
impl Debug for QueueGauge
Source§impl PartialEq for QueueGauge
impl PartialEq for QueueGauge
Source§fn eq(&self, other: &QueueGauge) -> bool
fn eq(&self, other: &QueueGauge) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for QueueGauge
impl Eq for QueueGauge
impl StructuralPartialEq for QueueGauge
Auto Trait Implementations§
impl Freeze for QueueGauge
impl RefUnwindSafe for QueueGauge
impl Send for QueueGauge
impl Sync for QueueGauge
impl Unpin for QueueGauge
impl UnsafeUnpin for QueueGauge
impl UnwindSafe for QueueGauge
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.