asimov-protocol 25.3.4

ASIMOV Software Development Kit (SDK) for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This is free and unencumbered software released into the public domain.

use iroh_metrics::{Counter, MetricsGroup};

/// Metrics for the node protocol.
#[derive(Debug, Default, MetricsGroup)]
#[metrics(name = "ping")]
pub struct NodeMetrics {
    /// The count of valid ping messages sent.
    pub pings_sent: Counter,

    /// The count of valid ping messages received.
    pub pings_recv: Counter,
}