Create an instance of health registry
health registry options
The application identifier
Links offered by this service
The application name
An Express router with access to health information
The health status of the component
Update or add a check measure. This should be used to inform about the state of resources behind the Component/Microservice, for example states of connections with field devices.
The new check will be taking into account in the overall health status.
The new check will be included in the checks
object with the key "component:measure".
If this key already exists, the componentId
of the check
parameter will be checked, if
there is a check with the same componentId
in the array, the check will be updated, in other
case the new check will be added to the existing array.
The maximum number external checks is 100
component identification
measure identification
check to be updated or included
true, if the check has been updated
The HealthFacade class serves as a comprehensive solution for monitoring and exposing the health of all components within an application. It abstracts the complexity of health information aggregation and distribution, making it accessible through a REST API and manageable across different operational contexts (e.g., standalone, clustered master, and worker processes).
This class leverages: