Class: ActiveMonitoring::Notifications
- Inherits:
-
Object
- Object
- ActiveMonitoring::Notifications
- Defined in:
- lib/active_monitoring/notifications.rb
Class Attribute Summary collapse
-
.notifier ⇒ Object
Returns the value of attribute notifier.
Class Method Summary collapse
Class Attribute Details
.notifier ⇒ Object
Returns the value of attribute notifier.
6 7 8 |
# File 'lib/active_monitoring/notifications.rb', line 6 def notifier @notifier end |
Class Method Details
.instrument(name, payload = {}, &block) ⇒ Object
12 13 14 |
# File 'lib/active_monitoring/notifications.rb', line 12 def instrument(name, payload = {}, &block) notifier.instrument(name, payload, &block) end |
.subscribe(name, &block) ⇒ Object
8 9 10 |
# File 'lib/active_monitoring/notifications.rb', line 8 def subscribe(name, &block) notifier.subscribe(name, &block) end |