UNPKG

pm2-health

Version:

Apps health monitor and mail notification module for pm2

25 lines 565 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const Pmx = require("pmx"); const Health_1 = require("./Health"); Pmx.initModule({ type: "generic", el: { probes: false, actions: true }, block: { actions: true, cpu: true, mem: true } }, async (ex, config) => { (0, Health_1.stopIfEx)(ex); try { await (new Health_1.Health(config)).go(); } catch (ex) { (0, Health_1.stopIfEx)(ex); } }); //# sourceMappingURL=App.js.map