Class: Chronicle::Shell::ShellHistoryTransformer
- Inherits:
-
ETL::Transformer
- Object
- ETL::Transformer
- Chronicle::Shell::ShellHistoryTransformer
- Defined in:
- lib/chronicle/shell/shell_history_transformer.rb
Instance Method Summary collapse
Instance Method Details
#transform(record) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/chronicle/shell/shell_history_transformer.rb', line 16 def transform(record) username = record.extraction.[:username] hostname = record.extraction.[:hostname] shell_name = record.extraction.[:shell_name] = record.data[:timestamp] command = record.data[:command] build_command(username:, hostname:, command:, shell_name:, timestamp:) end |