-
Notifications
You must be signed in to change notification settings - Fork 3
Standard Library
Kyle MacMillan edited this page Jun 12, 2022
·
4 revisions
Netrics comes with a "standard library" of modules to facilitate basic network measurement.
std-ping
sends ICMP pings to a set of destinations and returns the min, avg, max, and standard deviation of the RTTs, as well as any packet loss. Uses the built-in ping
utility from the iputils
package.
-
targets: A list of hostnames to be pinged. The default is
['google.com']
. -
interval: Number of seconds between each ping. The default is
0.25
. -
count: Number of packets sent. The default is
10
. -
timeout: Number of seconds to wait for a response. The default is
5
. -
verbose: Includes result of successfully pings in stderr when set to
True
.