fluentd-ui/app/models/fluentd/setting/parser_json.rb
Kenji Okimoto 12c56811d2
Add parameters to some parser plugins
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-07 16:37:49 +09:00

26 lines
367 B
Ruby

class Fluentd
module Setting
class ParserJson
include Fluentd::Setting::Plugin
register_plugin("parser", "json")
def self.initial_params
{
json_parser: "oj"
}
end
def common_options
[]
end
def advanced_options
[
:json_parser
]
end
end
end
end