class Sqreen::Metric::Collect

This is an aggregated statistic definition This is a base class to collect metrics in a hash based structure that does not aggregate anything

Public Instance Methods

update(key, value) click to toggle source

from class attr_accessor :aggregate

Calls superclass method Sqreen::Metric::Base#update
# File lib/sqreen/metrics/collect.rb, line 16
def update(key, value)
  super
  s = @sample[OBSERVATION_KEY]
  s[key] ||= []
  s[key] << value
end