Sha256: f94f0c15f9fead2651b10f352aed46ee522eef2fc1cdad0c657419c37d36e370
Contents?: true
Size: 643 Bytes
Versions: 4
Compression:
Stored size: 643 Bytes
Contents
module Hallmonitor # A Guage event is an event that has a specific value, # think of it like a tachometer or gas guage on a car: # at any given point it reports the current value of a # variable. class GaugeEvent < Event # @param name [String] Name of this guage # @param value [Number] The current value of this guage def initialize(name, value: nil, tags: {}) super(name, count: value, tags: tags) end # The value of this guage def value count end # Sets the value of this guage # @param new_value [Number] def value=(new_value) self.count = new_value end end end
Version data entries
4 entries across 4 versions & 1 rubygems