18 lines
563 B
JavaScript
18 lines
563 B
JavaScript
'use strict';
|
|
|
|
angular.module('ffffng').factory('NodeInformationCleanupJob', function (MonitoringService, Logger) {
|
|
return {
|
|
description: 'Cleanup monitoring status entries for nodes no longer having monitoring enabled.',
|
|
|
|
run: function (callback) {
|
|
MonitoringService.cleanupNodeInformation(function (err) {
|
|
if (err) {
|
|
Logger.tag('monitoring', 'information-cleanup').error('Error cleaning up node data:', err);
|
|
}
|
|
|
|
callback();
|
|
});
|
|
}
|
|
};
|
|
});
|