BtrzHealthchecker v0.2.0 BtrzHealthchecker.Checkers.Postgres View Source

Defines the Postgres status checker.

Link to this section Summary

Functions

Returns the status of the postgres service querying by all the tables of the catalog

Returns the name of the service

Link to this section Functions

Returns the status of the postgres service querying by all the tables of the catalog

Returns 200. Returns 500.

Examples

iex> BtrzHealthchecker.Checkers.Postgres.check_status(opts)
200
iex> BtrzHealthchecker.Checkers.Postgres.check_status(bad_opts)
500

Returns the name of the service

Returns “postgres”.