View Source Wireguardex.PeerStats (Wireguardex v0.3.0)

PeerStats represent a peer's statistics from the current session.

These are the attributes of a peer that will change over time; to get updated stats re-read the information from the interface.

  • last_handshake_time Timestamp of the last handshake/rekey with this peer.
  • rx_bytes Number of bytes received from this peer.
  • tx_bytes Number of bytes transmitted to this peer.

Link to this section Summary

Link to this section Types

@type t() :: %Wireguardex.PeerStats{
  last_handshake_time: term(),
  rx_bytes: term(),
  tx_bytes: term()
}