From 293855b14594a179baa15e7d6ef3010df0cbf887 Mon Sep 17 00:00:00 2001 From: "Steve L. Nyemba" Date: Mon, 3 Jul 2017 00:14:32 -0500 Subject: [PATCH] Bug fix with indentations --- src/api/index.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/api/index.py b/src/api/index.py index bafb9c9..6b2744a 100644 --- a/src/api/index.py +++ b/src/api/index.py @@ -49,7 +49,7 @@ factory = DataSourceFactory() # gReader = factory.instance(type=class_read,args=p) @app.route('/') -def dashboard(): +def home(): context = PARAMS['context'] if 'title' in PARAMS : title = PARAMS['title'] @@ -64,8 +64,8 @@ def dashboard(): return render_template('dashboard.html',context=context,title=title,app_names=apps) @app.route('/1/get/nodes') -def get_apps(): - """ +def get_nodes(): + """ This function returns the labels of applications for every node registered @param None e.g: apps@zulu.org @@ -80,7 +80,7 @@ def get_apps(): @app.route('/1/get/apps') def get_apps(): - """ + """ This function returns the applications for a given node @param node identifier e.g: apps@zulu.org """ @@ -98,7 +98,7 @@ def get_apps(): @app.route('/1/get/summary/') def get_summary(id): - """ + """ This function returns the summary i.e an overall assessment of resource usage It will pull information out of the user's data-store (database & document) specified in the configuration @param id {app_resources|app_status|folder_size} @@ -135,7 +135,6 @@ def get_usage_trend(): return json.dumps(r) @app.route("/1/app/usage/trend") - def get_usage_detail(): """ This function returns detailed information about usage per application monitored. It will return the 24 most recent observations in the logs