lib/tabs/metrics/value.rb in tabs-0.6.1 vs lib/tabs/metrics/value.rb in tabs-0.6.2
- old
+ new
@@ -30,9 +30,13 @@
filtered_pairs = pairs.find_all { |p| period.cover?(p[0]) }
filtered_pairs = fill_missing_dates(period, filtered_pairs, resolution, default_value(0))
filtered_pairs.map { |p| Hash[[p]] }
end
+ def drop!
+ del_by_prefix("stat:value:#{key}")
+ end
+
private
def update_values(stat_key, value)
hash = get_current_hash(stat_key)
increment(hash, value)