Sha256: 700ef8899f3ee0760ec340e1d26aba67d6ca0a4fbfda762f730f3487a438543c
Contents?: true
Size: 579 Bytes
Versions: 38
Compression:
Stored size: 579 Bytes
Contents
# Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.io/terms.html require 'sqreen/metrics/base' module Sqreen module Metric # This is an aggregated statistic definition # This is a base class to collect metrics in a hash based structure # that does not aggregate anything class Collect < Base # from class attr_accessor :aggregate def update(key, value) super s = @sample[OBSERVATION_KEY] s[key] ||= [] s[key] << value end end end end
Version data entries
38 entries across 38 versions & 1 rubygems