RunKit + npm: nodejs-health-checker

node v12.22.12
version: master
endpointsharetweet
const { HealthcheckerSimpleCheck, HealthcheckerDetailedCheck } = require("nodejs-health-checker/dist/healthchecker/healthchecker"); const { HealthTypes } = require("nodejs-health-checker/dist/interfaces/types"); console.log(HealthcheckerSimpleCheck()); const myfunc = () => {throw Error("not working")}; HealthcheckerDetailedCheck({ name: "my app", version: "my version", integrations: [ { type: HealthTypes.Web, name: "github", host: "https://github.com/status", }, { type: HealthTypes.Custom, name: "my custom func", host: "", customCheckerFunction: myfunc } ] }).then(result => console.log(result));
Created from: https://npm.runkit.com/nodejs-health-checker
Loading…

no comments

    sign in to comment