Hostname of the Gatus webserver. Without http(s) prefix.
Endpoint key for the external endpoint you are targetting.
Bearer token configured in Gatus for the external endpoint.
List of steps for each health check. Every condition is guaranteed to run in order and will be awaited.
Roughly how often the health check should run. Do keep in mind that the single-threaded nature of JavaScript might make this difficult if you don't know how to program with async.
Logging function.
Calls worker() with the parameters provided and adds an error handler just in case something happens (for debug purposes).