Class: Metricstore::RangeUpdater

Inherits:
Updater
  • Object
show all
Defined in:
lib/metricstore/range_updater.rb

Instance Attribute Summary

Attributes inherited from Updater

#handle_update_result

Instance Method Summary collapse

Methods inherited from Updater

#backlog, #healthy?, #initialize, #start!, #stop!

Constructor Details

This class inherits a constructor from Metricstore::Updater

Instance Method Details

#update_range(key, value, ttl = nil) ⇒ Object

Raises:

  • (ArgumentError)


4
5
6
7
# File 'lib/metricstore/range_updater.rb', line 4

def update_range(key, value, ttl=nil)
  raise(ArgumentError, "value must be numeric") unless value.is_a?(Numeric)
  update(key, [value, value], ttl)
end