Sha256: d3b858c317cd411e3c61e5b8fa8aaca3d046b635fdca4c5e4fffd0baf23d7df5
Contents?: true
Size: 597 Bytes
Versions: 10
Compression:
Stored size: 597 Bytes
Contents
# typed: ignore # Copyright (c) 2015 Sqreen. All Rights Reserved. # Please refer to our terms for more information: https://www.sqreen.com/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
10 entries across 10 versions & 1 rubygems