Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/27/14 16:39:43 (11 years ago)
Author:
mroscoe
Message:
 
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";}
    43
    5 <hgroup class="title">
    6     <h1>@ViewBag.Title.</h1>
    7     <h2>@ViewBag.Message</h2>
    8 </hgroup>
     4<h1>@ViewBag.Title</h1>
    95
    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>
    2224</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  
    66
    77<h1>Current Status</h1>
    8 
    9 @*
    10 Original code
    11 <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 
    408<section class="chartContainer">
    419  <h1 class="title">Current Hive Status</h1>
    4210  <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>*@
    5511  <div id="CurrentCPUUtilization"></div>
    5612  <div id="CurrentTotalUsedCores"></div>
     
    11874      $(".date").datepicker({
    11975        dateFormat: "yy-mm-dd",
    120         onSelect: function () { refreshCharts(); }
     76        onSelect: function () { RefreshCharts(); }
    12177      });
    12278
    12379      $("#Refresh").click(function () {
    124         refreshCharts();
     80        RefreshCharts();
    12581      });
    126 
    127       //resizeSmoothie();
    128       //createSmoothie();
    12982    });
    13083
    131     function refreshCharts() {
     84    function RefreshCharts() {
    13285      var startDate = $('#Start').val();
    13386      var endDate = $('#End').val();
     
    13891    }
    13992
    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 below
    148       @ChartHelper.SetSmoothieCanvas("CurrentCPUUtilization","5000")
    149       @ChartHelper.SetSmoothieCanvas("CurrentTotalUsedCores","5000")
    150       @ChartHelper.SetSmoothieCanvas("CurrentTotalUsedMemory","5000")
    151 
    152       //Set interval to run ajax and get new values
    153       @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 db
    162       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 
    16993    $(document).ready(function () {
    17094      @ChartHelper.SetStreamingProperties(1000,20,10)
     
    17498      @ChartHelper.CreateStreamChart("CurrentMemory", "CurrentTotalUsedMemory",Url.Action("CurrentMemory","ChartData"),"Current Total vs. Used Memory")
    17599
    176       function doUpdate() {
     100      function DoUpdate() {
    177101        @ChartHelper.UpdateStreamChart("CurrentCPU","CurrentCPUUtilization", Url.Action("CurrentCpuUtilization","ChartData"),"FixedY")
    178102        @ChartHelper.UpdateStreamChart("CurrentCores","CurrentTotalUsedCores", Url.Action("CurrentCores","ChartData"))
    179103        @ChartHelper.UpdateStreamChart("CurrentMemory","CurrentTotalUsedMemory", Url.Action("CurrentMemory","ChartData"))
    180         setTimeout(doUpdate, refreshRate);
     104        setTimeout(DoUpdate, refreshRate);
    181105      }
    182106
    183       doUpdate();
     107      DoUpdate();
    184108
    185109    });
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired/Admin.cshtml

    r11036 r11053  
    6363      <button id="UserApply">Apply</button>
    6464    </fieldset>
    65     <button id="ScrollTop">^</button>
    6665    <section id="TasksContainer" class="tabDataContainer"></section>
    6766  </section>
     
    113112    <section id="SlavesContainer" class="tabDataContainer"></section>
    114113  </section>
    115   //Slave overview
     114  //Exception overview
    116115  <section id="ExceptionOverviewTab" class="tabSection">
    117116    <fieldset class="filterChoices">
     
    119118      <label>Date</label>
    120119      <input type="checkbox" name="filterChoice" value="ExceptionDate" checked="checked">
    121       <label>Users</label>
    122       <input type="checkbox" name="filterChoice" value="ExceptionUser">
     120      <label>Slave</label>
     121      <input type="checkbox" name="filterChoice" value="ExceptionSlave">
    123122      <label>Limit</label>
    124123      <select id="ExceptionLimit">
     
    138137        @Html.TextBox("ExceptionEnd", (DateTime.Now + new TimeSpan(1, 0, 0, 0)).ToString("yyyy-MM-dd"), new { @class = "date" })
    139138      </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>
    146144    </fieldset>
    147145    <section id="ExceptionContainer" class="tabDataContainer"></section>
    148146  </section>
     147  <button id="ScrollTop">^</button>
    149148}
    150149
     
    171170    var endDate;
    172171    var selectedUser;
     172    var selectedSlave;
    173173    var limit;
    174174    var pageNumber;
    175175    var userId;
    176     var numberTasks = 0;
    177176
    178177    $(document).ready(function () {
     
    218217    });
    219218
     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
    220228    function RefreshUser() {
    221229      selectedUser = $("#UserList").val();
     
    235243        taskState = $('#TaskState').val();
    236244      }
    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")
    238246      @ChartHelper.TasksForUser("TasksContainer", "Task", Url.Action("UserTask", "ChartData"), "RefreshUser", "selectedUser", "limit", "startDate", "endDate", "jobId", "taskState", "pageNumber")
    239247      pageNumber = null;
     
    243251    @ExceptionHelper.ScrollToException()
    244252
     253    //Task Overview
    245254    $("#TaskUserList").change(function () {
    246255      RefreshTask();
     
    254263    }
    255264
    256     $("#SlaveList").change(function () {
    257       RefreshSlave();
    258     });
    259 
     265    //Slave Overview
    260266    function RefreshSlave() {
    261267      selectedUser = null;
     
    270276        selectedUser = $('#SlaveUserList').val();
    271277      }
    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")
    273279      pageNumber = null;
    274280    }
    275281
    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")*@
    283306  </script>
    284307}
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/LoginRequired/UserTask.cshtml

    r11036 r11053  
    129129        taskState = $('#TaskState').val();
    130130      }
    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")
    132132      @ChartHelper.TasksForUser("TasksContainer","Task",Url.Action("UserTask", "ChartData"),"TaskInformation","userName","limit","startDate","endDate","jobId","taskState","pageNumber")
    133133      pageNumber = null;
  • branches/HiveStatistics/sources/HeuristicLab.Services.Hive.Statistics/3.3/Views/Shared/_Layout.cshtml

    r11020 r11053  
    2525                <li>@Html.MenuItem("Admin", "Admin", "LoginRequired")</li>
    2626                <li>@Html.MenuItem("About", "About", "Home")</li>
    27                 <li>@Html.MenuItem("Contact", "Contact", "Home")</li>
    2827            </ul>
    2928        </nav>
Note: See TracChangeset for help on using the changeset viewer.