pub struct Metrics {Show 17 fields
pub source: String,
pub connected: bool,
pub validations: u64,
pub out_of_window: u64,
pub rejected: u64,
pub disconnects: u64,
pub last_validation_ms: u64,
pub network_ledger: u32,
pub sealed: u64,
pub last_seal_ms: u64,
pub last_seal_missing: u64,
pub missing_ledgers: u64,
pub archive_bytes: u64,
pub journal_bytes: u64,
pub manifests_stored: u64,
pub unl_dir: Option<PathBuf>,
pub(crate) validators: HashMap<String, u32>,
}Fields§
§source: String§connected: bool§validations: u64§out_of_window: u64§rejected: u64§disconnects: u64§last_validation_ms: u64§network_ledger: u32The network’s current ledger, from the stream median.
sealed: u64§last_seal_ms: u64§last_seal_missing: u64§missing_ledgers: u64Missing ledgers across all seals since the process started.
archive_bytes: u64§journal_bytes: u64§manifests_stored: u64§unl_dir: Option<PathBuf>Directory of the UNL list collector, if it runs on this machine.
validators: HashMap<String, u32>Validator key -> last ledger it sent a validation for.
Implementations§
Source§impl Metrics
impl Metrics
pub fn saw_validator(&mut self, key: &str, ledger: u32)
Sourcepub fn active_validators(&self) -> usize
pub fn active_validators(&self) -> usize
How many distinct validators sent validations over the last few ledgers.
pub fn forget_silent(&mut self)
pub fn render(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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