Skip to content

Allow Discord notifications to be silenced depending on the status (UP/DOWN) #7619

Description

@Maxme-L

📑 I have found these related issues/pull requests

#508
Seems to be a global method for what I am looking for

#4744
I'm looking for a similar option for Discord

🔖 Feature description

Be able to toggle on and off silent messages for Discord notifications for status UP and DOWN separately. This way, status notifications would still be sent to the desired channel to keep a history of the service state, without pinging people when the service comes back online.

✔️ Solution

I've seen that the current version implements a single switch toggling discordSuppressNotifications to true or false, without any distinction based on the state of the service.

I'd like to replace it with two separate switches, one for DOWN and one for UP, comparing the value against heartbeatJSON["status"] to decide when to suppress the notification. Both would default to false (not silenced), matching the current default behavior.

Scope: Discord only

❓ Alternatives

No response

📝 Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features to be added

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions