diff --git a/src/api/index.py b/src/api/index.py index 24d45ec..f6b49f3 100644 --- a/src/api/index.py +++ b/src/api/index.py @@ -158,9 +158,9 @@ def get_usage_detail(): def app_status() : """ This function aggregates the number of crashes/running/idle instances found in the past 24 log entries - + for a particular application @param nid node identifier e.g: app@zulu.io - @param aid application identifier e.g: kate, firefox, chrome ... specified in the configuraiton + @param app application identifier e.g: kate, firefox, chrome ... specified in the configuraiton """ r = [] try: @@ -172,9 +172,12 @@ def app_status() : # #@TODO: Once the back-end enables the nodes in which the application is running, uncomment the line below # + print[nid,aid] r = r[nid][aid] + except Exception,e: print e + return json.dumps(r) #@app.route('/get/') #def procs(id):