changes based on feedback
This commit is contained in:
parent
5bf3c50615
commit
a242b42d30
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
.*.swp
|
.*.swp
|
||||||
conf/servers.json
|
conf/servers.json
|
||||||
|
*.xlsx
|
||||||
|
|
|
@ -37,6 +37,7 @@ thanks to the built-in web server, it is displayed in a single HTML page.
|
||||||
#### Python libaries
|
#### Python libaries
|
||||||
|
|
||||||
- `yum install python-requests python-xmltodict python-simplejson`
|
- `yum install python-requests python-xmltodict python-simplejson`
|
||||||
|
- `pip install xlsxwriter`
|
||||||
|
|
||||||
## Requisites
|
## Requisites
|
||||||
|
|
||||||
|
|
|
@ -87,8 +87,7 @@ class monitDashboard(web.application):
|
||||||
class index(object):
|
class index(object):
|
||||||
def GET(self):
|
def GET(self):
|
||||||
return render.index(output=getMonit(),
|
return render.index(output=getMonit(),
|
||||||
now=datetime.datetime.now(),
|
now=datetime.datetime.now())
|
||||||
download_api=os.environ['DOWNLOAD_API_URL'])
|
|
||||||
|
|
||||||
class help(object):
|
class help(object):
|
||||||
def GET(self):
|
def GET(self):
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
$def with (output, now, download_api)
|
$def with (output, now)
|
||||||
|
|
||||||
<body onload="draw($output[0]['s_rate']);">
|
<body onload="draw($output[0]['s_rate']);">
|
||||||
$ errors = 0
|
$ errors = 0
|
||||||
$ color = "green"
|
$ color = "green"
|
||||||
<div>
|
<div>
|
||||||
<div class="download-header">
|
<div class="download-header">
|
||||||
<button class="download-button" onclick="window.location.href = '$download_api';">Download Report</button>
|
<button class="download-button" onclick="window.location.href = 'download';">Download Report</button>
|
||||||
</div>
|
</div>
|
||||||
<div style="height: 38%; overflow-y: scroll; overflow-x: hidden;">
|
<div style="height: 38%; overflow-y: scroll; overflow-x: hidden;">
|
||||||
$for server in range(len(output)):
|
$for server in range(len(output)):
|
||||||
|
|
Loading…
Reference in a new issue