Sha256: b18b65315e2018d9b2d643188f82f4bdbd1be4ac76d8a03a18c1389b605b5983
Contents?: true
Size: 584 Bytes
Versions: 141
Compression:
Stored size: 584 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(_at, key, value) super s = @sample[OBSERVATION_KEY] s[key] ||= [] s[key] << value end end end end
Version data entries
141 entries across 141 versions & 2 rubygems