Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | |
| 2 | <!-- |
| 3 | Copyright 2017-present Open Networking Foundation |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
| 17 | |
| 18 | |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 19 | <div class="row"> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 20 | <div class="col-sm-10"> |
Matteo Scandolo | 999d3a1 | 2016-03-07 17:50:38 -0800 | [diff] [blame] | 21 | <h3>XOS Monitoring Statistics</h3> |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 22 | </div> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 23 | <div class="col-xs-2 text-right"> |
| 24 | <a href="" class="btn btn-default" |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 25 | ng-show="vm.selectedSlice && !vm.showStats" |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 26 | ng-click="vm.showStats = true"> |
| 27 | <i class="glyphicon glyphicon-transfer"></i> |
| 28 | </a> |
| 29 | <a href="" class="btn btn-default" |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 30 | ng-show="vm.selectedSlice && vm.showStats" |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 31 | ng-click="vm.showStats = false"> |
| 32 | <i class="glyphicon glyphicon-transfer"></i> |
| 33 | </a> |
| 34 | </div> |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 35 | </div> |
| 36 | |
| 37 | <div class="row" ng-show="vm.loader"> |
| 38 | <div class="col-xs-12"> |
| 39 | <div class="loader">Loading</div> |
| 40 | </div> |
| 41 | </div> |
| 42 | |
Matteo Scandolo | 6885608 | 2015-12-08 14:35:55 -0800 | [diff] [blame] | 43 | <section ng-hide="vm.loader" ng-class="{animate: !vm.loader}"> |
Matteo Scandolo | 1d8627f | 2015-12-05 18:44:45 -0800 | [diff] [blame] | 44 | <div class="row"> |
Matteo Scandolo | c058211 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 45 | <div class="col-sm-3 service-list"> |
Matteo Scandolo | 999d3a1 | 2016-03-07 17:50:38 -0800 | [diff] [blame] | 46 | <h4>XOS Service: </h4> |
Matteo Scandolo | c058211 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 47 | <uib-accordion close-others="true" template-url="templates/accordion.html"> |
| 48 | <uib-accordion-group |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 49 | ng-repeat="service in vm.services | orderBy:'-service'" |
Matteo Scandolo | c058211 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 50 | template-url="templates/accordion-group.html" |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 51 | is-open="vm.accordion.open[service.service]" |
| 52 | heading="{{service.service}}"> |
Matteo Scandolo | 999d3a1 | 2016-03-07 17:50:38 -0800 | [diff] [blame] | 53 | <h5>Slices:</h5> |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 54 | <a ng-repeat="slice in service.slices" |
| 55 | ng-class="{active: slice.slice === vm.selectedSlice}" |
| 56 | ng-click="vm.loadSliceMeter(slice, service.service)" |
Matteo Scandolo | c058211 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 57 | href="#" class="list-group-item" > |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 58 | {{slice.slice}} <i class="glyphicon glyphicon-chevron-right pull-right"></i> |
Matteo Scandolo | c058211 | 2015-12-09 16:09:59 -0800 | [diff] [blame] | 59 | </a> |
| 60 | </uib-accordion-group> |
| 61 | </uib-accordion> |
Matteo Scandolo | 7b80d84 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 62 | </div> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 63 | <section class="side-container col-sm-9"> |
| 64 | <div class="row"> |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 65 | <!-- STATS --> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 66 | <article ng-hide="!vm.showStats" class="stats animate-slide-left"> |
| 67 | <div class="col-xs-12"> |
| 68 | <div class="list-group"> |
| 69 | <div class="list-group-item"> |
Matteo Scandolo | 999d3a1 | 2016-03-07 17:50:38 -0800 | [diff] [blame] | 70 | <h4>Stats</h4> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 71 | </div> |
| 72 | <div class="list-group-item"> |
Matteo Scandolo | 19c2a4e | 2016-02-02 16:29:40 -0800 | [diff] [blame] | 73 | <ceilometer-stats ng-if="vm.selectedSlice" name="vm.selectedSlice" tenant="vm.selectedTenant"></ceilometer-stats> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 74 | </div> |
Matteo Scandolo | 1d8627f | 2015-12-05 18:44:45 -0800 | [diff] [blame] | 75 | </div> |
Matteo Scandolo | 7b80d84 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 76 | </div> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 77 | </article> |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 78 | <!-- METERS --> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 79 | <article ng-hide="vm.showStats" class="meters animate-slide-left"> |
Matteo Scandolo | ba4c9aa | 2016-02-11 09:35:29 -0800 | [diff] [blame] | 80 | <div class="alert alert-danger" ng-show="vm.ceilometerError"> |
| 81 | {{vm.ceilometerError}} |
| 82 | </div> |
Matteo Scandolo | 9db064f | 2016-02-08 14:17:42 -0800 | [diff] [blame] | 83 | <div class="col-sm-4 animate-slide-left" ng-hide="!vm.selectedSlice"> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 84 | <div class="list-group"> |
| 85 | <div class="list-group-item"> |
Matteo Scandolo | 999d3a1 | 2016-03-07 17:50:38 -0800 | [diff] [blame] | 86 | <h4>Resources</h4> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 87 | </div> |
| 88 | <a href="#" |
| 89 | ng-click="vm.selectMeters(meters, resource)" |
| 90 | class="list-group-item" |
| 91 | ng-repeat="(resource, meters) in vm.selectedResources" |
| 92 | ng-class="{active: resource === vm.selectedResource}"> |
| 93 | {{resource}} <i class="glyphicon glyphicon-chevron-right pull-right"></i> |
Matteo Scandolo | 1d8627f | 2015-12-05 18:44:45 -0800 | [diff] [blame] | 94 | </a> |
| 95 | </div> |
Matteo Scandolo | 7b80d84 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 96 | </div> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 97 | <div class="col-sm-8 animate-slide-left" ng-hide="!vm.selectedMeters"> |
| 98 | <div class="list-group"> |
| 99 | <div class="list-group-item"> |
Matteo Scandolo | 999d3a1 | 2016-03-07 17:50:38 -0800 | [diff] [blame] | 100 | <h4>Meters</h4> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 101 | </div> |
| 102 | <div class="list-group-item"> |
| 103 | <div class="row"> |
| 104 | <div class="col-xs-6"> |
| 105 | <label>Name:</label> |
| 106 | </div> |
| 107 | <div class="col-xs-3"> |
| 108 | <label>Unit:</label> |
| 109 | </div> |
| 110 | <div class="col-xs-3"></div> |
| 111 | </div> |
Matteo Scandolo | 6c6b928 | 2015-12-15 14:37:27 -0800 | [diff] [blame] | 112 | <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] | 113 | <div class="col-xs-6"> |
| 114 | {{meter.name}} |
| 115 | </div> |
| 116 | <div class="col-xs-3"> |
| 117 | {{meter.unit}} |
| 118 | </div> |
| 119 | <div class="col-xs-3"> |
Matteo Scandolo | f0577ac | 2016-03-21 17:27:42 -0700 | [diff] [blame] | 120 | <!-- tenant: meter.resource_id --> |
| 121 | <a ui-sref="samples({name: meter.name, tenant: meter.resource_id})" class="btn btn-primary"> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 122 | <i class="glyphicon glyphicon-search"></i> |
| 123 | </a> |
| 124 | </div> |
| 125 | </div> |
| 126 | </div> |
| 127 | </div> |
| 128 | </div> |
| 129 | </article> |
Matteo Scandolo | 7b80d84 | 2015-12-04 15:55:20 -0800 | [diff] [blame] | 130 | </div> |
Matteo Scandolo | 41f5c15 | 2015-12-09 17:09:55 -0800 | [diff] [blame] | 131 | </section> |
Matteo Scandolo | 68c2e72 | 2015-12-04 10:14:40 -0800 | [diff] [blame] | 132 | </div> |
Matteo Scandolo | 6885608 | 2015-12-08 14:35:55 -0800 | [diff] [blame] | 133 | </section> |
Matteo Scandolo | 8386933 | 2015-12-14 14:26:20 -0800 | [diff] [blame] | 134 | <section ng-if="!vm.loader && vm.error"> |
| 135 | <div class="alert alert-danger"> |
| 136 | {{vm.error}} |
| 137 | </div> |
| 138 | </section> |