Sha256: 76f0b282dafd4d0081f0afdf517548c6c851914f146dd58acb57572ad7a5bcc5

Contents?: true

Size: 609 Bytes

Versions: 2

Compression:

Stored size: 609 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)
      super(name, value)
    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

2 entries across 2 versions & 1 rubygems

Version Path
hallmonitor-1.1.0 lib/hallmonitor/gauge_event.rb
hallmonitor-1.0.0 lib/hallmonitor/gauge_event.rb