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

Request - add webhooks for external functionality #1

Open
krysttian opened this issue Feb 1, 2019 · 4 comments
Open

Request - add webhooks for external functionality #1

krysttian opened this issue Feb 1, 2019 · 4 comments

Comments

@krysttian
Copy link

Hey Josh, this is an initial request to see what it would take to add this functionality, we can discuss in a future meeting.
I'm looking to add a twilio integration so we can text interested parties about potential flooding in their area. Since it seems this is where we will be housing the relevant data, i'm wondering if its easy to make http requests on INSERT (webhook). We could limit to just when 'flooding is occurring' so my service is fairly simple.
I'm not sure ELK allows for something like this easily, but figure I ask to be sure.
Cheers!

@krysttian
Copy link
Author

@joshdvir forgot to tag you in original.

@joshdvir
Copy link
Contributor

joshdvir commented Feb 4, 2019

Hi @krysttian,

The current service gets the POST webhook and saves it in the DB, Logstash does support other output plugins - https://www.elastic.co/guide/en/logstash/current/output-plugins.html
But I don't think this is the way you want to go.

The idea behind this service is to save all the events in the DB and then you can query the DB for the information you want.

The service you are talking about I think should include a web page so people can signup to receive alerts and maybe we can associate a user/group to a specific device.

After you have all the users you can define specific thresholds for the devices in Logstash and Logstash will POST to your service who will send to Twilio and SMS all the users.

Or you can just query the DB every x amount of sec and alert the users when you want

What do you think?

@krysttian
Copy link
Author

"After you have all the users you can define specific thresholds for the devices in Logstash and Logstash will POST to your service who will send to Twilio and SMS all the users."
Sounds right, i'll get my own repo going and we can discuss integration once i'm done on my side.
I'm thinking we leave this issue open until then if thats ok with you?
Either way Thank you!

@joshdvir
Copy link
Contributor

joshdvir commented Feb 4, 2019

👍

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

No branches or pull requests

2 participants