Matteo Scandolo | e3de73d | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 1 | <div class="row"> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 2 | <div class="col-sm-10"> |
Matteo Scandolo | c2d3110 | 2015-12-08 14:35:55 -0800 | [diff] [blame] | 3 | <h1>XOS Monitoring Statistics</h1> |
Matteo Scandolo | e3de73d | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 4 | </div> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 5 | <div class="col-xs-2 text-right"> |
| 6 | <a href="" class="btn btn-default" |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 7 | ng-show="vm.selectedSlice && !vm.showStats" |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 8 | ng-click="vm.showStats = true"> |
| 9 | <i class="glyphicon glyphicon-transfer"></i> |
| 10 | </a> |
| 11 | <a href="" class="btn btn-default" |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 12 | ng-show="vm.selectedSlice && vm.showStats" |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 13 | ng-click="vm.showStats = false"> |
| 14 | <i class="glyphicon glyphicon-transfer"></i> |
| 15 | </a> |
| 16 | </div> |
Matteo Scandolo | e3de73d | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 17 | </div> |
| 18 | |
| 19 | <div class="row" ng-show="vm.loader"> |
| 20 | <div class="col-xs-12"> |
| 21 | <div class="loader">Loading</div> |
| 22 | </div> |
| 23 | </div> |
| 24 | |
Matteo Scandolo | c2d3110 | 2015-12-08 14:35:55 -0800 | [diff] [blame] | 25 | <section ng-hide="vm.loader" ng-class="{animate: !vm.loader}"> |
Matteo Scandolo | 52193d3 | 2015-12-05 18:44:45 -0800 | [diff] [blame] | 26 | <div class="row"> |
Matteo Scandolo | 0f5e163 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 27 | <div class="col-sm-3 service-list"> |
| 28 | <h3>XOS Service: </h3> |
| 29 | <uib-accordion close-others="true" template-url="templates/accordion.html"> |
| 30 | <uib-accordion-group |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 31 | ng-repeat="service in vm.services | orderBy:'-service'" |
Matteo Scandolo | 0f5e163 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 32 | template-url="templates/accordion-group.html" |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 33 | is-open="vm.accordion.open[service.service]" |
| 34 | heading="{{service.service}}"> |
Matteo Scandolo | 0f5e163 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 35 | <h4>Slices:</h4> |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 36 | <a ng-repeat="slice in service.slices" |
| 37 | ng-class="{active: slice.slice === vm.selectedSlice}" |
| 38 | ng-click="vm.loadSliceMeter(slice, service.service)" |
Matteo Scandolo | 0f5e163 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 39 | href="#" class="list-group-item" > |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 40 | {{slice.slice}} <i class="glyphicon glyphicon-chevron-right pull-right"></i> |
Matteo Scandolo | 0f5e163 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 41 | </a> |
| 42 | </uib-accordion-group> |
| 43 | </uib-accordion> |
Matteo Scandolo | ec8ad42 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 44 | </div> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 45 | <section class="side-container col-sm-9"> |
| 46 | <div class="row"> |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 47 | <!-- STATS --> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 48 | <article ng-hide="!vm.showStats" class="stats animate-slide-left"> |
| 49 | <div class="col-xs-12"> |
| 50 | <div class="list-group"> |
| 51 | <div class="list-group-item"> |
| 52 | <h3>Stats</h3> |
| 53 | </div> |
| 54 | <div class="list-group-item"> |
Matteo Scandolo | 382455c | 2016-02-02 16:29:40 -0800 | [diff] [blame] | 55 | <ceilometer-stats ng-if="vm.selectedSlice" name="vm.selectedSlice" tenant="vm.selectedTenant"></ceilometer-stats> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 56 | </div> |
Matteo Scandolo | 52193d3 | 2015-12-05 18:44:45 -0800 | [diff] [blame] | 57 | </div> |
Matteo Scandolo | ec8ad42 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 58 | </div> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 59 | </article> |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 60 | <!-- METERS --> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 61 | <article ng-hide="vm.showStats" class="meters animate-slide-left"> |
Matteo Scandolo | c012856 | 2016-02-08 14:17:42 -0800 | [diff] [blame^] | 62 | <div class="col-sm-4 animate-slide-left" ng-hide="!vm.selectedSlice"> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 63 | <div class="list-group"> |
| 64 | <div class="list-group-item"> |
| 65 | <h3>Resources</h3> |
| 66 | </div> |
| 67 | <a href="#" |
| 68 | ng-click="vm.selectMeters(meters, resource)" |
| 69 | class="list-group-item" |
| 70 | ng-repeat="(resource, meters) in vm.selectedResources" |
| 71 | ng-class="{active: resource === vm.selectedResource}"> |
| 72 | {{resource}} <i class="glyphicon glyphicon-chevron-right pull-right"></i> |
Matteo Scandolo | 52193d3 | 2015-12-05 18:44:45 -0800 | [diff] [blame] | 73 | </a> |
| 74 | </div> |
Matteo Scandolo | ec8ad42 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 75 | </div> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 76 | <div class="col-sm-8 animate-slide-left" ng-hide="!vm.selectedMeters"> |
| 77 | <div class="list-group"> |
| 78 | <div class="list-group-item"> |
| 79 | <h3>Meters</h3> |
| 80 | </div> |
| 81 | <div class="list-group-item"> |
| 82 | <div class="row"> |
| 83 | <div class="col-xs-6"> |
| 84 | <label>Name:</label> |
| 85 | </div> |
| 86 | <div class="col-xs-3"> |
| 87 | <label>Unit:</label> |
| 88 | </div> |
| 89 | <div class="col-xs-3"></div> |
| 90 | </div> |
Matteo Scandolo | d9e1c41 | 2015-12-15 14:37:27 -0800 | [diff] [blame] | 91 | <div class="row" ng-repeat="meter in vm.selectedMeters" style="margin-bottom: 10px;"> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 92 | <div class="col-xs-6"> |
| 93 | {{meter.name}} |
| 94 | </div> |
| 95 | <div class="col-xs-3"> |
| 96 | {{meter.unit}} |
| 97 | </div> |
| 98 | <div class="col-xs-3"> |
Matteo Scandolo | d9e1c41 | 2015-12-15 14:37:27 -0800 | [diff] [blame] | 99 | <a ui-sref="samples({name: meter.name, tenant: meter.project_id})" class="btn btn-primary"> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 100 | <i class="glyphicon glyphicon-search"></i> |
| 101 | </a> |
| 102 | </div> |
| 103 | </div> |
| 104 | </div> |
| 105 | </div> |
| 106 | </div> |
| 107 | </article> |
Matteo Scandolo | ec8ad42 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 108 | </div> |
Matteo Scandolo | 5dd9418 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 109 | </section> |
Matteo Scandolo | e3de73d | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 110 | </div> |
Matteo Scandolo | c2d3110 | 2015-12-08 14:35:55 -0800 | [diff] [blame] | 111 | </section> |
Matteo Scandolo | a918ea8 | 2015-12-14 14:26:20 -0800 | [diff] [blame] | 112 | <section ng-if="!vm.loader && vm.error"> |
| 113 | <div class="alert alert-danger"> |
| 114 | {{vm.error}} |
| 115 | </div> |
| 116 | </section> |