Documentation Utils¶
-
motey.utils.heartbeat.check_heartbeat()[source]¶ The endpoint himself. Will be executed if the url is requested.
Returns: 204 - No Content, if the node is up and running and all the registered callbacks requirements are fulfilled, otherwise 400 - Bad Request.
-
motey.utils.heartbeat.register_callback(callback)[source]¶ Helper method to register a new callback.
Parameters: callback – callback to be added to the queue