@dnode/health-got

1.0.4 • Public • Published

dependencies | 1 | 44

Provides check function for health performing HTTP requests.

Usage

require('@dnode/controllers')(
  app,
  [
    require('@dnode/health').controller({
      example: require('@dnode/health-got')('http://example.com/'),
    }),
  ]
);

Example response

{
   "outcome": "UP",
   "checks": [
      {
         "name": "example",
         "state": "UP",
         "data": {
            "method": "GET",
            "url": "http://example.com/"
         }
      }
   ]
}

Readme

Keywords

none

Package Sidebar

Install

npm i @dnode/health-got

Weekly Downloads

3

Version

1.0.4

License

MIT

Unpacked Size

4.72 kB

Total Files

4

Last publish

Collaborators

  • sharaal