Sha256: 7f77504d870e6305a567eb66fe1059077f41d6baf55e67b8d706abc32c3e56e7
Contents?: true
Size: 413 Bytes
Versions: 2
Compression:
Stored size: 413 Bytes
Contents
module Heartcheck module Executors class Base def dispatch(checkers) checkers.map do |checker| track_and_check(checker) end end def track_and_check(checker) started = Time.now checker.check.tap do |checked| checked[:time] = ((Time.now - started) * 1_000.0) Logger.info Oj.dump(checked) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heartcheck-1.0.9 | lib/heartcheck/executors/base.rb |
heartcheck-1.0.8 | lib/heartcheck/executors/base.rb |