@dnode/health

2.0.1 • Public • Published

dependencies | 0 | 0

Provides an /health endpoint response with the health of the app in the MicroProfile format.

Usage

require('@dnode/controllers')(
  app,
  [
    require('@dnode/health').controller({
      example: () => {},
    }),
  ]
);

Example response

{
   "outcome":"UP",
   "checks":[
      {
         "name":"example",
         "state":"UP",
         "data":{}
      }
   ]
}

Plugins

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @dnode/health

    Weekly Downloads

    0

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    5.05 kB

    Total Files

    5

    Last publish

    Collaborators

    • sharaal