Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Send alerts for found systems #234

Open
AceMgy opened this issue Feb 6, 2016 · 0 comments
Open

[feature] Send alerts for found systems #234

AceMgy opened this issue Feb 6, 2016 · 0 comments

Comments

@AceMgy
Copy link
Contributor

AceMgy commented Feb 6, 2016

Mostly writing this here so I don't forget.

Basically the idea is to have something in the settings where a user (or an entire user group if an admin is doing this) could set up alerts if a particular system is connected in a map you have view access too.

Spitballing here, I'd just ForeignKey the system to a new table that goes something like:

class SystemAlerts(models.Model):
     users = models.ManyToManyField(<whatever the user model is>)
     groups = models.ManyToManyField(<whatever the group model is>)
     alert_added = models.DateTimeField(auto_now=True)
     alert_target = <whatever the slack hook for a channel is>

Then just have some logic in the function that adds systems that checks this table.

Edit: and of course I only see issue #160 after I submit this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants