Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)Functions ¶
func GetUint32Diff ¶
GetUint32Diff returns the difference between newCount and oldCount and catches overflows
Types ¶
type ServerMetrics ¶
type ServerMetrics struct { // The number of total received transactions. Transactions atomic.Uint32 // The number of received transactions which are new. NewTransactions atomic.Uint32 // The number of received transactions which are already known. KnownTransactions atomic.Uint32 // The number of confirmed transactions. ConfirmedTransactions atomic.Uint32 // The number of received invalid transactions. InvalidTransactions atomic.Uint32 // The number of received invalid requests (both transactions and milestones). InvalidRequests atomic.Uint32 // The number of received transactions of which their timestamp is stale. StaleTransactions atomic.Uint32 // The number of received milestone requests. ReceivedMilestoneRequests atomic.Uint32 // The number of received transaction requests. ReceivedTransactionRequests atomic.Uint32 // The number of received heartbeats. ReceivedHeartbeats atomic.Uint32 // The number of sent transactions. SentTransactions atomic.Uint32 // The number of sent transaction requests. SentTransactionRequests atomic.Uint32 // The number of sent milestone requests. SentMilestoneRequests atomic.Uint32 // The number of sent heartbeats. SentHeartbeats atomic.Uint32 // The number of dropped messages. DroppedMessages atomic.Uint32 // The number of sent spam transactions. SentSpamTransactions atomic.Uint32 // The number of validated bundles. ValidatedBundles atomic.Uint32 // The number of seen spent addresses. SeenSpentAddresses atomic.Uint32 }
ServerMetrics defines metrics over the entire runtime of the node.
Click to show internal directories.
Click to hide internal directories.