Class: LogStash::Filters::Elapsed::Element

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/filters/elapsed.rb

Overview

class LogStash::Filters::Elapsed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event) ⇒ Element

Returns a new instance of Element.



252
253
254
255
# File 'lib/logstash/filters/elapsed.rb', line 252

def initialize(event)
  @event = event
  @age = 0
end

Instance Attribute Details

#ageObject

Returns the value of attribute age.



250
251
252
# File 'lib/logstash/filters/elapsed.rb', line 250

def age
  @age
end

#eventObject

Returns the value of attribute event.



250
251
252
# File 'lib/logstash/filters/elapsed.rb', line 250

def event
  @event
end