summaryrefslogtreecommitdiffstats
path: root/rest_server.py
diff options
context:
space:
mode:
authormbeierl <mark.beierl@dell.com>2017-02-17 17:43:39 -0500
committermbeierl <mark.beierl@dell.com>2017-02-17 17:43:54 -0500
commit2994748e8112feccf870ff9db923040346dfee60 (patch)
treeb3bc0bfe0b353eac514c6c0668b1511473ef5698 /rest_server.py
parentac7b5490cb305468b0bd961fc5caad9c51b8b77b (diff)
Steady State Metrics
Changes the overall value of all metrics to be based on the calculated steady state values instead of the average for the entire run. Change-Id: I121929d5fe2dd43df7f289b82e9f5291c9ea9aab JIRA: STORPERF-107 Signed-off-by: mbeierl <mark.beierl@dell.com>
Diffstat (limited to 'rest_server.py')
-rw-r--r--rest_server.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/rest_server.py b/rest_server.py
index 5c84fdb..20c1783 100644
--- a/rest_server.py
+++ b/rest_server.py
@@ -7,20 +7,19 @@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-import io
import json
-import logging
import logging.config
import os
-from storperf.db.job_db import JobDB
-from storperf.plot.barchart import Barchart
-from storperf.storperf_master import StorPerfMaster
import sys
from flask import abort, Flask, request, jsonify, send_from_directory
from flask_restful import Resource, Api, fields
from flask_restful_swagger import swagger
+from storperf.db.job_db import JobDB
+from storperf.plot.barchart import Barchart
+from storperf.storperf_master import StorPerfMaster
+
app = Flask(__name__, static_url_path="")
api = swagger.docs(Api(app), apiVersion='1.0')
@@ -37,7 +36,6 @@ def send_swagger(path):
def results_page(job_id):
job_db = JobDB()
- params = {}
params = job_db.fetch_workload_params(job_id)