Signed-off-by: Frank Villaro-Dixon <frank@villaro-dixon.eu>
This commit is contained in:
parent
f79c1c88ca
commit
517c77653d
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ def get_data(ts_start: int, ts_end: int, device_id: str, module_id: str, metrics
|
||||||
|
|
||||||
data = response.json()['body']
|
data = response.json()['body']
|
||||||
for el in data:
|
for el in data:
|
||||||
print("\n\n")
|
#print("\n\n")
|
||||||
ts = el['beg_time']
|
ts = el['beg_time']
|
||||||
for vals in el['value']:
|
for vals in el['value']:
|
||||||
for ielem in range(len(vals)):
|
for ielem in range(len(vals)):
|
||||||
|
@ -49,7 +49,7 @@ def get_data(ts_start: int, ts_end: int, device_id: str, module_id: str, metrics
|
||||||
res_vals = res.get(metric, {})
|
res_vals = res.get(metric, {})
|
||||||
res_vals[ts] = val
|
res_vals[ts] = val
|
||||||
res[metric] = res_vals
|
res[metric] = res_vals
|
||||||
print(f'{ts}: {metric} = {val}')
|
#print(f'{ts}: {metric} = {val}')
|
||||||
if 'step_time' in el:
|
if 'step_time' in el:
|
||||||
ts += el['step_time']
|
ts += el['step_time']
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue