Class: Fluentd::Setting::InHttp
- Inherits:
-
Object
- Object
- Fluentd::Setting::InHttp
show all
- Includes:
- ActiveModel::Model, Common
- Defined in:
- app/models/fluentd/setting/in_http.rb
Constant Summary
collapse
- KEYS =
[
:bind, :port, :body_size_limit, :keepalive_timeout, :add_http_headers, :format, :log_level
].freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Common
#boolenan, #child_class, #children_of, #column_type, #conf, #empty_value?, #flag, #input_plugin?, #output_plugin?, #plugin_type_name, #print_if_present, #to_config, #values_of
Class Method Details
.initial_params ⇒ Object
16
17
18
19
20
21
22
23
24
25
26
|
# File 'app/models/fluentd/setting/in_http.rb', line 16
def self.initial_params
{
bind: "0.0.0.0",
port: 8888,
body_size_limit: "32m",
keepalive_timeout: "10s",
add_http_headers: false,
format: "default",
log_level: "info",
}
end
|
Instance Method Details
#advanced_options ⇒ Object
34
35
36
37
38
|
# File 'app/models/fluentd/setting/in_http.rb', line 34
def advanced_options
[
:body_size_limit, :keepalive_timeout, :add_http_headers, :format, :log_level
]
end
|
#common_options ⇒ Object
28
29
30
31
32
|
# File 'app/models/fluentd/setting/in_http.rb', line 28
def common_options
[
:bind, :port
]
end
|
#plugin_name ⇒ Object
40
41
42
|
# File 'app/models/fluentd/setting/in_http.rb', line 40
def plugin_name
"http"
end
|