Sha256: caed509132e1a7437b4f80797d286bc2b267bda296ea9233a83c36b34756b0fa

Contents?: true

Size: 226 Bytes

Versions: 41

Compression:

Stored size: 226 Bytes

Contents

module Perus::Pinger
    class Uptime < Command
        description 'Runs the uptime command and returns the result'
        metric!
        
        def run
            {uptime: shell('uptime').strip}
        end
    end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
perus-1.0.7 lib/perus/pinger/metrics/uptime.rb
perus-1.0.6 lib/perus/pinger/metrics/uptime.rb
perus-1.0.5 lib/perus/pinger/metrics/uptime.rb
perus-1.0.4 lib/perus/pinger/metrics/uptime.rb
perus-1.0.3 lib/perus/pinger/metrics/uptime.rb
perus-1.0.2 lib/perus/pinger/metrics/uptime.rb
perus-1.0.1 lib/perus/pinger/metrics/uptime.rb
perus-1.0.0 lib/perus/pinger/metrics/uptime.rb
perus-0.1.35 lib/perus/pinger/metrics/uptime.rb
perus-0.1.34 lib/perus/pinger/metrics/uptime.rb
perus-0.1.33 lib/perus/pinger/metrics/uptime.rb
perus-0.1.32 lib/perus/pinger/metrics/uptime.rb
perus-0.1.31 lib/perus/pinger/metrics/uptime.rb
perus-0.1.30 lib/perus/pinger/metrics/uptime.rb
perus-0.1.29 lib/perus/pinger/metrics/uptime.rb
perus-0.1.28 lib/perus/pinger/metrics/uptime.rb
perus-0.1.27 lib/perus/pinger/metrics/uptime.rb
perus-0.1.26 lib/perus/pinger/metrics/uptime.rb
perus-0.1.25 lib/perus/pinger/metrics/uptime.rb
perus-0.1.24 lib/perus/pinger/metrics/uptime.rb