pub struct RuntimeCounters {
pub requests_total: BTreeMap<String, BTreeMap<String, u64>>,
pub pulled_bytes_total: u64,
pub pulled_objects_total: BTreeMap<String, u64>,
pub pull_failures_total: BTreeMap<String, u64>,
pub source_latency: Option<SourceLatency>,
}Expand description
Per-node runtime counters. The nested maps keep the outcome and path labels open-ended so a new label on the server displays instead of failing.
Fields§
§requests_total: BTreeMap<String, BTreeMap<String, u64>>Operation (get, head) to outcome (source_hit, source_miss, …) to count.
pulled_bytes_total: u64§pulled_objects_total: BTreeMap<String, u64>Pull path (inline, background, backfill) to count.
pull_failures_total: BTreeMap<String, u64>Failure class to count.
source_latency: Option<SourceLatency>Trait Implementations§
Source§impl Clone for RuntimeCounters
impl Clone for RuntimeCounters
Source§fn clone(&self) -> RuntimeCounters
fn clone(&self) -> RuntimeCounters
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 RuntimeCounters
impl Debug for RuntimeCounters
Source§impl Default for RuntimeCounters
impl Default for RuntimeCounters
Source§fn default() -> RuntimeCounters
fn default() -> RuntimeCounters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeCounters
impl<'de> Deserialize<'de> for RuntimeCounters
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 RuntimeCounters
Source§impl PartialEq for RuntimeCounters
impl PartialEq for RuntimeCounters
Source§impl Serialize for RuntimeCounters
impl Serialize for RuntimeCounters
impl StructuralPartialEq for RuntimeCounters
Auto Trait Implementations§
impl Freeze for RuntimeCounters
impl RefUnwindSafe for RuntimeCounters
impl Send for RuntimeCounters
impl Sync for RuntimeCounters
impl Unpin for RuntimeCounters
impl UnsafeUnpin for RuntimeCounters
impl UnwindSafe for RuntimeCounters
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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