@kronos-integration/service-health
Version:
collects and reports system health status
56 lines (34 loc) • 2.11 kB
Markdown
[](https://spdx.org/licenses/0BSD.html)
[](https://github.com/Kronos-Integration/service-health/issues)
[](https://actions-badge.atrox.dev/Kronos-Integration/service-health/goto)
[](https://github.com/prettier/prettier)
[](http://commitizen.github.io/cz-cli/)
[](https://snyk.io/test/github/Kronos-Integration/service-health)
[](https://coveralls.io/github/Kronos-Integration/service-health)
# @kronos-integration/service-health
collects and reports system health status
# API
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
### Table of Contents
* [ServiceHealth](#servicehealth)
* [autostart](#autostart)
* [isHealthy](#ishealthy)
* [name](#name)
## ServiceHealth
**Extends Service**
Collects health state form all components
Currently we only check that there is no service is in failed state
### autostart
Start immediate
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true
### isHealthy
Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if there are no failed services
### name
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 'health'
# install
With [npm](http://npmjs.org) do:
```shell
npm install @kronos-integration/service-health
```
# license
BSD-2-Clause