Class: Fluent::NetflowMultiplierFilter
- Inherits:
-
Filter
- Object
- Filter
- Fluent::NetflowMultiplierFilter
- Defined in:
- lib/fluent/plugin/filter_netflow_multiplier.rb
Instance Method Summary collapse
- #configure(conf) ⇒ Object
- #filter(tag, time, record) ⇒ Object
-
#initialize ⇒ NetflowMultiplierFilter
constructor
A new instance of NetflowMultiplierFilter.
Constructor Details
#initialize ⇒ NetflowMultiplierFilter
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 |