1.1.0 • Published 4 years ago

@codelittinc/health-monitor-node v1.1.0

Weekly downloads
101
License
ISC
Repository
github
Last release
4 years ago

Set the environment variables for your project:

setup your environment

LOG_ENV=dev|qa|prod

setup your host

LOG_HOST=<YOUR HOST URL>
import withHealthMonitor from '@codelittinc/health-monitor-node'

// option 1
withHealthMonitor(app);

// option 2
withHealthMonitor(app, (req, res) => {
  try {
    // load something from the database to test the connection, execute a GraphQL query, or anything you want to verify;
    res.sendStatus(200);
  } catch (err) {
    res.status(500).json({ message: err.message });
  }
});
1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago