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.



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

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

Instance Attribute Details

#ageObject

Returns the value of attribute age.



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

def age
  @age
end

#eventObject

Returns the value of attribute event.



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

def event
  @event
end