How to use the health-checkup.checkup function in health-checkup

To help you get started, we’ve selected a few health-checkup examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hfreire / browser-as-a-service / src / routes / healthcheck.js View on Github external
handler (request, reply) {
    return Health.checkup()
      .then((status) => {
        const statusCode = _.find(status, (check) => !check.is_healthy) ? 503 : 200

        return reply(null, { status }).code(statusCode)
      })
  }

health-checkup

A health check facility to check the status of your modules

MIT
Latest version published 3 years ago

Package Health Score

45 / 100
Full package analysis

Popular health-checkup functions

Similar packages