vendor/bundle/ruby/2.3.0/gems/sqreen-1.10.5/lib/sqreen/metrics_store.rb
# When a metric is not yet created
When a metric is not yet created
When a metric is not yet created
def update(name, at, key, value)
      at = at.utc
      metric, period, start = @metrics[name]
      raise UnregisteredMetric, "Unknown metric #{name}" unless metric
      next_sample(name, at) if start.nil? || (start + period) < at
      metric.update(at, key, value)
    end
def update ( name , at , key , value ) at = at . utc metric , period , start = @metrics [ name ] raise UnregisteredMetric , "Unknown metric #{name}" unless metric next_sample ( name , at ) if start . nil? || ( start + period ) < at metric . update ( at , key , value ) end
When a metric is not yet created
When a metric is not yet created
name
<not_specific>
at
<not_specific>
key
<not_specific>
value
<not_specific>