Skip to main content

A health checker for a website with a is-healthy route.

Project description

Web Status Checker

A health checker for a website with a is-healthy route.

This is mostly intended to be used in my projects.

Usage

It is expected that the server url you are querying will return a "🆗" with a 200 status code for a response. Sending anything else will result in the server signalling an error.

To run the program from CLI the following is the help dialogue:

usage: web_health_checker [-h] [--timeout TIMEOUT] url

Health check website

positional arguments:
  url                url to query for status

optional arguments:
  -h, --help          show this help message and exit
  --timeout TIMEOUT   timeout before connection fail
  --allow-unverified  allows for invalid self-signed certificates to be valid

Example:

python -m web_health_checker http://localhost:8080/is-healthy

After the command has been run depending on the state of the server different results will be output. These are shown below. The output will be sent to stdout if there is no error and stderr if there is an error.

Output Why Is Error
🆗 Everything is fine No
⛔ missing '🆗' in response The server does not return the expected ok response Yes
⛔ http status '<status-code>' The server sent incorrect status code Yes
⛔ url error <reason> A URL error was detected Yes
⛔ remote closed without response The remote server closed the connection Yes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

web-health-checker-1.3.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

web_health_checker-1.3.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file web-health-checker-1.3.1.tar.gz.

File metadata

  • Download URL: web-health-checker-1.3.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for web-health-checker-1.3.1.tar.gz
Algorithm Hash digest
SHA256 a8d7e0d49d3c589c61f530c9d6515d5f5cea597236f2bd81c2d95d83331ef6a3
MD5 2f91bde23fbed277792d0a237d55d89f
BLAKE2b-256 e5ef52a600244c0fc08b6a6540b2fa29728a88ced869462d53b14ff5a7b0f6cf

See more details on using hashes here.

File details

Details for the file web_health_checker-1.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for web_health_checker-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1a6ee9039da50e4c80126ec99ee47c0848f00021bc4a4b631d5d71855be0362
MD5 495fa73d8ade194acc1e2f8b086b0421
BLAKE2b-256 f623bcbcebdab5a8fd1a022cc4073b61cbec51812996f604e0219f9b6fc4196e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page