- Timestamp:
- 06/27/14 16:39:43 (11 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/Home/About.cshtml
r9604 r11053 1 @{ 2 ViewBag.Title = "About"; 3 } 1 @using HeuristicLab.Services.Hive.Statistics.Helper 2 @{ViewBag.Title = "About";} 4 3 5 <hgroup class="title"> 6 <h1>@ViewBag.Title.</h1> 7 <h2>@ViewBag.Message</h2> 8 </hgroup> 4 <h1>@ViewBag.Title</h1> 9 5 10 <article> 11 <p> 12 Use this area to provide additional information. 13 </p> 14 15 <p> 16 Use this area to provide additional information. 17 </p> 18 19 <p> 20 Use this area to provide additional information. 21 </p> 6 <article class="aboutMain"> 7 <h2>Welcome to the HeuristicLab Hive status monitor.</h2> 8 <p>From this monitor you can view the status of your hive in different ways. 9 </p> 10 <p>The @Html.MenuItem("Home", "Index", "Home") page offers a general overview of both current and historic hive status. 11 </p> 12 <p>The @Html.MenuItem("User", "UserTask", "LoginRequired") page, which requires logging in as a user, gives an overview of tasks 13 belonging to the user, the Task Information tab, as well as the resources utilized by the user, the Task Overview tab. 14 </p> 15 <p>The @Html.MenuItem("Admin", "Admin", "LoginRequired") page requires logging in as a user with administrative priveleges and 16 offers many different options. The User Overview tab allows the administrator to view tasks belonging to any user. The Task 17 Overview tab offers a view of the resources utilized by any user. The Slave Overview tab provides a view of resource usage by on 18 individual slaves. The Exception Overview tab offers a view of exceptions which occured and the slave on which they occured. 19 </p> 20 <p>HeuristicLab development site: <a href="http://dev.heuristiclab.com/trac/hl/core">HeuristicLab Development</a> 21 </p> 22 <p>Support is available here: <a href="http://dev.heuristiclab.com/trac/hl/core/wiki/UsersSupport">HeuristicLab Support</a> 23 </p> 22 24 </article> 23 24 <aside>25 <h3>Aside Title</h3>26 <p>27 Use this area to provide additional information.28 </p>29 <ul>30 <li>@Html.ActionLink("Home", "Index", "Home")</li>31 <li>@Html.ActionLink("About", "About", "Home")</li>32 <li>@Html.ActionLink("Contact", "Contact", "Home")</li>33 </ul>34 </aside> -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/Home/Index.cshtml
r11020 r11053 6 6 7 7 <h1>Current Status</h1> 8 9 @*10 Original code11 <section>12 <table>13 <tr>14 <td>Overall Available Cores</td>15 <td>@Model.OverallCurrentlyAvailableCores</td>16 </tr>17 <tr>18 <td>Availabe Cores (real)</td>19 <td>@Model.CurrentlyAvailableCores</td>20 </tr>21 <tr>22 <td>Used Cores</td>23 <td>@Model.CurrentlyUsedCores</td>24 </tr>25 <tr>26 <td>System-Wide Waiting Tasks</td>27 <td>@Model.CurrentlyJobsWaiting</td>28 </tr>29 <tr>30 <td>Overall Avg. CPU Utilization</td>31 <td>@Model.OverallCpuUtilization</td>32 </tr>33 <tr>34 <td>Available Avg. CPU Utilization</td>35 <td>@Model.AvailableCpuUtilization</td>36 </tr>37 </table>38 </section>*@39 40 8 <section class="chartContainer"> 41 9 <h1 class="title">Current Hive Status</h1> 42 10 <button class="collapse">-</button> 43 @* <label id="lblCurrentCPUUtilization" class="smoothieLabel">Current CPU Utilization</label>44 <div class="smoothieHolder">45 <canvas id="CurrentCPUUtilization" class="smoothieChart"></canvas>46 </div>47 <label id="lblCurrentTotalUsedCores" class="smoothieLabel">Current Total and Used Cores</label>48 <div class="smoothieHolder">49 <canvas id="CurrentTotalUsedCores" class="smoothieChart"></canvas>50 </div>51 <label id="lblCurrentTotalUsedMemory" class="smoothieLabel">Current Total and Used Memory</label>52 <div class="smoothieHolder">53 <canvas id="CurrentTotalUsedMemory" class="smoothieChart"></canvas>54 </div>*@55 11 <div id="CurrentCPUUtilization"></div> 56 12 <div id="CurrentTotalUsedCores"></div> … … 118 74 $(".date").datepicker({ 119 75 dateFormat: "yy-mm-dd", 120 onSelect: function () { refreshCharts(); }76 onSelect: function () { RefreshCharts(); } 121 77 }); 122 78 123 79 $("#Refresh").click(function () { 124 refreshCharts();80 RefreshCharts(); 125 81 }); 126 127 //resizeSmoothie();128 //createSmoothie();129 82 }); 130 83 131 function refreshCharts() {84 function RefreshCharts() { 132 85 var startDate = $('#Start').val(); 133 86 var endDate = $('#End').val(); … … 138 91 } 139 92 140 @* function createSmoothie() {141 //Create new SmoothieChart(s)142 @ChartHelper.CreateSmoothieChart("CurrentCPUUtilization","rgb(179, 179, 179)","rgb(242, 242, 242)","rgb(0, 22, 84)")143 @ChartHelper.CreateSmoothieChart("CurrentTotalUsedCores","rgb(179, 179, 179)","rgb(242, 242, 242)","rgb(0, 22, 84)")144 @ChartHelper.CreateSmoothieChart("CurrentTotalUsedMemory","rgb(179, 179, 179)","rgb(242, 242, 242)","rgb(0, 22, 84)")145 146 //Second argument is delay in chart display, used to make drawing smooth,147 //Should be matched to interval time below148 @ChartHelper.SetSmoothieCanvas("CurrentCPUUtilization","5000")149 @ChartHelper.SetSmoothieCanvas("CurrentTotalUsedCores","5000")150 @ChartHelper.SetSmoothieCanvas("CurrentTotalUsedMemory","5000")151 152 //Set interval to run ajax and get new values153 @ChartHelper.AssignTimeSeries("averageUsage", "CurrentCPUUtilization", "rgb(0, 255, 0)", "rgba(0, 255, 0, 0.4)")154 @ChartHelper.AssignTimeSeries("overallCore", "CurrentTotalUsedCores", "rgb(0, 255, 0)", "rgba(0, 255, 0, 0.4)")155 @ChartHelper.AssignTimeSeries("usedCore", "CurrentTotalUsedCores", "rgb(242, 182, 70)", "rgba(255, 199, 94, 0.4)")156 @ChartHelper.AssignTimeSeries("overallMemory", "CurrentTotalUsedMemory", "rgb(0, 255, 0)", "rgba(0, 255, 0, 0.4)")157 @ChartHelper.AssignTimeSeries("usedMemory", "CurrentTotalUsedMemory", "rgb(242, 182, 70)", "rgba(255, 199, 94, 0.4)")158 159 setInterval(function () { getChartUpdate() }, 5000);160 161 //Hit by interval, jQuery ajax request to get new data from db162 function getChartUpdate() {163 @ChartHelper.UpdateChartData("CurrentCPUUtilization", Url.Action("CurrentCpuUtilization","ChartData"))164 @ChartHelper.UpdateChartData("CurrentTotalUsedCores", Url.Action("CurrentCores","ChartData"))165 @ChartHelper.UpdateChartData("CurrentTotalUsedMemory", Url.Action("CurrentMemory","ChartData"))166 }167 }*@168 169 93 $(document).ready(function () { 170 94 @ChartHelper.SetStreamingProperties(1000,20,10) … … 174 98 @ChartHelper.CreateStreamChart("CurrentMemory", "CurrentTotalUsedMemory",Url.Action("CurrentMemory","ChartData"),"Current Total vs. Used Memory") 175 99 176 function doUpdate() {100 function DoUpdate() { 177 101 @ChartHelper.UpdateStreamChart("CurrentCPU","CurrentCPUUtilization", Url.Action("CurrentCpuUtilization","ChartData"),"FixedY") 178 102 @ChartHelper.UpdateStreamChart("CurrentCores","CurrentTotalUsedCores", Url.Action("CurrentCores","ChartData")) 179 103 @ChartHelper.UpdateStreamChart("CurrentMemory","CurrentTotalUsedMemory", Url.Action("CurrentMemory","ChartData")) 180 setTimeout( doUpdate, refreshRate);104 setTimeout(DoUpdate, refreshRate); 181 105 } 182 106 183 doUpdate();107 DoUpdate(); 184 108 185 109 }); -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired/Admin.cshtml
r11036 r11053 63 63 <button id="UserApply">Apply</button> 64 64 </fieldset> 65 <button id="ScrollTop">^</button>66 65 <section id="TasksContainer" class="tabDataContainer"></section> 67 66 </section> … … 113 112 <section id="SlavesContainer" class="tabDataContainer"></section> 114 113 </section> 115 // Slaveoverview114 //Exception overview 116 115 <section id="ExceptionOverviewTab" class="tabSection"> 117 116 <fieldset class="filterChoices"> … … 119 118 <label>Date</label> 120 119 <input type="checkbox" name="filterChoice" value="ExceptionDate" checked="checked"> 121 <label> Users</label>122 <input type="checkbox" name="filterChoice" value="Exception User">120 <label>Slave</label> 121 <input type="checkbox" name="filterChoice" value="ExceptionSlave"> 123 122 <label>Limit</label> 124 123 <select id="ExceptionLimit"> … … 138 137 @Html.TextBox("ExceptionEnd", (DateTime.Now + new TimeSpan(1, 0, 0, 0)).ToString("yyyy-MM-dd"), new { @class = "date" }) 139 138 </fieldset> 140 <fieldset id="FilterExceptionUser" class="filterContainer"> 141 <legend>User</legend> 142 <select id="ExceptionUserList"> 143 </select> 144 </fieldset> 145 <button id="ExcpetionApply">Apply</button> 139 <fieldset id="FilterExceptionSlave" class="filterContainer"> 140 <legend>Slave</legend> 141 @Html.DropDownList("Slaves") 142 </fieldset> 143 <button id="ExceptionApply">Apply</button> 146 144 </fieldset> 147 145 <section id="ExceptionContainer" class="tabDataContainer"></section> 148 146 </section> 147 <button id="ScrollTop">^</button> 149 148 } 150 149 … … 171 170 var endDate; 172 171 var selectedUser; 172 var selectedSlave; 173 173 var limit; 174 174 var pageNumber; 175 175 var userId; 176 var numberTasks = 0;177 176 178 177 $(document).ready(function () { … … 218 217 }); 219 218 219 $(".tabButton").click(function () { 220 var sender = $(this).attr('id'); 221 $(".tabButton").css({ 'border-bottom': '1px solid #8297F5', 'background': 'none' }); 222 $(this).css({ 'border-bottom': '1px solid #E0E6FF', 'background-color': '#E0E6FF' }); 223 $(".tabSection").css('display', 'none'); 224 $("#" + sender.slice(0, -6) + "Tab").css('display', 'block'); 225 }) 226 227 //User Overview 220 228 function RefreshUser() { 221 229 selectedUser = $("#UserList").val(); … … 235 243 taskState = $('#TaskState').val(); 236 244 } 237 @ExceptionHelper.UserExceptions("TasksContainer", Url.Action("TaskExceptions", "ExceptionData"), " selectedUser", "limit", "startDate", "endDate", "jobId", "taskState")245 @ExceptionHelper.UserExceptions("TasksContainer", Url.Action("TaskExceptions", "ExceptionData"), "limit", "selectedUser", "startDate", "endDate", "jobId", "taskState") 238 246 @ChartHelper.TasksForUser("TasksContainer", "Task", Url.Action("UserTask", "ChartData"), "RefreshUser", "selectedUser", "limit", "startDate", "endDate", "jobId", "taskState", "pageNumber") 239 247 pageNumber = null; … … 243 251 @ExceptionHelper.ScrollToException() 244 252 253 //Task Overview 245 254 $("#TaskUserList").change(function () { 246 255 RefreshTask(); … … 254 263 } 255 264 256 $("#SlaveList").change(function () { 257 RefreshSlave(); 258 }); 259 265 //Slave Overview 260 266 function RefreshSlave() { 261 267 selectedUser = null; … … 270 276 selectedUser = $('#SlaveUserList').val(); 271 277 } 272 @ChartHelper.SlaveInfoChart("SlavesContainer", Url.Action("SlaveInfo","ChartData"),"limit","startDate","endDate","selectedUser","RefreshSlave","pageNumber")278 @ChartHelper.SlaveInfoChart("SlavesContainer", Url.Action("SlaveInfo", "ChartData"), "limit", "startDate", "endDate", "selectedUser", "RefreshSlave", "pageNumber") 273 279 pageNumber = null; 274 280 } 275 281 276 $(".tabButton").click(function () { 277 var sender = $(this).attr('id'); 278 $(".tabButton").css({'border-bottom' : '1px solid #8297F5', 'background' : 'none' }); 279 $(this).css({ 'border-bottom': '1px solid #E0E6FF', 'background-color': '#E0E6FF' }); 280 $(".tabSection").css('display', 'none'); 281 $("#" + sender.slice(0, -6) + "Tab").css('display', 'block'); 282 }) 282 @ChartHelper.ResizeSlaves() 283 284 //Exceptions Overview 285 $("#ExceptionSlaveList").change(function () { 286 RefreshException(); 287 }); 288 289 function RefreshException() { 290 selectedSlave = null; 291 limit = $("#ExceptionLimit").val(); 292 startDate = null; 293 endDate = null; 294 if ($("[value='ExceptionDate']").is(":checked")) { 295 startDate = $('#ExceptionStart').val(); 296 endDate = $('#ExceptionEnd').val(); 297 } 298 if ($("[value='ExceptionSlave']").is(':checked')) { 299 selectedSlave = $('#Slaves').val(); 300 } 301 @ExceptionHelper.UserExceptions("ExceptionContainer", Url.Action("TaskExceptions", "ExceptionData"), "limit", null, "startDate", "endDate", null, null) 302 @ExceptionHelper.ShowErrors("ExceptionContainer") 303 @ExceptionHelper.ErrorsOnSlaves("ExceptionContainer",Url.Action("SlaveExceptions", "ExceptionData"),"limit","startDate", "endDate","selectedSlave") 304 } 305 @*@ExceptionHelper.ShowSlaveInfo(Url.Action("SlaveInfo", "ChartData"),"limit","startDate","endDate")*@ 283 306 </script> 284 307 } -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired/UserTask.cshtml
r11036 r11053 129 129 taskState = $('#TaskState').val(); 130 130 } 131 @ExceptionHelper.UserExceptions("TasksContainer",Url.Action("TaskExceptions", "ExceptionData")," userName","limit","startDate","endDate","jobId","taskState")131 @ExceptionHelper.UserExceptions("TasksContainer",Url.Action("TaskExceptions", "ExceptionData"),"limit","userName","startDate","endDate","jobId","taskState") 132 132 @ChartHelper.TasksForUser("TasksContainer","Task",Url.Action("UserTask", "ChartData"),"TaskInformation","userName","limit","startDate","endDate","jobId","taskState","pageNumber") 133 133 pageNumber = null; -
branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/Shared/_Layout.cshtml
r11020 r11053 25 25 <li>@Html.MenuItem("Admin", "Admin", "LoginRequired")</li> 26 26 <li>@Html.MenuItem("About", "About", "Home")</li> 27 <li>@Html.MenuItem("Contact", "Contact", "Home")</li>28 27 </ul> 29 28 </nav>
Note: See TracChangeset
for help on using the changeset viewer.