Skip to content
Snippets Groups Projects
Commit 29a98590 authored by Waleed Akbar's avatar Waleed Akbar
Browse files

change Analytics backend service.

- The `split` method has been added to correctly extract the aggregation method name from the dictionary.
parent 23d37912
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!266Resolve: "Unable to correctly extract the aggregation function names from the dictionary received as parameters in the Analyzer message"
......@@ -42,7 +42,7 @@ class AnalyticsBackendService(GenericGrpcService):
def StartSparkStreamer(self, analyzer_uuid, analyzer):
kpi_list = analyzer['input_kpis']
oper_list = [s.replace('_value', '') for s in list(analyzer["thresholds"].keys())] # TODO: update this line...
oper_list = [s.split('_', 1)[0] for s in list(analyzer["thresholds"].keys())] # TODO: update this line...
thresholds = analyzer['thresholds']
window_size = analyzer['window_size']
window_slider = analyzer['window_slider']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment