summaryrefslogtreecommitdiffstats
path: root/docker/storperf-reporting/src/app.py
diff options
context:
space:
mode:
authorsaksham115 <saksham.agrawal@research.iiit.ac.in>2017-08-30 03:46:21 +0530
committerMark Beierl <mark.beierl@dell.com>2017-09-01 00:27:31 +0000
commit21644ee3689be254791809c791a18fcce7495aa1 (patch)
tree43dfcdd39f57155e20ae99a14257dfd10d3f705f /docker/storperf-reporting/src/app.py
parentfadbb15c56cce3733b6ed638cef522578c1b40d0 (diff)
Support for internal results navigation
JIRA: STORPERF-164 Change-Id: Ieabeef70be76dc905707461d2e66e4ebf5b1fdc6 Signed-off-by: saksham115 <saksham.agrawal@research.iiit.ac.in>
Diffstat (limited to 'docker/storperf-reporting/src/app.py')
-rw-r--r--docker/storperf-reporting/src/app.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/docker/storperf-reporting/src/app.py b/docker/storperf-reporting/src/app.py
index 39ea259..8ee04b8 100644
--- a/docker/storperf-reporting/src/app.py
+++ b/docker/storperf-reporting/src/app.py
@@ -39,6 +39,20 @@ def get_data(data):
def success():
try:
URL = session["url"]
+ if URL.find("jobs") is not -1 and URL.find("metadata") is -1:
+ data = urllib.urlopen(URL).read()
+ data = json.loads(data)
+ temp = data["job_ids"]
+ print temp
+ if temp:
+ info = {}
+ for ID in temp:
+ url = URL + "?id=" + ID + "&type=metadata"
+ data_temp = urllib.urlopen(url).read()
+ data_temp = json.loads(data_temp)
+ report_data = get_data(data_temp)[-1]
+ info[ID] = report_data
+ return render_template('plot_jobs.html', results=info)
if validators.url(URL):
data = urllib.urlopen(URL).read()
else: