Sha256: f38af9dbe6d29be69c6855f1706d9901eb27972896e05ba9825ee358e2d68991
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
# Ruby Worker The Ruby Worker sends JSON wrapped data via UDP packets to a given server at a defined interval. ## Installation $ gem install healthety ## Usage require "healthety" Healthety.workers do server "127.0.0.1" port 41234 worker :load_average do interval 0.5 # Gets load average with a system call (Mac OS X) value `w | head -n1 | cut -f4 -d":" | cut -f2 -d" "`.to_f end worker :memory do interval 2 value rand(10) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
healthety-0.0.4 | README.md |