package kaun-board

  1. Overview
  2. Docs
Training dashboard and logging for Raven

Install

dune-project
 Dependency

Authors

Maintainers

Sources

raven-1.0.0.alpha3.tbz
sha256=96d35ce03dfbebd2313657273e24c2e2d20f9e6c7825b8518b69bd1d6ed5870f
sha512=90c5053731d4108f37c19430e45456063e872b04b8a1bbad064c356e1b18e69222de8bfcf4ec14757e71f18164ec6e4630ba770dbcb1291665de5418827d1465

doc/kaun-board.sysstat/Sysstat/Net/index.html

Module Sysstat.NetSource

Network I/O statistics.

Sourcetype t = {
  1. bytes_rx : int64;
    (*

    Total bytes received.

    *)
  2. packets_rx : int64;
    (*

    Total packets received.

    *)
  3. bytes_tx : int64;
    (*

    Total bytes transmitted.

    *)
  4. packets_tx : int64;
    (*

    Total packets transmitted.

    *)
}

Cumulative network I/O counters since boot.

Aggregates all network interfaces except loopback. Counters are cumulative and monotonically increasing (until system reboot or counter overflow).

Sourcetype stats = {
  1. rx_bytes_per_sec : float;
    (*

    Receive rate in bytes per second.

    *)
  2. rx_packets_per_sec : float;
    (*

    Receive rate in packets per second.

    *)
  3. tx_bytes_per_sec : float;
    (*

    Transmit rate in bytes per second.

    *)
  4. tx_packets_per_sec : float;
    (*

    Transmit rate in packets per second.

    *)
}

Network I/O rates computed between two samples.

Sourceval sample : unit -> t

sample () returns cumulative network I/O counters.

  • raises Sys_error

    if network statistics are unavailable on the current platform or an error occurs during sampling.

Sourceval compute : prev:t -> next:t -> dt:float -> stats

compute ~prev ~next ~dt calculates network I/O rates between two samples.

Computes the delta for each counter and divides by dt to obtain rates per second. Negative deltas (e.g., from counter overflow or reboot) are treated as zero.