pub struct NodeMetrics { /* private fields */ }
Expand description
Holds metrics related to a node.
Implementations§
Source§impl NodeMetrics
impl NodeMetrics
Source§impl NodeMetrics
impl NodeMetrics
Sourcepub fn invalid_packets(&self) -> u64
pub fn invalid_packets(&self) -> u64
Returns the number of invalid packets of the NodeMetrics
.
Sourcepub fn invalid_packets_inc(&self) -> u64
pub fn invalid_packets_inc(&self) -> u64
Increments the number of invalid packets of the NodeMetrics
.
Sourcepub fn milestone_requests_received(&self) -> u64
pub fn milestone_requests_received(&self) -> u64
Returns the number of received milestone requests of the NodeMetrics
.
Sourcepub fn milestone_requests_received_inc(&self) -> u64
pub fn milestone_requests_received_inc(&self) -> u64
Increments the number of received milestone requests of the NodeMetrics
.
Sourcepub fn messages_received(&self) -> u64
pub fn messages_received(&self) -> u64
Returns the number of received messages of the NodeMetrics
.
Sourcepub fn messages_received_inc(&self) -> u64
pub fn messages_received_inc(&self) -> u64
Increments the number of received messages of the NodeMetrics
.
Sourcepub fn message_requests_received(&self) -> u64
pub fn message_requests_received(&self) -> u64
Returns the number of received message requests of the NodeMetrics
.
Sourcepub fn message_requests_received_inc(&self) -> u64
pub fn message_requests_received_inc(&self) -> u64
Increments the number of received message requests of the NodeMetrics
.
Sourcepub fn heartbeats_received(&self) -> u64
pub fn heartbeats_received(&self) -> u64
Returns the number of received heartbeats of the NodeMetrics
.
Sourcepub fn heartbeats_received_inc(&self) -> u64
pub fn heartbeats_received_inc(&self) -> u64
Increments the number of received heartbeats of the NodeMetrics
.
Sourcepub fn milestone_requests_sent(&self) -> u64
pub fn milestone_requests_sent(&self) -> u64
Returns the number of sent milestone requests of the NodeMetrics
.
Sourcepub fn milestone_requests_sent_inc(&self) -> u64
pub fn milestone_requests_sent_inc(&self) -> u64
Increments the number of sent milestone requests of the NodeMetrics
.
Sourcepub fn messages_sent(&self) -> u64
pub fn messages_sent(&self) -> u64
Returns the number of sent messages of the NodeMetrics
.
Sourcepub fn messages_sent_inc(&self) -> u64
pub fn messages_sent_inc(&self) -> u64
Increments the number of sent messages of the NodeMetrics
.
Sourcepub fn message_requests_sent(&self) -> u64
pub fn message_requests_sent(&self) -> u64
Returns the number of sent message requests of the NodeMetrics
.
Sourcepub fn message_requests_sent_inc(&self) -> u64
pub fn message_requests_sent_inc(&self) -> u64
Increments the number of sent message requests of the NodeMetrics
.
Sourcepub fn heartbeats_sent(&self) -> u64
pub fn heartbeats_sent(&self) -> u64
Returns the number of sent heartbeats of the NodeMetrics
.
Sourcepub fn heartbeats_sent_inc(&self) -> u64
pub fn heartbeats_sent_inc(&self) -> u64
Increments the number of sent heartbeats of the NodeMetrics
.
Sourcepub fn invalid_messages(&self) -> u64
pub fn invalid_messages(&self) -> u64
Returns the number of invalid messages of the NodeMetrics
.
Sourcepub fn invalid_messages_inc(&self) -> u64
pub fn invalid_messages_inc(&self) -> u64
Increments the number of invalid messages of the NodeMetrics
.
Sourcepub fn new_messages(&self) -> u64
pub fn new_messages(&self) -> u64
Returns the number of new messages of the NodeMetrics
.
Sourcepub fn new_messages_inc(&self) -> u64
pub fn new_messages_inc(&self) -> u64
Increments the number of new messages of the NodeMetrics
.
Sourcepub fn known_messages(&self) -> u64
pub fn known_messages(&self) -> u64
Returns the number of known messages of the NodeMetrics
.
Sourcepub fn known_messages_inc(&self) -> u64
pub fn known_messages_inc(&self) -> u64
Increments the number of known messages of the NodeMetrics
.
Sourcepub fn messages_average_latency(&self) -> u64
pub fn messages_average_latency(&self) -> u64
Returns the average messages latency of the NodeMetrics
.
Sourcepub fn messages_average_latency_set(&self, val: u64)
pub fn messages_average_latency_set(&self, val: u64)
Sets the average messages latency of the NodeMetrics
Sourcepub fn referenced_messages(&self) -> u64
pub fn referenced_messages(&self) -> u64
Returns the number of referenced messages of the NodeMetrics
.
Sourcepub fn referenced_messages_inc(&self, value: u64) -> u64
pub fn referenced_messages_inc(&self, value: u64) -> u64
Increments the number of referenced messages of the NodeMetrics
.
Sourcepub fn excluded_no_transaction_messages(&self) -> u64
pub fn excluded_no_transaction_messages(&self) -> u64
Returns the number of excluded messages - because without transaction - of the NodeMetrics
.
Sourcepub fn excluded_no_transaction_messages_inc(&self, value: u64) -> u64
pub fn excluded_no_transaction_messages_inc(&self, value: u64) -> u64
Increments the number of excluded messages - because without transaction - of the NodeMetrics
.
Sourcepub fn excluded_conflicting_messages(&self) -> u64
pub fn excluded_conflicting_messages(&self) -> u64
Returns the number of excluded messages - because conflicting - of the NodeMetrics
.
Sourcepub fn excluded_conflicting_messages_inc(&self, value: u64) -> u64
pub fn excluded_conflicting_messages_inc(&self, value: u64) -> u64
Increments the number of excluded messages - because conflicting - of the NodeMetrics
.
Sourcepub fn included_messages(&self) -> u64
pub fn included_messages(&self) -> u64
Returns the number of included messages of the NodeMetrics
.
Sourcepub fn included_messages_inc(&self, value: u64) -> u64
pub fn included_messages_inc(&self, value: u64) -> u64
Increments the number of included messages of the NodeMetrics
.
Sourcepub fn created_outputs(&self) -> u64
pub fn created_outputs(&self) -> u64
Returns the number of created outputs of the NodeMetrics
.
Sourcepub fn created_outputs_inc(&self, value: u64) -> u64
pub fn created_outputs_inc(&self, value: u64) -> u64
Increments the number of created outputs of the NodeMetrics
.
Sourcepub fn consumed_outputs(&self) -> u64
pub fn consumed_outputs(&self) -> u64
Returns the number of consumed outputs of the NodeMetrics
.
Sourcepub fn consumed_outputs_inc(&self, value: u64) -> u64
pub fn consumed_outputs_inc(&self, value: u64) -> u64
Increments the number of consumed outputs of the NodeMetrics
.
Sourcepub fn receipts_inc(&self, value: u64) -> u64
pub fn receipts_inc(&self, value: u64) -> u64
Increments the number of receipts of the NodeMetrics
.
Sourcepub fn transaction_payloads(&self) -> u64
pub fn transaction_payloads(&self) -> u64
Returns the number of transaction payloads of the NodeMetrics
.
Sourcepub fn transaction_payloads_inc(&self, value: u64) -> u64
pub fn transaction_payloads_inc(&self, value: u64) -> u64
Increments the number of transaction payloads of the NodeMetrics
.
Sourcepub fn milestone_payloads(&self) -> u64
pub fn milestone_payloads(&self) -> u64
Returns the number of milestone payloads of the NodeMetrics
.
Sourcepub fn milestone_payloads_inc(&self, value: u64) -> u64
pub fn milestone_payloads_inc(&self, value: u64) -> u64
Increments the number of milestone payloads of the NodeMetrics
.
Sourcepub fn indexation_payloads(&self) -> u64
pub fn indexation_payloads(&self) -> u64
Returns the number of indexation payloads of the NodeMetrics
.
Sourcepub fn indexation_payload_inc(&self, value: u64) -> u64
pub fn indexation_payload_inc(&self, value: u64) -> u64
Increments the number of indexation payloads of the NodeMetrics
.
Sourcepub fn snapshots_inc(&self, value: u64) -> u64
pub fn snapshots_inc(&self, value: u64) -> u64
Increments the number of snapshots of the NodeMetrics
.
Sourcepub fn prunings_inc(&self, value: u64) -> u64
pub fn prunings_inc(&self, value: u64) -> u64
Increments the number of prunings of the NodeMetrics
.
Trait Implementations§
Source§impl Debug for NodeMetrics
impl Debug for NodeMetrics
Source§impl Default for NodeMetrics
impl Default for NodeMetrics
Source§fn default() -> NodeMetrics
fn default() -> NodeMetrics
Auto Trait Implementations§
impl !Freeze for NodeMetrics
impl RefUnwindSafe for NodeMetrics
impl Send for NodeMetrics
impl Sync for NodeMetrics
impl Unpin for NodeMetrics
impl UnwindSafe for NodeMetrics
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more