BtrzHealthchecker v0.3.1 BtrzHealthchecker.Checkers.Redis View Source
Defines the Redis status checker.
Link to this section Summary
Functions
Returns the status of the redis service sending the "PING" command
Returns the name of the service
Link to this section Functions
Link to this function
check_status(opts) View Source
Returns the status of the redis service sending the "PING" command
Returns 200 if the conection is reachable and the command returns PONG
.
Returns 500 if PONG
is not returned or the command!
function raises.
Examples
iex> BtrzHealthchecker.Checkers.Redis.check_status(opts)
200
iex> BtrzHealthchecker.Checkers.Redis.check_status(bad_opts)
500
Link to this function
name() View Source
Returns the name of the service
Returns "redis".