ffffng/server/jobs/MonitoringMailsSendingJob.ts

14 lines
427 B
TypeScript
Raw Permalink Normal View History

import * as MonitoringService from "../services/monitoringService";
import { jobResultOkay } from "./scheduler";
export default {
name: "MonitoringMailsSendingJob",
description:
"Sends monitoring emails depending on the monitoring state of nodes retrieved by the NodeInformationRetrievalJob.",
async run() {
await MonitoringService.sendMonitoringMails();
return jobResultOkay();
},
};