1 <%@ page language="java" contentType="text/html;charset=UTF-8" session="true" 2 %><%@ taglib uri="http://www.anotheria.net/ano-tags" prefix="ano" 3 %><!DOCTYPE html> 4 <html xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/html"> 5 6 <jsp:include page="../../shared/jsp/Header.jsp" flush="false"/> 7 8 <section id="main"> 9 <jsp:include page="../../shared/jsp/Alerts.jsp"/> 10 <div class="content"> 11 12 <%-- Overview box --%> 13 <div class="box"> 14 <div class="box-title"> 15 <a class="accordion-toggle tooltip-bottom" title="Close/Open" data-toggle="collapse" href="#collapsestatus"><i class="fa fa-caret-down"></i></a> 16 <h3 class="pull-left"> 17 Entry points (Beta Feature) 18 </h3> 19 <div class="box-right-nav"> 20 <a href="" class="tooltip-bottom" title="Help"><i class="fa fa-info-circle"></i></a> 21 </div> 22 </div> 23 <div id="collapsestatus" class="box-content accordion-body collapse in"> 24 <table class="table table-striped tablesorter"> 25 <thead> 26 <tr> 27 <th>Name <i class="fa fa-caret-down"></i></th> 28 <th>Current Requests <i class="fa fa-caret-down"></i></th> 29 <th>Total Requests <i class="fa fa-caret-down"></i></th> 30 <th class="th-actions"></th> 31 </tr> 32 </thead> 33 <tbody> 34 <ano:iterate name="entryPoints" type="net.anotheria.moskito.webui.nowrunning.api.EntryPointAO" id="entrypoint" indexId="index"> 35 <tr> 36 <td>${entrypoint.producerId}</td> 37 <td>${entrypoint.currentRequestCount}</td> 38 <td>${entrypoint.totalRequestCount}</td> 39 <td> </td> 40 </tr> 41 </ano:iterate> 42 </tbody> 43 </table> 44 </div> 45 </div> 46 47 48 49 <ano:iterate name="entryPoints" type="net.anotheria.moskito.webui.nowrunning.api.EntryPointAO" id="entrypoint" indexId="index"> 50 <ano:equal name="entrypoint" property="currentlyRunning" value="true"> 51 <div class="box"> 52 <div class="box-title"> 53 <a class="accordion-toggle tooltip-bottom" title="Close/Open" data-toggle="collapse" href="#collapse${entrypoint.producerId}"><i class="fa fa-caret-down"></i></a> 54 <h3 class="pull-left"> 55 Now Running in ${entrypoint.producerId} 56 </h3> 57 <div class="box-right-nav"> 58 <a href="" class="tooltip-bottom" title="Help"><i class="fa fa-info-circle"></i></a> 59 </div> 60 </div> 61 <div id="collapse${entrypoint.producerId}" class="box-content accordion-body collapse in"> 62 <table class="table table-striped tablesorter"> 63 <thead> 64 <tr> 65 <th>Start <i class="fa fa-caret-down"></i></th> 66 <th>Age<i class="fa fa-caret-down"></i></th> 67 <th>Description<i class="fa fa-caret-down"></i></th> 68 <th class="th-actions"></th> 69 </tr> 70 </thead> 71 <tbody> 72 <ano:iterate id="measurement" type="net.anotheria.moskito.webui.nowrunning.api.MeasurementAO" name="entrypoint" property="currentMeasurements"> 73 <tr> 74 <td>${measurement.startTimestamp}</td> 75 <td>${measurement.age}</td> 76 <td>${measurement.description}</td> 77 <td> </td> 78 </tr> 79 </ano:iterate> 80 81 </tbody> 82 </table> 83 </div> 84 </div> 85 </ano:equal> 86 </ano:iterate> 87 88 89 <ano:iterate name="entryPoints" type="net.anotheria.moskito.webui.nowrunning.api.EntryPointAO" id="entrypoint" indexId="index"> 90 <div class="box"> 91 <div class="box-title"> 92 <a class="accordion-toggle tooltip-bottom" title="Close/Open" data-toggle="collapse" href="#collapsepast${entrypoint.producerId}"><i class="fa fa-caret-down"></i></a> 93 <h3 class="pull-left"> 94 Past Requests in in ${entrypoint.producerId} 95 </h3> 96 <div class="box-right-nav"> 97 <a href="" class="tooltip-bottom" title="Help"><i class="fa fa-info-circle"></i></a> 98 </div> 99 </div> 100 <div id="collapsepast${entrypoint.producerId}" class="box-content accordion-body collapse in"> 101 <table class="table table-striped tablesorter"> 102 <thead> 103 <tr> 104 <th>Position <i class="fa fa-caret-down"></i></th> 105 <th>Start <i class="fa fa-caret-down"></i></th> 106 <th>End <i class="fa fa-caret-down"></i></th> 107 <th>Duration ms<i class="fa fa-caret-down"></i></th> 108 <th>Age sec<i class="fa fa-caret-down"></i></th> 109 <th>Description<i class="fa fa-caret-down"></i></th> 110 <th class="th-actions"></th> 111 </tr> 112 </thead> 113 <tbody> 114 <ano:iterate indexId="position" id="measurement" type="net.anotheria.moskito.webui.nowrunning.api.MeasurementAO" name="entrypoint" property="pastMeasurements"> 115 <tr> 116 <td>${position}</td> 117 <td>${measurement.startTimestamp}</td> 118 <td>${measurement.endTimestamp}</td> 119 <td>${measurement.duration}</td> 120 <td>${measurement.age}</td> 121 <td>${measurement.description}</td> 122 <td> </td> 123 </tr> 124 </ano:iterate> 125 126 </tbody> 127 </table> 128 </div> 129 </div> 130 </ano:iterate> 131 <%-- 132 <div class="box"> 133 <div class="box-title"> 134 <a class="accordion-toggle tooltip-bottom" title="Close/Open" data-toggle="collapse" href="#collapsehistory"><i class="fa fa-caret-down"></i></a> 135 <h3 class="pull-left"> 136 History (newest first) 137 </h3> 138 <div class="box-right-nav"> 139 <a href="" class="tooltip-bottom" title="Help"><i class="fa fa-info-circle"></i></a> 140 </div> 141 </div> 142 <div id="collapsehistory" class="box-content accordion-body collapse in h-scrollbar"> 143 <table class="table table-striped tablesorter"> 144 <thead> 145 <tr> 146 <th>Timestamp <i class="fa fa-caret-down"></i></th> 147 <th>Name <i class="fa fa-caret-down"></i></th> 148 <th>Status change <i class="fa fa-caret-down"></i></th> 149 <th>Value change <i class="fa fa-caret-down"></i></th> 150 </tr> 151 </thead> 152 <tbody> 153 <ano:iterate name="alerts" type="net.anotheria.moskito.webui.threshold.api.ThresholdAlertAO" id="alert" indexId="index"> 154 <tr> 155 <td>${alert.timestamp}</td> 156 <td><a class="threshold-update-link" data-id="${alert.id}" href="#">${alert.name}</a></td> 157 <td><i class="status status-${alert.oldColorCode}"></i> <i class="fa fa-long-arrow-right"></i> <i class="status status-${alert.newColorCode}"></i></td> 158 <td>${alert.oldValue} <i class="fa fa-long-arrow-right"></i> ${alert.newValue}</td> 159 </tr> 160 </ano:iterate> 161 </tbody> 162 </table> 163 </div> 164 </div> 165 --%> 166 </div> 167 168 <div class="modal fade modal-danger" id="mskThresholdDelete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 169 <div class="modal-dialog"> 170 <div class="modal-content"> 171 <div class="modal-header"> 172 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> 173 <h4 class="modal-title" id="myModalLabel">Delete this Threshold?</h4> 174 </div> 175 <div class="modal-footer text-center"> 176 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> 177 <a href="#" class="btn btn-danger threshold-delete-confirm">Delete</a> 178 </div> 179 </div> 180 </div> 181 </div> 182 183 <jsp:include page="../../shared/jsp/Footer.jsp" flush="false"/> 184 <%-- jsp:include page="snippet/ThresholdUpdateModal.jsp"/ --%> 185 186 <script type="text/javascript"> 187 $(function () { 188 $('.actions-links').on('click','.delete-icon', function() { 189 var dataid = $(this).attr('data-id'); 190 $('.threshold-delete-confirm').attr("href", "mskThresholdDelete?pId=" + dataid); 191 }); 192 193 // Event listener for threshold update click 194 $('.threshold-update-link').click(function (e) { 195 e.preventDefault(); 196 197 var thresholdId = $(this).data('id'); 198 showThresholdUpdateModal(thresholdId); 199 }); 200 }); 201 </script> 202 203 </section> 204 205 </body> 206 </html> 207 208