Allow for webhooks as a logging target #1876
Labels
API
Changes to the REST API
Documentation
Documentation needs updating
Easy
Good for new contributors
Milestone
Is there an existing issue for this?
What are you currently unable to do
Similar to #1420, it would make sense to also supports webhooks as another logging target type.
So we'd basically end up supporting:
For each of which we'd support selecting the type of events we want to send as well as some other configuration options like the log level for logging messages or the number of retries that should be made for sending to loki or webhook.
For webhooks specifically, we'll need the user to provide a URL and an optional number of retries that should be made. Internally we'll just spawn a goroutine which will make up to that number of attempts to send the data. We'd also allow configuring the format of the webhook. Initially we could support our own (same JSON struct as an API event) as well as some common options like the Slack webhook format and Google Chat webhook format so Incus can directly notify a notification channel in those chat platforms.
What do you think would need to be added
No response
The text was updated successfully, but these errors were encountered: