|
|
|
@ -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/<id>')
|
|
|
|
|
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
|
|
|
|
|