|  |  | @ -158,9 +158,9 @@ def get_usage_detail(): | 
			
		
	
		
		
			
				
					
					|  |  |  | def app_status() : |  |  |  | def app_status() : | 
			
		
	
		
		
			
				
					
					|  |  |  |     	""" |  |  |  |     	""" | 
			
		
	
		
		
			
				
					
					|  |  |  | 		This function aggregates the number of crashes/running/idle instances found in the past 24 log entries |  |  |  | 		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 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 = [] |  |  |  | 	r = [] | 
			
		
	
		
		
			
				
					
					|  |  |  |     	try: |  |  |  |     	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 |  |  |  | 		#@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] |  |  |  | 		r = r[nid][aid] | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	except Exception,e: |  |  |  | 	except Exception,e: | 
			
		
	
		
		
			
				
					
					|  |  |  | 		print e |  |  |  | 		print e | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 	 | 
			
		
	
		
		
			
				
					
					|  |  |  | 	return json.dumps(r)	 |  |  |  | 	return json.dumps(r)	 | 
			
		
	
		
		
			
				
					
					|  |  |  | #@app.route('/get/<id>') |  |  |  | #@app.route('/get/<id>') | 
			
		
	
		
		
			
				
					
					|  |  |  | #def procs(id): |  |  |  | #def procs(id): | 
			
		
	
	
		
		
			
				
					|  |  | 
 |