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