Refactoring change for the graphs, stats, monitoring data
Review Request #654 — Created Feb. 13, 2025 and submitted
| Information | |
|---|---|
| apoorva.sn | |
| AMP | |
| amp_3_7 | |
| AA-2611 | |
| Reviewers | |
| pmurugaiyan, prajesh, shuinvy | |
Problem
The data for graphs, stats, monitoring data sent back to UI contains many details of the DB. So refactoring changes to send the required data back to UI. Also the graphs data was showing float values for hits and connections, need changes to convert it to int and also restrict the float value for bandwidth in and out to 2 decimals.
Solution
Am massaging the data as before sending the response to UI
Attached Doc for testing done
| Description | From | Last Updated |
|---|---|---|
|
https://192.168.85.47:8888/llb/stats -- attributes are duplicated even though its common across the LLB's. https://192.168.85.47:8888/llb/graph_data -- can we change the endpoint from … |
|
|
|
Thats where models help. Models should be the contract between DB and service layer. |
|
|
|
Should this be a part of db layer? |
|
-
-
branches/amp_3_7/src/webui/webui/htdocs/new/src/hive/llb_stats.py (Diff revision 1) Thats where models help. Models should be the contract between DB and service layer.
-
branches/amp_3_7/src/webui/webui/htdocs/new/src/hive/llb_stats.py (Diff revision 1) Should this be a part of db layer?
