mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
feat: configure limit type (#1482)
* Add limit type field selection * Take into account LimitType to generate SQL request for Line graph Also, add LimitType in default configuration for console * Take into account LimitType to generate SQL request for Sankey graph * Refactor on SQL query used by line and sankey * Add limitType description in doc * Order by max in graphLine when limitType max is used * Fix query when using top max Revert some modifications, as they were no longer relevant with the query fixed. * Rework way to sort by max in line graph type * Add configuration validation on LimitType --------- Co-authored-by: Dimitri Baudrier <github.52grm@simplelogin.com>
This commit is contained in:
@@ -26,6 +26,7 @@ func TestConfigHandler(t *testing.T) {
|
||||
"filter": "InIfBoundary = external",
|
||||
"dimensions": []string{"SrcAS"},
|
||||
"limit": 10,
|
||||
"limitType": "Avg",
|
||||
"bidirectional": false,
|
||||
"previousPeriod": false,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user