mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-01-21 15:11:02 +01:00
Current version returns like the following:
```
{
"ROOT" => {
"sources" => [],
"filters" => [],
"matches" => [],
},
"@INPUT" => {
"sources" => [],
"filters" => [],
"matches" => [],
}
}
```
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
12 lines
313 B
Ruby
12 lines
313 B
Ruby
@config.group_by_label.each do |label_name, types|
|
|
json.set!(label_name) do
|
|
types.each do |type, elements|
|
|
json.set!(type) do
|
|
json.array!(elements) do |element|
|
|
json.partial! "api/settings/element", current_label: label_name, element: element
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|