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



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

def configure conf
  super
end

#emit(tag, es, chain) ⇒ Object



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

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

  chain.next
end

#shutdownObject



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

def shutdown
  super
end

#startObject



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

def start
  super
end