Sha256: ac4d6559630c570d3b95c7e00e8562258fddb679150e3db117b562cf450ed6bd
Contents?: true
Size: 372 Bytes
Versions: 15
Compression:
Stored size: 372 Bytes
Contents
module PulseMeter module Sensor module Timelined # Calculates min value in interval class Min < ZSetBased def update(key) command_aggregator.zremrangebyrank(key, 1, -1) end def calculate(key, _) min_el = redis.zrange(key, 0, 0)[0] redis.zscore(key, min_el) end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems