Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: nodejs-health-checker
node v12.22.12
version:
master
endpoint
share
tweet
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