Add label parameter

Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
Kenji Okimoto 2018-09-13 11:20:49 +09:00
parent af2e5e7c39
commit c54ead20f1
No known key found for this signature in database
GPG Key ID: F9E3E329A5C5E4A1
15 changed files with 17 additions and 7 deletions

View File

@ -12,6 +12,7 @@ class Fluentd
def self.permit_params
[
:label,
:pattern, :log_level, :@log_level,
{ and: {regexp: [:key, :pattern], exclude: [:key, :pattern]} },
{ or: {regexp: [:key, :pattern], exclude: [:key, :pattern]} }
@ -20,7 +21,8 @@ class Fluentd
def common_options
[
:pattern
:label,
:pattern,
]
end

View File

@ -18,6 +18,7 @@ class Fluentd
def common_options
[
:label,
:pattern,
:key_name,
]

View File

@ -14,6 +14,7 @@ class Fluentd
def common_options
[
:label,
:pattern,
]
end

View File

@ -19,6 +19,7 @@ class Fluentd
def common_options
[
:label,
:pattern,
]
end

View File

@ -7,6 +7,7 @@ class Fluentd
def common_options
[
:label,
:bind, :port
]
end

View File

@ -23,7 +23,7 @@ class Fluentd
def common_options
[
:bind, :port, :add_http_headers, :add_remote_addr
:label, :bind, :port, :add_http_headers, :add_remote_addr
]
end

View File

@ -17,7 +17,7 @@ class Fluentd
def common_options
[
:bind, :port, :tag
:label, :bind, :port, :tag
]
end
end

View File

@ -19,7 +19,7 @@ class Fluentd
def common_options
[
:tag, :bind, :port
:label, :tag, :bind, :port
]
end

View File

@ -26,6 +26,7 @@ class Fluentd
def common_options
[
:label,
:pattern, :host, :port, :logstash_format,
:index_name, :type_name,
]

View File

@ -33,7 +33,7 @@ class Fluentd
def common_options
[
:pattern, :server, :secondary,
:label, :pattern, :server, :secondary,
]
end

View File

@ -25,6 +25,7 @@ class Fluentd
def common_options
[
:label,
:pattern, :host, :port, :database, :collection,
:tag_mapped, :user, :password,
]

View File

@ -26,6 +26,7 @@ class Fluentd
def common_options
[
:label,
:pattern,
:s3_region, :s3_bucket, :use_ssl, :path,
]

View File

@ -26,7 +26,7 @@ class Fluentd
def common_options
[
:pattern, :output_type
:label, :pattern, :output_type
]
end

View File

@ -22,7 +22,7 @@ class Fluentd
def common_options
[
:pattern, :apikey, :auto_create_table, :database, :table,
:label, :pattern, :apikey, :auto_create_table, :database, :table,
]
end

View File

@ -19,6 +19,7 @@
= f.hidden_field(key)
= f.field(key, disabled: true)
= form.field(:label)
= form.field(:tag)
= form.field(:pos_file)