-
Notifications
You must be signed in to change notification settings - Fork 12
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
Implement webhooks endpoints in hostd API #189
Comments
I'm giving this a go, not completely sure I'm to the task though but if it's not urgent then give me a few days and i'll let you know how i fare. |
@multikatt if you need any help on the design or have any questions, ping me here or in Discord. |
@n8maninger I've added a partly finished solution here, but I've some questions about the way I'm solving it that I've added to the PR that I think is for you. |
Thanks for the development of these endpoints since I needed those for my project! |
I'll review today and get back to you |
Hi, is this available to use? |
Not yet. The PR is still in progress #192 |
I want to ask a question apart from this issue @n8maninger. Is there a way to detect which webhook response is coming from where? Let me explain it, I am developing a Telegram bot that alert users when renterd/hostd alert event occurs. Initial scheme was this,
So the first alarm stores accountID, but the second alarm doesn’t store it. Or second alarm stores address, but first one doesn’t. If it is guarantee that any of the alarm stores consistent unique ID information, then the above scheme would work. So that, I would fetch Telegram chat ID from my DB based on unique ID and sent message to the user. But, because of above problem, I don’t any option to host it. Is there a solution for it? Thank you |
Add the unique ID to your webhook URL: |
Description
I am developing a Telegram bot to forward urgent Renterd alerts to the Telegram app of end-user. This require registering a new webhook for alert modules, and subsequently monitor and forward any triggered alerts to the Telegram user. I could do in renterd API since it has webhooks endpoints.
I wanted to do also include hostd alerts, but since it doesn't have any webhooks endpoints (that includes alerts), this seems not possible to do.
Could we add webhooks that includes alerts for hostd API?
Version
No response
What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: