Module: Fluent::Plugin::PerfTools::Command
- Defined in:
- lib/fluent/plugin/perf_tools/command.rb
Class Method Summary collapse
Class Method Details
.commands ⇒ Object
8 9 10 |
# File 'lib/fluent/plugin/perf_tools/command.rb', line 8 def commands @commands ||= {} end |
.new(command:, command_args:, interval:) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/fluent/plugin/perf_tools/command.rb', line 17 def new(command:, command_args:, interval:) if commands.has_key? command return commands[command].new(command_args: command_args, interval: interval) end raise Fluent::ConfigError, "perf_tools: #{command} not available" end |
.reference(klass) ⇒ Object
12 13 14 15 |
# File 'lib/fluent/plugin/perf_tools/command.rb', line 12 def reference(klass) return unless klass.command commands[klass.command] = klass end |