blob: 827f3ad98cc75180172b8c1ab74469bebb4c4624 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001
2<!--
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16-->
17
18
Matteo Scandolo68c2e722015-12-04 10:14:40 -080019<div class="row">
Matteo Scandolo41f5c152015-12-09 17:09:55 -080020 <div class="col-sm-10">
Matteo Scandolo999d3a12016-03-07 17:50:38 -080021 <h3>XOS Monitoring Statistics</h3>
Matteo Scandolo68c2e722015-12-04 10:14:40 -080022 </div>
Matteo Scandolo41f5c152015-12-09 17:09:55 -080023 <div class="col-xs-2 text-right">
24 <a href="" class="btn btn-default"
Matteo Scandolo9db064f2016-02-08 14:17:42 -080025 ng-show="vm.selectedSlice && !vm.showStats"
Matteo Scandolo41f5c152015-12-09 17:09:55 -080026 ng-click="vm.showStats = true">
27 <i class="glyphicon glyphicon-transfer"></i>
28 </a>
29 <a href="" class="btn btn-default"
Matteo Scandolo9db064f2016-02-08 14:17:42 -080030 ng-show="vm.selectedSlice && vm.showStats"
Matteo Scandolo41f5c152015-12-09 17:09:55 -080031 ng-click="vm.showStats = false">
32 <i class="glyphicon glyphicon-transfer"></i>
33 </a>
34 </div>
Matteo Scandolo68c2e722015-12-04 10:14:40 -080035</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 Scandolo68856082015-12-08 14:35:55 -080043<section ng-hide="vm.loader" ng-class="{animate: !vm.loader}">
Matteo Scandolo1d8627f2015-12-05 18:44:45 -080044 <div class="row">
Matteo Scandoloc0582112015-12-09 16:09:59 -080045 <div class="col-sm-3 service-list">
Matteo Scandolo999d3a12016-03-07 17:50:38 -080046 <h4>XOS Service: </h4>
Matteo Scandoloc0582112015-12-09 16:09:59 -080047 <uib-accordion close-others="true" template-url="templates/accordion.html">
48 <uib-accordion-group
Matteo Scandolo9db064f2016-02-08 14:17:42 -080049 ng-repeat="service in vm.services | orderBy:'-service'"
Matteo Scandoloc0582112015-12-09 16:09:59 -080050 template-url="templates/accordion-group.html"
Matteo Scandolo9db064f2016-02-08 14:17:42 -080051 is-open="vm.accordion.open[service.service]"
52 heading="{{service.service}}">
Matteo Scandolo999d3a12016-03-07 17:50:38 -080053 <h5>Slices:</h5>
Matteo Scandolo9db064f2016-02-08 14:17:42 -080054 <a ng-repeat="slice in service.slices"
55 ng-class="{active: slice.slice === vm.selectedSlice}"
56 ng-click="vm.loadSliceMeter(slice, service.service)"
Matteo Scandoloc0582112015-12-09 16:09:59 -080057 href="#" class="list-group-item" >
Matteo Scandolo9db064f2016-02-08 14:17:42 -080058 {{slice.slice}} <i class="glyphicon glyphicon-chevron-right pull-right"></i>
Matteo Scandoloc0582112015-12-09 16:09:59 -080059 </a>
60 </uib-accordion-group>
61 </uib-accordion>
Matteo Scandolo7b80d842015-12-04 15:55:20 -080062 </div>
Matteo Scandolo41f5c152015-12-09 17:09:55 -080063 <section class="side-container col-sm-9">
64 <div class="row">
Matteo Scandolo9db064f2016-02-08 14:17:42 -080065 <!-- STATS -->
Matteo Scandolo41f5c152015-12-09 17:09:55 -080066 <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 Scandolo999d3a12016-03-07 17:50:38 -080070 <h4>Stats</h4>
Matteo Scandolo41f5c152015-12-09 17:09:55 -080071 </div>
72 <div class="list-group-item">
Matteo Scandolo19c2a4e2016-02-02 16:29:40 -080073 <ceilometer-stats ng-if="vm.selectedSlice" name="vm.selectedSlice" tenant="vm.selectedTenant"></ceilometer-stats>
Matteo Scandolo41f5c152015-12-09 17:09:55 -080074 </div>
Matteo Scandolo1d8627f2015-12-05 18:44:45 -080075 </div>
Matteo Scandolo7b80d842015-12-04 15:55:20 -080076 </div>
Matteo Scandolo41f5c152015-12-09 17:09:55 -080077 </article>
Matteo Scandolo9db064f2016-02-08 14:17:42 -080078 <!-- METERS -->
Matteo Scandolo41f5c152015-12-09 17:09:55 -080079 <article ng-hide="vm.showStats" class="meters animate-slide-left">
Matteo Scandoloba4c9aa2016-02-11 09:35:29 -080080 <div class="alert alert-danger" ng-show="vm.ceilometerError">
81 {{vm.ceilometerError}}
82 </div>
Matteo Scandolo9db064f2016-02-08 14:17:42 -080083 <div class="col-sm-4 animate-slide-left" ng-hide="!vm.selectedSlice">
Matteo Scandolo41f5c152015-12-09 17:09:55 -080084 <div class="list-group">
85 <div class="list-group-item">
Matteo Scandolo999d3a12016-03-07 17:50:38 -080086 <h4>Resources</h4>
Matteo Scandolo41f5c152015-12-09 17:09:55 -080087 </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 Scandolo1d8627f2015-12-05 18:44:45 -080094 </a>
95 </div>
Matteo Scandolo7b80d842015-12-04 15:55:20 -080096 </div>
Matteo Scandolo41f5c152015-12-09 17:09:55 -080097 <div class="col-sm-8 animate-slide-left" ng-hide="!vm.selectedMeters">
98 <div class="list-group">
99 <div class="list-group-item">
Matteo Scandolo999d3a12016-03-07 17:50:38 -0800100 <h4>Meters</h4>
Matteo Scandolo41f5c152015-12-09 17:09:55 -0800101 </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 Scandolo6c6b9282015-12-15 14:37:27 -0800112 <div class="row" ng-repeat="meter in vm.selectedMeters" style="margin-bottom: 10px;">
Matteo Scandolo41f5c152015-12-09 17:09:55 -0800113 <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 Scandolof0577ac2016-03-21 17:27:42 -0700120 <!-- tenant: meter.resource_id -->
121 <a ui-sref="samples({name: meter.name, tenant: meter.resource_id})" class="btn btn-primary">
Matteo Scandolo41f5c152015-12-09 17:09:55 -0800122 <i class="glyphicon glyphicon-search"></i>
123 </a>
124 </div>
125 </div>
126 </div>
127 </div>
128 </div>
129 </article>
Matteo Scandolo7b80d842015-12-04 15:55:20 -0800130 </div>
Matteo Scandolo41f5c152015-12-09 17:09:55 -0800131 </section>
Matteo Scandolo68c2e722015-12-04 10:14:40 -0800132 </div>
Matteo Scandolo68856082015-12-08 14:35:55 -0800133</section>
Matteo Scandolo83869332015-12-14 14:26:20 -0800134<section ng-if="!vm.loader && vm.error">
135 <div class="alert alert-danger">
136 {{vm.error}}
137 </div>
138</section>