Create a new watcher instance with the given options
The key generator to use
The watcher options
Optional
logger: LoggerInstanceThe logger instance
Return the status of the file-flinger in a standard format
check object as defined in the draft standard https://datatracker.ietf.org/doc/html/draft-inadarei-api-health-check-05
Get the component identifier
Return the metrics registry
Get the name of the watcher
Overall component status
A resource is extended component that represent the access to an external/internal resource, besides the error handling and identity, it has a start, stop and close methods to manage the resource lifecycle. It also has a checks property to define the checks that will be performed over the resource to achieve the resulted status. The most typical example of a resource are the Provider that allow to access to external databases, message brokers, etc.