SQLert (sqlert v0.0.1)
View SourceSQLert allows you to create self-contained alert modules that monitor your database by running SQL queries at defined schedule.
Overview
SQLert automatically discovers and runs alerts when your application starts. You can also control alerts at runtime:
SQLert allows you to define alerts that:
- Run SQL queries at regular intervals
- Check for specific conditions in your database
- Trigger notifications when conditions are met
## Core Components
SQLert.Alert
- Behaviour for defining your alertsSQLert.Notifier
- Behaviour for implementing notification channels
Summary
Functions
Returns a list of all discoverable alerts.
Returns a list of running alerts.
Returns the version of SQLert.
Functions
@spec discoverable_alerts() :: [module()]
Returns a list of all discoverable alerts.
Every module defined in the scope of the application implementing
the SQLert.Alert
behaviour, it will be considered discoverable.
Examples
iex> SQLert.discoverable_alerts()
[SQLertTest.DisabledAlert, SQLertTest.EnabledAlert]
Returns a list of running alerts.
Returns the version of SQLert.