pub struct MetricSnapshotView {
pub last_seen_timestamp: i64,
pub session_connection_retry: u64,
pub connection_total_duration: f64,
pub session_connection_duration: f64,
pub session_connection_direction: String,
pub latency_ewma: i64,
pub reachability: String,
pub healthy: bool,
}Expand description
Per-peer connection metrics. Mirrors bee-go MetricSnapshotView.
Fields§
§last_seen_timestamp: i64Unix timestamp (seconds) of the most recent observation.
session_connection_retry: u64Connection retries within the current session.
connection_total_duration: f64Total time the peer has been connected over its lifetime, in fractional seconds.
session_connection_duration: f64Time the peer has been connected in the current session.
session_connection_direction: String"inbound" / "outbound" for the current session.
latency_ewma: i64Exponentially-weighted moving average latency (nanoseconds, the raw value Bee writes — divide by 1e6 for ms).
reachability: StringPer-peer reachability string ("Public", "Private",
"Unknown", etc.).
healthy: boolWhether the peer is currently considered healthy by the node-health subsystem.
Trait Implementations§
Source§impl Clone for MetricSnapshotView
impl Clone for MetricSnapshotView
Source§fn clone(&self) -> MetricSnapshotView
fn clone(&self) -> MetricSnapshotView
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 MetricSnapshotView
impl Debug for MetricSnapshotView
Source§impl Default for MetricSnapshotView
impl Default for MetricSnapshotView
Source§fn default() -> MetricSnapshotView
fn default() -> MetricSnapshotView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricSnapshotView
impl<'de> Deserialize<'de> for MetricSnapshotView
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 PartialEq for MetricSnapshotView
impl PartialEq for MetricSnapshotView
Source§fn eq(&self, other: &MetricSnapshotView) -> bool
fn eq(&self, other: &MetricSnapshotView) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MetricSnapshotView
Auto Trait Implementations§
impl Freeze for MetricSnapshotView
impl RefUnwindSafe for MetricSnapshotView
impl Send for MetricSnapshotView
impl Sync for MetricSnapshotView
impl Unpin for MetricSnapshotView
impl UnsafeUnpin for MetricSnapshotView
impl UnwindSafe for MetricSnapshotView
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