-
-
branches/amp_4_0/src/webui/webui/htdocs/new/src/hive/repositories/sslvpn_metrics.py (Diff revision 1) Can we rename the value field to something more descriptive, such as active_sessions, client_throughput, or server_throughput, depending on what the metric actually represents?
From an API response perspective, the generic field name value doesn’t clearly convey its meaning and can be confusing for consumers parsing the JSON.Please consider updating all similar cases throughout the API (for example, wherever value is used for different metrics) so that the field name is self-explanatory and matches the metric type.
This will make the API more maintainable and user-friendly. -
branches/amp_4_0/src/webui/webui/htdocs/new/src/hive/repositories/sslvpn_metrics.py (Diff revision 1) same as above
-
branches/amp_4_0/src/webui/webui/htdocs/new/src/hive/repositories/sslvpn_metrics.py (Diff revision 1) can we rename. same comment as before
-
-
Instead of building a dictionary with all possible fields and then removing irrelevant ones in sanitize_metrics, can we construct the response dictionary to include only the fields required for each metric type?
This would avoid unnecessary additions/removals, reduce payload size, and make the API response cleaner and easier to maintain.
AE-2140 : Dashboard - Create APIs and Integrate the same with GUI for the SSLVPN and Cleanup duplicate functions for dashboard
Review Request #1076 — Created Sept. 26, 2025 and submitted
| Information | |
|---|---|
| pmurugaiyan | |
| AMP | |
| amp_4_0 | |
| AE-2140 | |
| Reviewers | |
| apoorva.sn, mmiriam, ngurunathan, shuinvy | |
The SSLVPN APIs for the Dashboard has been added & Integrated with the GUI.
Code cleanup for the duplicate functions and graphs.
The changes has been tested locally.
POST /top-ssl-vpn-metrics
[
{
"metric": "active_sessions",
"agent_host": "192.168.85.20",
"vsite_name": "viste2",
"value": 0
},
{
"metric": "client_network",
"agent_host": "192.168.85.20",
"vsite_name": "viste2",
"received": 0,
"sent": 0
},
{
"metric": "server_network",
"agent_host": "192.168.85.20",
"vsite_name": "viste2",
"received": 0,
"sent": 0
}
]
| Description | From | Last Updated |
|---|---|---|
|
Can we rename the value field to something more descriptive, such as active_sessions, client_throughput, or server_throughput, depending on what the … |
|
|
|
same as above |
|
|
|
can we rename. same comment as before |
|
|
|
ideally be d['metric'] == 'active_sessions' rght ? |
|
|
|
Instead of building a dictionary with all possible fields and then removing irrelevant ones in sanitize_metrics, can we construct the … |
|
Change Summary:
Dashboard - AVX section added (Newly implemented in AMP4)
Code refactor - Code Reusability & Improvements
Diff: |
Revision 3 (+1796 -3068)
|
||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Added Files: |
