Class: LogStash::Outputs::Stomp
- Defined in:
- lib/logstash/outputs/stomp.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(url, config = {}, &block) ⇒ Stomp
constructor
A new instance of Stomp.
- #receive(event) ⇒ Object
- #register ⇒ Object
Constructor Details
#initialize(url, config = {}, &block) ⇒ Stomp
Returns a new instance of Stomp.
9 10 11 12 13 |
# File 'lib/logstash/outputs/stomp.rb', line 9 def initialize(url, config={}, &block) super @logger.debug(["Initialize", { :url => @url }]) end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'lib/logstash/outputs/stomp.rb', line 6 def url @url end |
Instance Method Details
#receive(event) ⇒ Object
22 23 24 25 |
# File 'lib/logstash/outputs/stomp.rb', line 22 def receive(event) @logger.debug(["Sending event", { :url => @url, :event => event }]) @connection.send(@url.path, event.to_json) end |