2020-04-10 00:43:15 +02:00
|
|
|
import * as MonitoringService from "../services/monitoringService";
|
2020-06-30 17:08:24 +02:00
|
|
|
import {jobResultOkay} from "./scheduler";
|
2020-04-08 23:41:04 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'MonitoringMailsSendingJob',
|
|
|
|
description: 'Sends monitoring emails depending on the monitoring state of nodes retrieved by the NodeInformationRetrievalJob.',
|
|
|
|
|
2020-06-30 17:08:24 +02:00
|
|
|
async run() {
|
|
|
|
await MonitoringService.sendMonitoringMails();
|
|
|
|
return jobResultOkay();
|
|
|
|
},
|
2020-04-08 23:41:04 +02:00
|
|
|
};
|