JSlint
This commit is contained in:
parent
12b95ad253
commit
032af96cff
@ -9,8 +9,7 @@ angular.module('adagios.service', ['adagios.live',
|
|||||||
|
|
||||||
.controller('ServiceCtrl', ['$scope', 'serviceConfig', 'getService',
|
.controller('ServiceCtrl', ['$scope', 'serviceConfig', 'getService',
|
||||||
function ($scope, serviceConfig, getService) {
|
function ($scope, serviceConfig, getService) {
|
||||||
var objectType = 'service',
|
var hostName = serviceConfig.hostName,
|
||||||
hostName = serviceConfig.hostName,
|
|
||||||
description = serviceConfig.description;
|
description = serviceConfig.description;
|
||||||
|
|
||||||
getService(hostName, description).success(function (data) {
|
getService(hostName, description).success(function (data) {
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
angular.module('adagios.service.metrics', [])
|
angular.module('adagios.service.metrics', [])
|
||||||
|
|
||||||
.controller('ServiceMetricsCtrl', ['$scope', function ($scope) {
|
.controller('ServiceMetricsCtrl', ['$scope', function ($scope) {
|
||||||
|
angular.noop();
|
||||||
}])
|
}])
|
||||||
|
|
||||||
.directive('adgServiceMetrics', function () {
|
.directive('adgServiceMetrics', function () {
|
||||||
|
@ -18,7 +18,9 @@ angular.module('adagios.tactical', ['adagios.live',
|
|||||||
|
|
||||||
.controller('TacticalCtrl', ['$scope', '$interval', 'tacticalConfig', 'getHostProblems', 'getServiceProblems',
|
.controller('TacticalCtrl', ['$scope', '$interval', 'tacticalConfig', 'getHostProblems', 'getServiceProblems',
|
||||||
'getTotalHosts', 'getTotalServices', 'addAjaxPromise',
|
'getTotalHosts', 'getTotalServices', 'addAjaxPromise',
|
||||||
function ($scope, $interval, tacticalConfig, getHostProblems, getServiceProblems, getTotalHosts, getTotalServices, addAjaxPromise) {
|
function ($scope, $interval, tacticalConfig, getHostProblems, getServiceProblems, getTotalHosts,
|
||||||
|
getTotalServices, addAjaxPromise) {
|
||||||
|
|
||||||
var getData;
|
var getData;
|
||||||
|
|
||||||
$scope.statusOverview = tacticalConfig.statusOverview;
|
$scope.statusOverview = tacticalConfig.statusOverview;
|
||||||
@ -48,7 +50,7 @@ angular.module('adagios.tactical', ['adagios.live',
|
|||||||
$scope.servicesRatio = ($scope.totalServices - $scope.serviceProblems) / $scope.totalServices * 100;
|
$scope.servicesRatio = ($scope.totalServices - $scope.serviceProblems) / $scope.totalServices * 100;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
if (tacticalConfig.refreshInterval !== 0) {
|
if (tacticalConfig.refreshInterval !== 0) {
|
||||||
addAjaxPromise(
|
addAjaxPromise(
|
||||||
|
Loading…
Reference in New Issue
Block a user