Class: Perus::Pinger::Uptime

Inherits:
Command
  • Object
show all
Defined in:
lib/perus/pinger/metrics/uptime.rb

Instance Attribute Summary

Attributes inherited from Command

#id, #options

Instance Method Summary collapse

Methods inherited from Command

abstract!, abstract?, #cleanup, #darwin?, description, human_name, inherited, #initialize, metric!, metric?, option, options, #shell, subclasses

Constructor Details

This class inherits a constructor from Perus::Pinger::Command

Instance Method Details

#runObject



6
7
8
# File 'lib/perus/pinger/metrics/uptime.rb', line 6

def run
    {uptime: shell('uptime').strip}
end