Class: Hallmonitor::GaugeEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/hallmonitor/gauge_event.rb

Instance Attribute Summary

Attributes inherited from Event

#count, #name, #time

Instance Method Summary collapse

Methods inherited from Event

#to_json

Methods included from Monitored

#emit, included, #watch

Constructor Details

#initialize(name, value) ⇒ GaugeEvent

Returns a new instance of GaugeEvent.



3
4
5
# File 'lib/hallmonitor/gauge_event.rb', line 3

def initialize(name, value)
  super(name, value)
end

Instance Method Details

#valueObject



7
8
9
# File 'lib/hallmonitor/gauge_event.rb', line 7

def value
  count
end

#value=(new_value) ⇒ Object



11
12
13
# File 'lib/hallmonitor/gauge_event.rb', line 11

def value=(new_value)
  count = new_value
end