class BaselineRedAgent::Plugin::System::Network
Public Instance Methods
call()
click to toggle source
# File lib/baseline_red_agent/plugin/system/network.rb, line 8 def call inets = Vmstat.ethernet_devices inets.flat_map {|inet| [ ["system.network.in_bytes", inet.in_bytes, { "name" => inet.name.to_s }], ["system.network.out_bytes", inet.out_bytes, { "name" => inet.name.to_s }] ] } end