Sha256: 33706f11924369e100f26c503725557b9168b479f4ee7a98059637bf486d2c58
Contents?: true
Size: 472 Bytes
Versions: 23
Compression:
Stored size: 472 Bytes
Contents
class FnordMetric::CountMetric < FnordMetric::Metric private def value_at(time_or_range) # FIXME: value_at(my_time) is really slow, because it has to fetch all events that # happened until that time (and this is not even cached, when time is in the future # or just now), so we should redirect the call to something like: # value_at(last_cache_since_my_time) + value_at(last_cache_since_my_time..my_time) events_at(time_or_range).count end end
Version data entries
23 entries across 23 versions & 1 rubygems