forked from HappyFaceMonitoring/HappyFaceModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMSPhedexErrorLog.html
107 lines (104 loc) · 2.93 KB
/
CMSPhedexErrorLog.html
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<%inherit file="/module_base.html" />
<%def name="content()">
<script type="text/javascript">
$(function(){
var form_id = "#${module.instance_name}_plot_form";
$("#${module.instance_name}_toggle").click(function(){
var boxes = $(form_id+" :checkbox");
boxes.prop("checked", !boxes.is(":checked"));
});
function ${module.instance_name}_row_button(group) {
$(form_id+" :hidden").remove();
$(form_id).append('<input type="hidden" name="label" value="1" />');
$("id^='${module.instance_name}_group_'").each(function(idx, element) {
console.log("element.name");
});
return false;
};
});
</script>
<form>
<table class="TableData">
%if module.dataset["summary"] == 0:
<tr class = 'ok'> <td> No errors detected </td> </tr>
</table></form>
%else:
<tr class='report' >
<td> failed transfers </td>
<td> ${int(module.dataset["summary"])}</td>
</tr>
<tr>
<td colspan=2 class=center> failed transfers details </td>
</tr>
<tr class=${module.dataset["destination_status"]}>
<td>failed transfers due to destination</td>
<td> ${int(module.dataset["destination"])}</td>
</tr>
<tr class=${module.dataset["source_status"]}>
<td>failed transfers due to source</td>
<td> ${int(module.dataset["source"])}</td>
</tr>
<tr class=${module.dataset["transfer_status"]}>
<td>failed transfers due to transfer</td>
<td> ${int(module.dataset["transfer"])}</td>
</tr>
<tr class=${module.dataset["unknown_status"]}>
<td>failed transfers due to unknown</td>
<td> ${int(module.dataset["unknown"])}</td>
</tr>
<tr class=${module.dataset["destination_status"]}>
<td>failed transfers due to destination</td>
<td> ${'%.1f' %module.dataset["frac_dest"]}%</td>
</tr>
<tr class=${module.dataset["source_status"]}>
<td>failed transfers due to source</td>
<td> ${'%.1f' %module.dataset["frac_source"]}%</td>
</tr>
<tr class=${module.dataset["transfer_status"]}>
<td>failed transfers due to transfer</td>
<td> ${'%.1f' %module.dataset["frac_trans"]}%</td>
</tr>
<tr class=${module.dataset["unknown_status"]}>
<td>failed transfers due to unknown</td>
<td> ${'%.1f' %module.dataset["frac_unknown"]}%</td>
</tr>
</table>
</form>
<br/>
<input type="button" value="details" onfocus="this.blur()" onclick="$('#${module.instance_name}_details').slideToggle()" />
<div class="DetailedInfo" id="${module.instance_name}_details" style="display:none;">
<table class='TableData' >
%for i,group in enumerate(details):
%if group['transfer'] != 0:
<tr>
<td> ${group['node']}</td>
<td> ${group['transfer']}</td>
<td> ${group['trans_message']}</td>
</tr>
%endif
%if group['source'] != 0:
<tr>
<td> ${group['node']}</td>
<td> ${group['source']}</td>
<td> ${group['source_message']}</td>
</tr>
%endif
%if group['destination'] != 0:
<tr>
<td> ${group['node']}</td>
<td> ${group['destination']}</td>
<td> ${group['dest_message']}</td>
</tr>
%endif
%if group['unknown'] != 0:
<tr>
<td> ${group['node']}</td>
<td> ${group['unknown']}</td>
<td> ${group['unknown_message']}</td>
</tr>
%endif
%endfor
</table>
</div>
%endif
</%def>