Class: Fluent::NetflowMultiplierFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/fluent/plugin/filter_netflow_multiplier.rb

Instance Method Summary collapse

Constructor Details

#initializeNetflowMultiplierFilter

Returns a new instance of NetflowMultiplierFilter.



12
13
14
15
# File 'lib/fluent/plugin/filter_netflow_multiplier.rb', line 12

def initialize
  super
  require 'fluent/plugin/netflow_multiplier'
end

Instance Method Details

#configure(conf) ⇒ Object



17
18
19
20
# File 'lib/fluent/plugin/filter_netflow_multiplier.rb', line 17

def configure(conf)
  super
  @multiplier = NetflowMultiplier.new(self)
end

#filter(tag, time, record) ⇒ Object



22
23
24
# File 'lib/fluent/plugin/filter_netflow_multiplier.rb', line 22

def filter(tag, time, record)
  @multiplier.multiply(record)
end