Skip to main content

The ultimate solution for observability by Meena Erian.

Project description

Summary

Alert 360 can be used to trigger any specific action on any specific data changes. The actions can involve any sort of variables required to complete the action and the trigger can be any sort of change in state in an SQL database

Compatible RDBMS

  • PostgreSQL
  • Microsoft SQL
  • MySQL/MariaDB
  • SQLite
  • FireBird

Setup Instructions

  • Install the package
pip install alert360
  • Start a Django project
django-admin startproject djangoproject
  • Add the app to INSTALLED_APPS
INSTALLED_APPS = [
    ...
    'django_ace',
    'alert360',
    ...
]
  • Create a python file in which you can write your own actions that will be triggered when the state changes

actions.py

from alert360.actions import ActionsManager


@ActionsManager.add_handler
def print_changes(changes):
    print("Some changes occured")
    print(changes)

In the above code we declared our own custom function print_changes which will be called whenever the state changes and it will print the summary of changes. However, there's one more step left to connect this function to the ActionsManager

  • In the __init__.py file in the folder in which we created actions.py add the following line
from . import actions
  • Now run database migrations and create a superuser so you can access the admin website
python manage.py migrate
python manage.py createsuperuser
  • Now Login to the adminwebsite, connect a database, and create a new StateWatcher

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

alert360-0.0.7.tar.gz (20.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page