The uptimeApi module enables an API to retrieve the current status of BGPalerter.
By default the API is reachable at `http://localhost:8011/status` and provides a summary of the status of various components of BGPalerter. If any of the components is having a problem, the attribute `warning` is set to true.
|useStatusCodes| A boolean that if set to true enables HTTP status codes in the response. Nothing changes in the JSON output provided by the API. |
|host| The IP address on which the API will be reachable. If `null` or missing, the API will be reachable on all the addresses of the machine.|
|port| The port on which the API will be reachable. |
## uptimeHealthcheck
The uptimeHealthcheck module is a component that will start polling a provided URL at a regular interval.
This can be used to send a heartbeat signal to a monitoring system (e.g. https://healthchecks.io/).
If there is any warning about any component activated in BGPalerter, the heartbeat will not be issued (independently from the fact that the process is still running).
In `config.yml` the uptimeHealthcheck is declared as: