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>
9 lines
273 B
Ruby
9 lines
273 B
Ruby
json.id element_id(current_label, element)
|
|
json.current_label current_label || "ROOT"
|
|
json.label element["@label"] || element["label"]
|
|
json.name element.name
|
|
json.type element["@type"] || element["type"]
|
|
json.arg element.arg
|
|
json.settings element
|
|
json.content element.to_s
|