forked from rubrikinc/rubrik-scripts-for-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathenvision_table_to_html.py
72 lines (59 loc) · 17.1 KB
/
envision_table_to_html.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
from RubrikSession import RubrikSession
from getpass import getpass
import requests
import datetime
import re
#report_id = '44d1229d-6d22-418a-abfd-42100480439b'
report_id = 'b306ba74-240f-4a23-a51e-e86ca2175956'
BASE_HTML = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> \
<html xmlns="http://www.w3.org/1999/xhtml"> \
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> \
<meta name="viewport" content="width=device-width, initial-scale=1.0"> \
<link href="https://fonts.googleapis.com/css?family=Ubuntu:500" rel="stylesheet"></head> \
<body> \
<style> \
#leftcolumn dl{display:block;margin-left:20px;} \
#leftcolumn dt{font-size:120%;color:#000;margin:10px 0 0;padding:0;} \
#leftcolumn dt.imp strong{font-weight:normal;color:red;} \
#leftcolumn dd{margin:0;padding:0;} \
#hor-minimalist-b{font-family:"Ubuntu", sans-serif;font-size:14px;background:#fff;width:480px;border-collapse:collapse;text-align:left;margin:20px;} \
#hor-minimalist-b th{font-size:16px;font-weight:600;color:#000;border-bottom:2px solid #000;padding:10px 30px;} \
#hor-minimalist-b td{border-bottom:1px solid #000;color:#000;padding:6px 8px;} \
#hor-minimalist-b tbody tr:hover td{color:#000;} \
h2, h3, h4 { margin-top: 0.65em; margin-bottom: 0.23em; } \
</style> \
<font face="Ubuntu"> \
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAABNCAYAAAEnajN5AAAAAXNSR0IArs4c6QAAAARnQU1B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C/S4aTBPk6bN0Le3wwTU13eyNRrnStjbWzZRpGuPZvv2D3mTydi4aO+5NdAHJ3Go/J/mcS8zyTbLvNUvbH+vjI/s2MInEu7jm3ZNKjYMQZ7Y5Tow3epjDQoB+9hUCkMUnTwyEw1xw5kzWJ8uuZ2hfKrCz7xND/wlk2QY/Zg8avxja5Q+EUiDcOngO+Xzh91Pvw0YNzunJMlMRnMliWu69V8pZBYXrXQPBKj+JT5CSGL/1HVJ3QJB3+ITgT+mgxIiBTTfnd1RWV1/ytJjfP+e9GJYd5mCLBWy0lLe8sVKSSux3vhuck3MK51AQZ868wxkvFmrUaXSBqic4Vf+Jt7PHZKL6HrTjW+Mf57TUf/EG7vFD4uU2O4ciHx78yyn7O3DaAacToMl5jlcOvcLt2P8vdjO1iCJe10Dy8ar+I06Lm7yeNPl4Z8aJ2ghG6/gUp3U9zes7+y3SDVXzQV8vdqSPV/anSrZYJ28jSJ+w7eBpXjkKzdTHTG/00Ze8zce+WSRjEa9b4KQ8FzU6+VT3eTLooiaAhN0mG0m6KnriW9vv4dWe33p1HNVE0rnVfEC+6N5ub2R3TpsZSci1HnreqzwKBDxulirHzbLkU+dK247+lHopoojXL3il4y62LVHL612n+EjHAmrtCl7pvser7gEy7gfiWeTjjSN9XHTv7knawVuptxzgifl89EiHN3rsaW/Lse/jqhfqVEQRRYwEHmX/Pdjf49UDW9xqviKKKKKIIooooogirm+MG/e/PqMGH6eXOQMAAAAASUVORK5CYII="> \
<h2> Second & Third Run - Protection Details Report </h2> \
<font size="4"><b>Report Run Time: July 19, 2017 </b></font> \
<br> \
<table id="hor-minimalist-b" summary="Job Summary Details"><tr>'
#Ask Initial Questions
rubrik_mgmt_ip = raw_input("Enter Rubrik MGMT ip: ")
rubrik_user = raw_input("Enter in Rubrik user: ")
rubrik_password = getpass("Enter in Rubrik password: ")
#Instantiate Rubrik Session
rubrik = RubrikSession(rubrik_mgmt_ip, rubrik_user, rubrik_password)
#Get Table Data from Report
params = {}
params['limit'] = '9999'
table_data = rubrik.get_envision_table(report_id, params)
#Add Row Header
for header in table_data['columns']:
BASE_HTML += '<th>' + header + '</th>'
#Add Rows
for row in table_data['data']:
row_string = ""
for value in row:
index = row.index(value)
column_title = table_data['columns'][index]
if re.findall('Percent', column_title):
value = "{:.1%}".format(float(value))
row_string += '<th>' + value + '</th>'
BASE_HTML += '<tr>' + row_string + '</tr>'
BASE_HTML += '</table>'
#Output File
with open('daily_report_2.html', 'w+') as f:
f.write(BASE_HTML)
f.close()
print 'hello'