fluentd-ui/app/models/fluentd/setting/out_stdout.rb
Kenji Okimoto c54ead20f1
Add label parameter
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
2018-09-13 11:20:49 +09:00

41 lines
743 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
[
:label, :pattern, :output_type
]
end
def hidden_options
[
:secondary, :inject, :buffer
]
end
end
end
end