Socket
Socket
Sign inDemoInstall

btrz-health-check

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

btrz-health-check


Version published
Maintainers
1
Created

Readme

Source

btrz-health-check Circle CI NPM version

A series of classes that will ping different service types to verify accessibility. Used in Betterez microservices to check status of dependent services.

Runtimes supported

io.js >= 2.0.3 node >= v4.2

Usage

The main class is the HealthCheckers class.

This class exposes only one method .checkStatus() that takes an array of checkers. Each checker will check one service and returns a promise that will resolve or reject accordingly to the status of the service. The module comes with a series of checkers that you can configure and use for your particular case (see below for more information). You can also create your own checkers easily.

Custom checkers

Build in checkers

MongoDb

Will check connectivity to MongoDb doing a call to collectionNames in the MongoDb driver. It will resolve to a promise if

Keywords

FAQs

Last updated on 05 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc