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 blocks_received(&self) -> u64
pub fn blocks_received(&self) -> u64
Returns the number of received blocks of the NodeMetrics.
Sourcepub fn blocks_received_inc(&self) -> u64
pub fn blocks_received_inc(&self) -> u64
Increments the number of received blocks of the NodeMetrics.
Sourcepub fn block_requests_received(&self) -> u64
pub fn block_requests_received(&self) -> u64
Returns the number of received block requests of the NodeMetrics.
Sourcepub fn block_requests_received_inc(&self) -> u64
pub fn block_requests_received_inc(&self) -> u64
Increments the number of received block 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 blocks_sent(&self) -> u64
pub fn blocks_sent(&self) -> u64
Returns the number of sent blocks of the NodeMetrics.
Sourcepub fn blocks_sent_inc(&self) -> u64
pub fn blocks_sent_inc(&self) -> u64
Increments the number of sent blocks of the NodeMetrics.
Sourcepub fn block_requests_sent(&self) -> u64
pub fn block_requests_sent(&self) -> u64
Returns the number of sent block requests of the NodeMetrics.
Sourcepub fn block_requests_sent_inc(&self) -> u64
pub fn block_requests_sent_inc(&self) -> u64
Increments the number of sent block 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_blocks(&self) -> u64
pub fn invalid_blocks(&self) -> u64
Returns the number of invalid blocks of the NodeMetrics.
Sourcepub fn invalid_blocks_inc(&self) -> u64
pub fn invalid_blocks_inc(&self) -> u64
Increments the number of invalid blocks of the NodeMetrics.
Sourcepub fn new_blocks(&self) -> u64
pub fn new_blocks(&self) -> u64
Returns the number of new blocks of the NodeMetrics.
Sourcepub fn new_blocks_inc(&self) -> u64
pub fn new_blocks_inc(&self) -> u64
Increments the number of new blocks of the NodeMetrics.
Sourcepub fn known_blocks(&self) -> u64
pub fn known_blocks(&self) -> u64
Returns the number of known blocks of the NodeMetrics.
Sourcepub fn known_blocks_inc(&self) -> u64
pub fn known_blocks_inc(&self) -> u64
Increments the number of known blocks of the NodeMetrics.
Sourcepub fn blocks_average_latency(&self) -> u64
pub fn blocks_average_latency(&self) -> u64
Returns the average blocks latency of the NodeMetrics.
Sourcepub fn blocks_average_latency_set(&self, val: u64)
pub fn blocks_average_latency_set(&self, val: u64)
Sets the average blocks latency of the NodeMetrics
Sourcepub fn referenced_blocks(&self) -> u64
pub fn referenced_blocks(&self) -> u64
Returns the number of referenced blocks of the NodeMetrics.
Sourcepub fn referenced_blocks_inc(&self, value: u64) -> u64
pub fn referenced_blocks_inc(&self, value: u64) -> u64
Increments the number of referenced blocks of the NodeMetrics.
Sourcepub fn excluded_no_transaction_blocks(&self) -> u64
pub fn excluded_no_transaction_blocks(&self) -> u64
Returns the number of excluded blocks - because without transaction - of the NodeMetrics.
Sourcepub fn excluded_no_transaction_blocks_inc(&self, value: u64) -> u64
pub fn excluded_no_transaction_blocks_inc(&self, value: u64) -> u64
Increments the number of excluded blocks - because without transaction - of the NodeMetrics.
Sourcepub fn excluded_conflicting_blocks(&self) -> u64
pub fn excluded_conflicting_blocks(&self) -> u64
Returns the number of excluded blocks - because conflicting - of the NodeMetrics.
Sourcepub fn excluded_conflicting_blocks_inc(&self, value: u64) -> u64
pub fn excluded_conflicting_blocks_inc(&self, value: u64) -> u64
Increments the number of excluded blocks - because conflicting - of the NodeMetrics.
Sourcepub fn included_blocks(&self) -> u64
pub fn included_blocks(&self) -> u64
Returns the number of included blocks of the NodeMetrics.
Sourcepub fn included_blocks_inc(&self, value: u64) -> u64
pub fn included_blocks_inc(&self, value: u64) -> u64
Increments the number of included blocks 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 tagged_data_payloads(&self) -> u64
pub fn tagged_data_payloads(&self) -> u64
Returns the number of tagged data payloads of the NodeMetrics.
Sourcepub fn tagged_data_payload_inc(&self, value: u64) -> u64
pub fn tagged_data_payload_inc(&self, value: u64) -> u64
Increments the number of tagged data 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.