Sha256: 2c28c93616e6ea82d20213ff080b66541d0c13bcdcd553828bc8ce28e2124744
Contents?: true
Size: 311 Bytes
Versions: 22
Compression:
Stored size: 311 Bytes
Contents
module PulseMeter module Sensor module Timelined # Counts events per interval class Counter < Timeline def aggregate_event(key, value) redis.incrby(key, value.to_i) end def summarize(key) redis.get(key).to_i end end end end end
Version data entries
22 entries across 22 versions & 2 rubygems