Class: IoMonitor::NotificationsPublisher
- Inherits:
-
BasePublisher
- Object
- BasePublisher
- IoMonitor::NotificationsPublisher
- Defined in:
- lib/io_monitor/publishers/notifications_publisher.rb
Constant Summary collapse
- WARN_THRESHOLD_REACHED_EVENT =
"warn_threshold_reached"
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BasePublisher
Class Method Details
.kind ⇒ Object
7 8 9 |
# File 'lib/io_monitor/publishers/notifications_publisher.rb', line 7 def self.kind :notifications end |
Instance Method Details
#publish(source, ratio) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/io_monitor/publishers/notifications_publisher.rb', line 11 def publish(source, ratio) ActiveSupport::Notifications.instrument( full_event_name(WARN_THRESHOLD_REACHED_EVENT), source: source, ratio: ratio ) end |