|
|
|
@ -19,7 +19,7 @@ class ThresholdTool(BuiltinTool):
|
|
|
|
metric_data = json.loads(metric)
|
|
|
|
metric_data = json.loads(metric)
|
|
|
|
threshold = float(tool_parameters.get('threshold'))
|
|
|
|
threshold = float(tool_parameters.get('threshold'))
|
|
|
|
res = []
|
|
|
|
res = []
|
|
|
|
for serie in metric_data['data']:
|
|
|
|
for serie in metric_data['data']['timeseries']:
|
|
|
|
tmpres = {
|
|
|
|
tmpres = {
|
|
|
|
"name": serie['legend'],
|
|
|
|
"name": serie['legend'],
|
|
|
|
"data": {},
|
|
|
|
"data": {},
|
|
|
|
|