Sha256: 32216b92d0cc516d4fb9cddbf7e4c8dfcdc2d684f2b4bdb0536ba130aef419b0
Contents?: true
Size: 503 Bytes
Versions: 5
Compression:
Stored size: 503 Bytes
Contents
require 'ganymed/sampler/datasource' module Ganymed class Sampler ## # A Gauge is the simplest DataSource type. It simply records the given # value in the buffer and emits all values in the buffer upon flush # assuming the given values are in gauge-style (e.g. free memory, users # currently logged in, etc). # class Gauge < DataSource def flush each do |ns, origin, ts| yield ns, origin, ts.values.flatten end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems