[12477] | 1 | @using HeuristicLab.Services.Access.DataTransfer
|
---|
| 2 | @using HeuristicLab.Services.Hive
|
---|
| 3 | <header class="view-header">
|
---|
| 4 | <ul class="nav nav-list nav-list-topbar pull-left">
|
---|
| 5 | <li>
|
---|
[12551] | 6 | <a ng-href="#/statistics/jobs">Jobs</a>
|
---|
[12477] | 7 | </li>
|
---|
[12584] | 8 | @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
|
---|
[12551] | 9 | <li>
|
---|
| 10 | <a ng-href="#/statistics/users">Users</a>
|
---|
| 11 | </li>
|
---|
| 12 | }
|
---|
| 13 | <li class="active">
|
---|
| 14 | <a ng-href="#/statistics/clients">Clients</a>
|
---|
| 15 | </li>
|
---|
| 16 | <li>
|
---|
| 17 | <a ng-href="#/statistics/groups">Groups</a>
|
---|
| 18 | </li>
|
---|
| 19 | @if (Request.IsAuthenticated && User.IsInRole(HiveRoles.Administrator)) {
|
---|
| 20 | <li>
|
---|
| 21 | <a ng-href="#/statistics/exceptions">Exceptions</a>
|
---|
| 22 | </li>
|
---|
| 23 | }
|
---|
[12477] | 24 | </ul>
|
---|
| 25 | </header>
|
---|
| 26 |
|
---|
| 27 | <div class="default-view-container">
|
---|
[12516] | 28 | <div class="row">
|
---|
| 29 | <div class="col-lg-12">
|
---|
| 30 | <div class="panel panel-default">
|
---|
| 31 | <div class="panel-heading">
|
---|
| 32 | <h3 class="panel-title">Current Clients</h3>
|
---|
| 33 | </div>
|
---|
| 34 | <div class="panel-body">
|
---|
[15261] | 35 | <table class="table table-hover table-condensed" ts-wrapper>
|
---|
[12516] | 36 | <thead>
|
---|
| 37 | <tr>
|
---|
| 38 | <th>#</th>
|
---|
[15261] | 39 | <th ts-criteria="Name">Client Name</th>
|
---|
| 40 | <th ts-criteria="GroupName">Group Name</th>
|
---|
| 41 | <th ts-criteria="UsedCores">Cores</th>
|
---|
| 42 | <th ts-criteria="CpuUtilization">Cpu Utilization</th>
|
---|
| 43 | <th ts-criteria="UsedMemory">Memory</th>
|
---|
| 44 | <th ts-criteria="State">State</th>
|
---|
[12516] | 45 | <th></th>
|
---|
| 46 | </tr>
|
---|
| 47 | </thead>
|
---|
[15261] | 48 | <tr ng-repeat="client in clientPage.Clients" ts-repeat>
|
---|
[12516] | 49 | <td>{{($index + 1)+((curClientsPage-1)*(clientsPageSize))}}</td>
|
---|
| 50 | <td>{{client.Name}}</td>
|
---|
[12525] | 51 | <td>
|
---|
| 52 | <a ng-show="client.GroupName" ng-href="#/statistics/groups/{{client.GroupId}}">{{client.GroupName}}</a>
|
---|
| 53 | <span ng-hide="client.GroupName">No Group</span>
|
---|
| 54 | </td>
|
---|
[12516] | 55 | <td>{{client.UsedCores}} / {{client.TotalCores}}</td>
|
---|
| 56 | <td>{{client.CpuUtilization | number: 2}} %</td>
|
---|
[12551] | 57 | <td>{{client.UsedMemory | kbToGB}} / {{client.TotalMemory | kbToGB}} GB</td>
|
---|
[12516] | 58 | <td>{{client.State}}</td>
|
---|
| 59 | <td>
|
---|
| 60 | <a ng-href="#/statistics/clients/{{client.Id}}">Details</a>
|
---|
| 61 | </td>
|
---|
| 62 | </tr>
|
---|
| 63 | <tr ng-hide="clientPage.Clients.length">
|
---|
[12551] | 64 | <td colspan="7" class="text-center">No clients found!</td>
|
---|
[12516] | 65 | </tr>
|
---|
| 66 | </table>
|
---|
| 67 | <div class="row text-center" ng-show="clientPage.TotalClients > clientPage.Clients.length">
|
---|
| 68 | <pagination max-size="10" total-items="clientPage.TotalClients" ng-model="curClientsPage" ng-change="changeClientsPage()" items-per-page="clientsPageSize"
|
---|
| 69 | boundary-links="true" rotate="false" num-pages="numPages"></pagination>
|
---|
| 70 | </div>
|
---|
| 71 | </div>
|
---|
| 72 | </div>
|
---|
| 73 | </div>
|
---|
| 74 | </div>
|
---|
[12477] | 75 |
|
---|
[12516] | 76 | <div class="row">
|
---|
| 77 | <div class="col-lg-12">
|
---|
| 78 | <div class="panel panel-default">
|
---|
| 79 | <div class="panel-heading">
|
---|
| 80 | <h3 class="panel-title">Expired Clients</h3>
|
---|
| 81 | </div>
|
---|
| 82 | <div class="panel-body">
|
---|
[15261] | 83 | <table class="table table-hover table-condensed" ts-wrapper>
|
---|
[12516] | 84 | <thead>
|
---|
| 85 | <tr>
|
---|
| 86 | <th>#</th>
|
---|
[15261] | 87 | <th ts-criteria="Name">Client Name</th>
|
---|
| 88 | <th ts-criteria="GroupName">Group Name</th>
|
---|
| 89 | <th ts-criteria="UsedCores">Cores</th>
|
---|
| 90 | <th ts-criteria="CpuUtilization">Cpu Utilization</th>
|
---|
| 91 | <th ts-criteria="UsedMemory">Memory</th>
|
---|
| 92 | <th ts-criteria="State">State</th>
|
---|
[12516] | 93 | <th></th>
|
---|
| 94 | </tr>
|
---|
| 95 | </thead>
|
---|
[15261] | 96 | <tr ng-repeat="client in expiredClientPage.Clients" ts-repeat>
|
---|
[12516] | 97 | <td>{{($index + 1)+((curExpiredClientsPage-1)*(expiredClientsPageSize))}}</td>
|
---|
| 98 | <td>{{client.Name}}</td>
|
---|
[12780] | 99 | <td>
|
---|
| 100 | <span ng-show="client.GroupName">{{client.GroupName}}</span>
|
---|
| 101 | <span ng-hide="client.GroupName">No Group</span>
|
---|
| 102 | </td>
|
---|
[12516] | 103 | <td>{{client.UsedCores}} / {{client.TotalCores}}</td>
|
---|
| 104 | <td>{{client.CpuUtilization | number: 2}} %</td>
|
---|
[12551] | 105 | <td>{{client.UsedMemory | kbToGB}} / {{client.TotalMemory | kbToGB}} GB</td>
|
---|
[12516] | 106 | <td>{{client.State}}</td>
|
---|
| 107 | <td>
|
---|
| 108 | <a ng-href="#/statistics/clients/{{client.Id}}">Details</a>
|
---|
| 109 | </td>
|
---|
| 110 | </tr>
|
---|
| 111 | <tr ng-hide="expiredClientPage.Clients.length">
|
---|
[12551] | 112 | <td colspan="7" class="text-center">No expired clients found!</td>
|
---|
[12516] | 113 | </tr>
|
---|
| 114 | </table>
|
---|
| 115 | <div class="row text-center" ng-show="expiredClientPage.TotalClients > expiredClientPage.Clients.length">
|
---|
| 116 | <pagination max-size="10" total-items="expiredClientPage.TotalClients" ng-model="curExpiredClientsPage" ng-change="changeExpiredClientsPage()" items-per-page="expiredClientsPageSize"
|
---|
| 117 | boundary-links="true" rotate="false" num-pages="numPages"></pagination>
|
---|
| 118 | </div>
|
---|
| 119 | </div>
|
---|
| 120 | </div>
|
---|
| 121 | </div>
|
---|
| 122 | </div>
|
---|
| 123 | </div> |
---|