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 Request] Add option to select different notifications for DOWN and UP #4470

Closed
mh166 opened this issue Feb 9, 2024 · 1 comment
Closed
Labels
area:notifications Everything related to notifications feature-request Request for new features to be added

Comments

@mh166
Copy link

mh166 commented Feb 9, 2024

πŸ“‘ I have found these related issues/pull requests

#1953: Pushover different sound for up/down
#1582: Selecting notifications to send

🏷️ Feature Request Type

Settings

πŸ”– Feature description

It should be possible to optionally select a different notification for the UP message.

Use cases:

  • It can be useful to inform different groups for DOWN or UP events respectively.
  • It will allow (depending on the notification used) to have different message templates.
  • It will allow to have different sounds and/or priorities tied to those notifications.

βœ”οΈ Solution

  • A toggle switch "Use different notification for UP message" should be added to the notification settings of each monitor. If enabled, the notification methods select above would only be used for DOWN messages.
  • Below this toggle, it should display all the notification methods again, for use with UP messages.
  • If no notification provider is selected, Uptime Kuma will only inform about DOWN events and omit information about changes back to UP status.
    • A short message making the user aware of this behaviour may or may not be displayed.

❓ Alternatives

  • Alternatives to the UI changes suggested above:

    • Instead it would be possible to add a toggle switch _"Use different notifications for DOWN and UP messages above the list of notification providers.
    • The list of notification providers could then be displayed as a table like so:
      | Notification | Use for DOWN | Use for UP |
      | - | - | - |
      | Provider 1 | [x] | [ ] |
      | Provider 2 | [ ] | [x] |
      | Provider 3 | [x] | [x] |
  • Alternatives to this implementation in general

πŸ“ Additional Context

The idea behind all of this is that I want to hear an alarm and have a different vibration pattern for the notifications on my phone depending on wether a service goes down or comes back up. I want to be sure to receive the DOWN notification, but I don't care if only way later I see that the service is UP again.

Therefore, I would add the same notification provider twice (e.g. Telegram and Ntfy in my case). The one named "Ntfy - UP", for example, would just receive Priority 3 or 4 (medium / high). Then I'd add another instance of this provider, call it "Ntfy - DOWN" and set the priority to 5 (max). I can then configure my phone to treat those messages in a certain way.

This general approach using the monitor settings instead of making changes to the notification provider itself would allow for a more flexible and fine-grained approach, as one could use it with every notification provider available and mix and match as required.

@mh166 mh166 added the feature-request Request for new features to be added label Feb 9, 2024
@mh166
Copy link
Author

mh166 commented Feb 9, 2024

Sorry, my internet connection was flaky. Because of that, I unintentionally posted this FR twice. Feel free to delete this one, if possible.

@mh166 mh166 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2024
@CommanderStorm CommanderStorm added the area:notifications Everything related to notifications label Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:notifications Everything related to notifications feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

2 participants