| * Visit http://guide.xosproject.org/devguide/addview/ for more information |
| * Created by teone on 3/21/16. |
| angular.module('xos.ceilometerDashboard') |
| .directive('ceilometerStats', function(){ |
| templateUrl: 'templates/ceilometer-stats.tpl.html', |
| controller: function($scope, Ceilometer) { |
| this.getStats = (tenant) => { |
| Ceilometer.getStats({tenant: tenant}) |
| m.resource_name = m.resource_name.replace('mysite_onos_vbng', 'ONOS_FABRIC'); |
| m.resource_name = m.resource_name.replace('mysite_onos_volt', 'ONOS_CORD'); |
| m.resource_name = m.resource_name.replace('mysite_vbng', 'mysite_vRouter'); |
| $scope.$watch(() => this.name, (val) => { |
| this.getStats(this.tenant); |