Sha256: f7ea960baec29f1496435cab203df139e410e1141ca051847361435594ba95dc

Contents?: true

Size: 219 Bytes

Versions: 3

Compression:

Stored size: 219 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
perus-0.1.2 lib/perus/pinger/metrics/uptime.rb
perus-0.1.1 lib/perus/pinger/metrics/uptime.rb
perus-0.1.0 lib/perus/pinger/metrics/uptime.rb