Class: LogStash::Inputs::ElasticServerlessForwarder::QueueWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/inputs/elastic_serverless_forwarder.rb

Instance Method Summary collapse

Constructor Details

#initialize(wrapped_queue) ⇒ QueueWrapper

Returns a new instance of QueueWrapper.



165
166
167
# File 'lib/logstash/inputs/elastic_serverless_forwarder.rb', line 165

def initialize(wrapped_queue)
  @wrapped_queue = wrapped_queue
end

Instance Method Details

#<<(event) ⇒ Object



169
170
171
172
# File 'lib/logstash/inputs/elastic_serverless_forwarder.rb', line 169

def << (event)
  event.remove('[@metadata][void]')
  @wrapped_queue << event
end