Class: Fluent::AxlsxOutput
- Inherits:
-
Output
- Object
- Output
- Fluent::AxlsxOutput
- Defined in:
- lib/fluent/plugin/out_axlsx.rb
Overview
The AxlsxOutput class exports fluend emmitions into an OOXML
spreadsheet document (xlsx)
Instance Method Summary collapse
- #configure(conf) ⇒ Object
- #emit(tag, es, chunk) ⇒ Object
- #format(tag, time, record) ⇒ Object
-
#initialize ⇒ AxlsxOutput
constructor
PENDING @see configure TODOconfig_param :keys, :string, :default => nil.
- #shutdown ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ AxlsxOutput
PENDING @see configure TODOconfig_param :keys, :string, :default => nil
15 16 17 18 |
# File 'lib/fluent/plugin/out_axlsx.rb', line 15 def initialize super require 'axlsx' end |
Instance Method Details
#configure(conf) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/fluent/plugin/out_axlsx.rb', line 20 def configure(conf) super # TODO - I like the csv keys idea in the configuration but I think it needs to be tag specific. # e.g. dstat_keys foo, bar, biz.bang, hoge.hoge.hoge # dot notation indicates nested keys @time_format = workbook.styles.add_style :format_code => 'hh:mm:ss' end |
#emit(tag, es, chunk) ⇒ Object
37 38 39 |
# File 'lib/fluent/plugin/out_axlsx.rb', line 37 def emit(tag, es, chunk) to_xlsx(tag, es) end |
#format(tag, time, record) ⇒ Object
34 35 |
# File 'lib/fluent/plugin/out_axlsx.rb', line 34 def format(tag, time, record) end |
#shutdown ⇒ Object
31 32 |
# File 'lib/fluent/plugin/out_axlsx.rb', line 31 def shutdown end |
#start ⇒ Object
28 29 |
# File 'lib/fluent/plugin/out_axlsx.rb', line 28 def start end |