示例#1
0
文件: views.py 项目: huwei0512/devops
def logs():

    topn = request.args.get('topn', 10)
    topn = int(topn) if str(topn).isdigit() else 10

    rt_list = loganalysis.get_topn(topn=topn)
    return render_template('logs.html', rt_list=rt_list, title="topn_log")
示例#2
0
def log_show():
    topn=request.args.get('topn',10)
    topn = int(topn)  if str(topn).isdigit() else 10
    rt_list = get_topn(topn=topn)
    return render_template('log_show.html',rt_list=rt_list)
示例#3
0
文件: views.py 项目: ryan2333/reboot
def logs():
    topn = request.args.get('topn', 10)
    topn = int(topn) if str(topn).isdigit() else 10

    rt_list = loganalysis.get_topn(topn=topn)
    return render_template('logs.html', rt_list=rt_list, title='topn log')
示例#4
0
def log():
    topn = request.args.get('topn',10)
    topn = int(topn) if str(topn).isdigit() else 10

    rt_list = get_topn(topn=topn)
    return render_template('log.html',rt_list=rt_list,title_log='topn log')