Details
-
Sub-Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
N/A
-
None
-
MXS-SPRINT-247, MXS-SPRINT-248
Description
The `maxctrl create report` command generates a JSON file by combining the responses from the following endpoints:
/maxscale
|
/servers
|
/services
|
/monitors
|
/listeners
|
/filters
|
/sessions
|
/users
|
/maxscale/modules
|
/maxscale/query_classifier
|
/maxscale/threads
|
/logs/data/?page[cursor]=0&page[size]=1000 |
/maxscale/debug/server_diagnostics
|
To view the combined JSON without polluting the DOM, a JSON viewer component should be created to efficiently handle large JSON data and support searching.
Since Monaco Editor is already used for SQL and includes built-in JSON support, it can be reused. However, the current setup is configured for the MariaDB language and needs to be refactored to also support JSON.