Class: IoMonitor::LogsPublisher
- Inherits:
-
BasePublisher
- Object
- BasePublisher
- IoMonitor::LogsPublisher
- Defined in:
- lib/io_monitor/publishers/logs_publisher.rb
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BasePublisher
Class Method Details
.kind ⇒ Object
5 6 7 |
# File 'lib/io_monitor/publishers/logs_publisher.rb', line 5 def self.kind :logs end |
Instance Method Details
#publish(source, ratio) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/io_monitor/publishers/logs_publisher.rb', line 9 def publish(source, ratio) Rails.logger.warn " \#{source.to_s.camelize} I/O to response payload ratio is \#{ratio},\n while threshold is \#{IoMonitor.config.warn_threshold}\n HEREDOC\nend\n".squish |