Class: FFWD::FlushingOutputHook
- Inherits:
-
Object
- Object
- FFWD::FlushingOutputHook
- Defined in:
- lib/ffwd/flushing_output_hook.rb
Instance Method Summary collapse
-
#active? ⇒ Boolean
Return true if connection is accessible, false otherwise.
-
#close ⇒ Object
Close any open connections.
-
#connect ⇒ Object
Establish connections.
- #reporter_meta ⇒ Object
-
#send(metrics) ⇒ Object
Send the specified batch of metrics.
Instance Method Details
#active? ⇒ Boolean
Return true if connection is accessible, false otherwise.
29 30 31 |
# File 'lib/ffwd/flushing_output_hook.rb', line 29 def active? raise "not implemented: active?" end |
#close ⇒ Object
Close any open connections.
24 25 26 |
# File 'lib/ffwd/flushing_output_hook.rb', line 24 def close raise "not implemented: close" end |
#connect ⇒ Object
Establish connections.
19 20 21 |
# File 'lib/ffwd/flushing_output_hook.rb', line 19 def connect raise "not implemented: connect" end |
#reporter_meta ⇒ Object
44 45 46 |
# File 'lib/ffwd/flushing_output_hook.rb', line 44 def {} end |
#send(metrics) ⇒ Object
Send the specified batch of metrics.
Must return a callback object with the following attributes. callback - That accepts a block that will be run on successful execution. errback - That accepts a block that will be run on failed execution. error - If errback has been triggered, should contain the error that occured.
40 41 42 |
# File 'lib/ffwd/flushing_output_hook.rb', line 40 def send metrics raise "not implemented: send" end |