autopush.web.healthhandler

Health Check HTTP Handler

class autopush.web.health.HealthHandler(application, request, **kwargs)[source]

HTTP Health Handler

authenticate_peer_cert()[source]

Skip authentication checks

get(*args, **kwargs)[source]

HTTP Get

Returns basic information about the version and how many clients are connected in a JSON object.

_check_table(table, name_over=None)[source]

Checks the tables known about in DynamoDB

_check_success(exists, name)[source]

Verifies a Table exists

_check_error(failure, name)[source]

Returns an error, and why

_finish_response(results)[source]

Returns whether the check succeeded or not

autopush.web.statushandler

class autopush.web.health.StatusHandler(application, request, **kwargs)[source]

HTTP Status Handler

authenticate_peer_cert()[source]

skip authentication checks

get()[source]

HTTP Get

Returns that this node is alive, and the version.