mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-12 01:07:09 +02:00
29 lines
621 B
Ruby
29 lines
621 B
Ruby
class Fluentd::Settings::OutForwardController < ApplicationController
|
|
include SettingConcern
|
|
|
|
private
|
|
|
|
def target_class
|
|
Fluentd::Setting::OutForward
|
|
end
|
|
|
|
def setting_params
|
|
params.require(:fluentd_setting_out_forward).permit(*Fluentd::Setting::OutForward::KEYS).merge(
|
|
params.require(:fluentd_setting_out_forward).permit(
|
|
:server => Fluentd::Setting::OutForward::Server::KEYS,
|
|
:secondary => Fluentd::Setting::OutForward::Secondary::KEYS,
|
|
),
|
|
)
|
|
end
|
|
|
|
def initial_params
|
|
{
|
|
secondary: {
|
|
"0" => {
|
|
type: "file",
|
|
}
|
|
}
|
|
}
|
|
end
|
|
end
|