Sha256: 2e46fbb8f83f323f6c0542fd64536e223ed92a50cce3a749a745033add4e83f6
Contents?: true
Size: 595 Bytes
Versions: 29
Compression:
Stored size: 595 Bytes
Contents
# typed: true # 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
29 entries across 29 versions & 1 rubygems