fluentd-ui/app/models/fluentd/setting/out_stdout.rb
Kenji Okimoto 8b776469b5
Organize initial parameters
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-06-18 14:38:07 +09:00

41 lines
735 B
Ruby

class Fluentd
module Setting
class OutStdout
include Fluentd::Setting::Plugin
register_plugin("output", "stdout")
def self.initial_params
{
pattern: "debug.**",
buffer_type: "memory",
buffer: {
"0" => {
"type" => "memory",
}
},
format_type: "stdout",
format: {
"0" => {
"@type" => "stdout",
"output_type" => "json"
}
}
}
end
def common_options
[
:pattern, :output_type
]
end
def hidden_options
[
:secondary, :inject, :buffer
]
end
end
end
end