Class: LogStash::Outputs::ElasticSearch::EventActionTuple
- Inherits:
- 
      Array
      
        - Object
- Array
- LogStash::Outputs::ElasticSearch::EventActionTuple
 
- Defined in:
- lib/logstash/outputs/elasticsearch.rb
Overview
TODO: acting as an array for compatibility
Instance Attribute Summary collapse
- 
  
    
      #event  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute event. 
Instance Method Summary collapse
- 
  
    
      #initialize(action, params, event, event_data = nil)  ⇒ EventActionTuple 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of EventActionTuple. 
Constructor Details
#initialize(action, params, event, event_data = nil) ⇒ EventActionTuple
Returns a new instance of EventActionTuple.
| 492 493 494 495 496 497 498 | # File 'lib/logstash/outputs/elasticsearch.rb', line 492 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
#event ⇒ Object (readonly)
Returns the value of attribute event.
| 500 501 502 | # File 'lib/logstash/outputs/elasticsearch.rb', line 500 def event @event end |