Class: LogStash::Outputs::ElasticSearch::EventActionTuple

Inherits:
Array
  • Object
show all
Defined in:
lib/logstash/outputs/elasticsearch.rb

Overview

TODO: acting as an array for compatibility

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action, params, event, event_data = nil) ⇒ EventActionTuple

Returns a new instance of EventActionTuple.



517
518
519
520
521
522
523
# File 'lib/logstash/outputs/elasticsearch.rb', line 517

def initialize(action, params, event, event_data = nil)
  super(3)
  self[0] = action
  self[1] = params
  self[2] = event_data || event.to_hash
  @event = event
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



525
526
527
# File 'lib/logstash/outputs/elasticsearch.rb', line 525

def event
  @event
end