예제 #1
0
def heartbeat_status(request):
    return HttpResponse(
        json.dumps({
            "last_timestamp": str(last_heartbeat()),
            "last_from_file": get_file_heartbeat(),
            "last_from_cache": get_cache_heartbeat()
        }))
예제 #2
0
def heartbeat_status(request):
    return HttpResponse(json.dumps({"last_timestamp": str(last_heartbeat()),
                                    "last_from_file": get_file_heartbeat(),
                                    "last_from_cache": get_cache_heartbeat()}))