gatus
gatus copied to clipboard
fix(alerting): Make Microsoft Teams title customizable
Describe the bug
I have integrated teams alerting system but the alert that I am getting is not as expected. I am not getting the proper icon in the alert.
What do you see?
as you can see in this image icon is not getting resolved, I am getting some value "🚨"
What do you expect to see?
I want to see like this, the proper icon
List the steps that must be taken to reproduce this issue
configure teams alerting system
Version
latest
Additional information
@TwiN pls look into this bug
@221bshashank
The issue is limited to the Microsoft Teams classic desktop client. Gatus alert cards are rendered correctly on my phone Teams App and on the web client via Office 365.
Here is the emoji on the MessageCard Title https://www.iemoji.com/view/emoji/865/travel-places/police-car-light
And here it is in Hexadecimal (🚨)
- https://github.com/TwiN/gatus/blob/16366e169e19a1530329305135ce593aaddddc68/alerting/provider/teams/teams.go#L108
I've also experienced this problem, it started when I updated teams a few weeks ago 😞
I'm not using the "Try the new Teams" feature although the same issue exists when I turn it on
I think color code needs to be changed (https://github.com/TwiN/gatus/blob/de7256e671c3cc6106a154a8fd49df426f4ce56a/alerting/provider/teams/teams.go#L108), not sure
I don't know what side is wrong on this since other similar tools also got broken notifications...
This topic was recently reported at Microsoft at https://techcommunity.microsoft.com/t5/microsoft-teams/new-teams-unicode-hex-character-and-emoji/m-p/3963936 google also show up earlier similar issues...
Both flavours of Teams (traditional and "new") are affected according to my experience.
To be completely honest, that seems more like an issue with Microsoft Teams than with Gatus, however, it's an issue nonetheless.
If allowing the customization of the title in the message generated by the webhook payload sent by Gatus resolves the situation, then I'd be willing to add a new alerting.teams.title
field.
There's already a precedent for this anyways: see #602, which was made for Discord's title to be customizable.
@TwiN sounds like a new feature. thanks
The issue is limited to the Microsoft Teams classic desktop client. Gatus alert cards are rendered correctly on my phone Teams App and on the web client via Office 365.