|
|
@ -49,7 +49,7 @@ factory = DataSourceFactory()
|
|
|
|
# gReader = factory.instance(type=class_read,args=p)
|
|
|
|
# gReader = factory.instance(type=class_read,args=p)
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/')
|
|
|
|
@app.route('/')
|
|
|
|
def dashboard():
|
|
|
|
def home():
|
|
|
|
context = PARAMS['context']
|
|
|
|
context = PARAMS['context']
|
|
|
|
if 'title' in PARAMS :
|
|
|
|
if 'title' in PARAMS :
|
|
|
|
title = PARAMS['title']
|
|
|
|
title = PARAMS['title']
|
|
|
@ -64,7 +64,7 @@ def dashboard():
|
|
|
|
return render_template('dashboard.html',context=context,title=title,app_names=apps)
|
|
|
|
return render_template('dashboard.html',context=context,title=title,app_names=apps)
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/1/get/nodes')
|
|
|
|
@app.route('/1/get/nodes')
|
|
|
|
def get_apps():
|
|
|
|
def get_nodes():
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
This function returns the labels of applications for every node registered
|
|
|
|
This function returns the labels of applications for every node registered
|
|
|
|
@param None
|
|
|
|
@param None
|
|
|
@ -135,7 +135,6 @@ def get_usage_trend():
|
|
|
|
return json.dumps(r)
|
|
|
|
return json.dumps(r)
|
|
|
|
|
|
|
|
|
|
|
|
@app.route("/1/app/usage/trend")
|
|
|
|
@app.route("/1/app/usage/trend")
|
|
|
|
|
|
|
|
|
|
|
|
def get_usage_detail():
|
|
|
|
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
|
|
|
|
This function returns detailed information about usage per application monitored. It will return the 24 most recent observations in the logs
|
|
|
|