Class: BaselineRedAgent::Plugin::System::Network
- Defined in:
- lib/baseline_red_agent/plugin/system/network.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#call ⇒ Object
8 9 10 11 12 13 14 15 16 |
# 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 |