summaryrefslogtreecommitdiffstats
path: root/rest_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_server.py')
-rw-r--r--rest_server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rest_server.py b/rest_server.py
index dcf6be5..27a8453 100644
--- a/rest_server.py
+++ b/rest_server.py
@@ -188,8 +188,8 @@ class Job(Resource):
def get(self):
metrics_type = "metrics"
- if request.args.get('metrics_type'):
- metrics_type = request.args.get('metrics_type')
+ if request.args.get('type'):
+ metrics_type = request.args.get('type')
workload_id = request.args.get('id')
@@ -338,4 +338,4 @@ if __name__ == "__main__":
setup_logging()
logging.getLogger("storperf").setLevel(logging.DEBUG)
- app.run(host='0.0.0.0', debug=True)
+ app.run(host='0.0.0.0', debug=True, threaded=True)