ateliedocodigo / py-healthcheck

Write simple healthcheck functions for your Flask or Tornado apps.
MIT License
111 stars 21 forks source link

Add response time to each check output #4

Closed luiscoms closed 6 years ago

luiscoms commented 6 years ago

Currently the output of each check is

{
    "status": "failure",
    "results": [
        {
            "output": "'NoneType' object has no attribute '__getitem__'",
            "checker": "throws_exception",
            "passed": false
        }
    ]
}

We want to append elapsed time of each check like this:

{
    "status": "failure",
    "results": [
        {
            "output": "'NoneType' object has no attribute '__getitem__'",
            "checker": "throws_exception",
            "passed": false,
            "response_time": 9999999999
        }
    ]
}