Class NetworkInfo
- Namespace
- Concordium.Sdk.Types
- Assembly
- Concordium.Sdk.dll
The network information of a node.
public sealed record NetworkInfo : IEquatable<NetworkInfo>
- Inheritance
-
NetworkInfo
- Implements
- Inherited Members
Constructors
NetworkInfo(string, ulong, ulong, ulong, ulong)
The network information of a node.
public NetworkInfo(string NodeId, ulong PeerTotalSent, ulong PeerTotalReceived, ulong AvgBpsIn, ulong AvgBpsOut)
Parameters
NodeId
stringAn identifier which it uses to identify itself to other peers and it is used for logging purposes internally. NB. The NodeId is spoofable and as such should not serve as a trust instrument.
PeerTotalSent
ulongThe total amount of packets sent by the node.
PeerTotalReceived
ulongThe total amount of packets received by the node.
AvgBpsIn
ulongThe average bytes per second received by the node.
AvgBpsOut
ulongThe average bytes per second transmitted by the node.
Properties
AvgBpsIn
The average bytes per second received by the node.
public ulong AvgBpsIn { get; init; }
Property Value
AvgBpsOut
The average bytes per second transmitted by the node.
public ulong AvgBpsOut { get; init; }
Property Value
NodeId
An identifier which it uses to identify itself to other peers and it is used for logging purposes internally. NB. The NodeId is spoofable and as such should not serve as a trust instrument.
public string NodeId { get; init; }
Property Value
PeerTotalReceived
The total amount of packets received by the node.
public ulong PeerTotalReceived { get; init; }
Property Value
PeerTotalSent
The total amount of packets sent by the node.
public ulong PeerTotalSent { get; init; }