We map our internal severity levels to gotify priorities (should never be 0 though).
Interesting. Thanks for the link to the code. Looking at it, the mapping makes sense. Let me try to explain, why I was so puzzled and maybe you have an idea how to solve it. Your suggestion to add another config setting makes sense, but let's go back to that a bit later.
I've set up a gotify notification target and a matcher (let's call it system-mail) for the field type system-mail. I am also using apticron, because Proxmox didn't tell me, whether there were any updates available or not, unless I checked manually. Maybe this is now possible with the new notification system, I don't know. I havent looked into that yet.
Then there was an update available and I got a notification via gotify. However, there was no sound in the web UI of gotify, nor in the Android app.
When looking at priorities and how they are mapped on Android (and the web UI), it explains the situation:
Notification | Gotify Priority |
---|
- | 0 |
Icon in notification bar | 1 - 3 |
Icon in notification bar + Sound | 4 - 7 |
Icon in notification bar + Sound + Vibration | 8 - 10 |
I expected to hear a ping, when getting the notification that there were updates available. But it also makes sense that this type of system message is an info or notice, and not a warning or error. Although I suspect that all emails sent to root are using a static severity.
I dont' really want to change the default behavior, but maybe we could add another configuration setting 'don't map priority' - would that help?
I understand and changing the default behavior wouldn't do any of us any good. Your design is well thought-out. An option would certainly help. Was your idea to add it to the target or the matcher? The matcher would make more sense, but might need more coding.
On the other hand, it seems to me that this would maybe only help my specific use-case and I think there might be more important things to tackle.
Thanks anyway for your reply and willingness to add another option.