Sha256: 7856ba8ff0043a9698e26c9a1032bf82951896bfaf99d41fd9f076ae5429d6a8
Contents?: true
Size: 491 Bytes
Versions: 13
Compression:
Stored size: 491 Bytes
Contents
module Scout::Realtime::MultiAggregator def update_historical_metrics(collector_response) # since this is a multi-collector, the first level of the result hash is name collector_response.each_pair do |name,metrics_hash| historical_metrics[name] ||= {} self.class::FIELDS.keys.each do |field_name| historical_metrics[name][field_name] ||= RingBuffer.new(60) historical_metrics[name][field_name].push(metrics_hash[field_name]) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems