mirror of
https://github.com/sprockets/sprockets.handlers.heartbeat.git
synced 2024-11-28 11:19:50 +00:00
Expose a Tornado web application endpoint for reporting application health
542753eb30
Add HeartbeatHandler |
||
---|---|---|
docs | ||
sprockets | ||
.gitignore | ||
.travis.yml | ||
dev-requirements.txt | ||
LICENSE | ||
MANIFEST.in | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
tests.py |
sprockets.handlers.heartbeat ============================ A callback-based heartbeat handler |Version| |Downloads| |Status| |Coverage| |License| Installation ------------ ``sprockets.handlers.heartbeat`` is available on the `Python Package Index <https://pypi.python.org/pypi/sprockets.handlers.heartbeat>`_ and can be installed via ``pip`` or ``easy_install``: .. code:: bash pip install sprockets.handlers.heartbeat Documentation ------------- https://sprocketshandlersheartbeat.readthedocs.org Requirements ------------ - `sprockets <https://github.com/sprockets/sprockets>`_ Example ------- This examples demonstrates how to use ``sprockets.handlers.heartbeat`` by ... .. code:: python from tornado import web from sprockets.handlers import heartbeat def check_database(): # Verify connectivity to our database return is_database_up() # Return True/False heartbeat.register_callback(check_database) app = web.Application([(r'/heartbeat', heartbeat.HeartbeatHandler)]) Version History --------------- Available at https://sprocketshandlersheartbeat.readthedocs.org/en/latest/history.html .. |Version| image:: https://badge.fury.io/py/sprockets.handlers.heartbeat.svg? :target: http://badge.fury.io/py/sprockets.handlers.heartbeat .. |Status| image:: https://travis-ci.org/sprockets/sprockets.handlers.heartbeat.svg?branch=master :target: https://travis-ci.org/sprockets/sprockets.handlers.heartbeat .. |Coverage| image:: https://img.shields.io/coveralls/sprockets/sprockets.handlers.heartbeat.svg? :target: https://coveralls.io/r/sprockets/sprockets.handlers.heartbeat .. |Downloads| image:: https://pypip.in/d/sprockets.handlers.heartbeat/badge.svg? :target: https://pypi.python.org/pypi/sprockets.handlers.heartbeat .. |License| image:: https://pypip.in/license/sprockets.handlers.heartbeat/badge.svg? :target: https://sprocketshandlersheartbeat.readthedocs.org