Class: Metricstore::Inserter

Inherits:
Updater
  • Object
show all
Defined in:
lib/metricstore/inserter.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

#insert(key, values, ttl = nil) ⇒ Object



6
7
8
# File 'lib/metricstore/inserter.rb', line 6

def insert(key, values, ttl=nil)
  update(key, values, ttl)
end

#list_thresholdObject



14
15
16
# File 'lib/metricstore/inserter.rb', line 14

def list_threshold
  @list_threshold ||= 100
end

#list_threshold=(threshold) ⇒ Object



10
11
12
# File 'lib/metricstore/inserter.rb', line 10

def list_threshold=(threshold)
  @list_threshold = threshold
end