Class: Fluent::OutNestedHash

Inherits:
Output
  • Object
show all
Defined in:
lib/fluent/plugin/out_nested_hash.rb

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



10
11
12
# File 'lib/fluent/plugin/out_nested_hash.rb', line 10

def configure conf
  super
end

#emit(tag, es, chain) ⇒ Object



22
23
24
25
26
27
28
29
# File 'lib/fluent/plugin/out_nested_hash.rb', line 22

def emit tag, es, chain
  es.each do |time, record|
    record = Fluent::NestedHashFilter::NestedObject.convert record, connector: @connector
    Fluent::Engine.emit @tag_prefix + tag, time, record
  end

  chain.next
end

#shutdownObject



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

def shutdown
  super
end

#startObject



14
15
16
# File 'lib/fluent/plugin/out_nested_hash.rb', line 14

def start
  super
end