mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[GH-ISSUE #1024] teams webhook deprecation #711
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#711
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Brandhor on GitHub (Jul 9, 2024).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/1024
microsoft is retiring the teams connectors and they should be replaced with workflows.
healthchecks right now uses the connector card message format but the workflow template requires a format like this one
@kevincobain2000 commented on GitHub (Jul 9, 2024):
+1
@daviewales commented on GitHub (Jul 12, 2024):
Note the timeline:
@cuu508 commented on GitHub (Jul 17, 2024):
Thanks Microsoft.
I commited an initial version of a new "msteamsw" integration which uses MS Teams Workflows to post notifications.
The "Add Integration" page:
An example notification:
The existing (now deprecated) MS Teams integrations will now be listed as "MS Teams O365 Connector":
Users of the existing (now deprecated) MS Teams integration will need to delete the old integration and create a Workflow-based integration.
This change is not yet deployed to healthchecks.io.
@cuu508 commented on GitHub (Jul 18, 2024):
Now deployed to healthchecks.io.
I will also look into adding some way to upgrade the existing MS Teams integrations to Workflows-based integrations, so users don't need to recreate check-integration mappings.
@kevincobain2000 commented on GitHub (Jul 19, 2024):
Warnings disappeared on the previous web hook. Has something changed? No official announcements from MS yet.
Disappeared for these users too: https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/comment-page-23/#comments
Official Feedback portal
https://feedbackportal.microsoft.com/feedback/idea/80ed6877-b642-ef11-b4ad-000d3a7aba8b
@Brandhor commented on GitHub (Jul 19, 2024):
they only removed the warning
@bbenouarets commented on GitHub (Jul 24, 2024):
If other system administrators are having difficulties locating the affected teams:
I have written a small tool in Golang that uses the Graph API to output the affected teams.
Teams Webhook Finder
This has helped us enormously, as Microsoft does not offer its own solution for reading the affected channels and teams. We have over 350 teams in our company, which we would otherwise have had to search through manually.
@daviewales commented on GitHub (Oct 20, 2024):
Microsoft have extended the deadline to 31st January 2025:
https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/
@cuu508 commented on GitHub (Oct 25, 2024):
Thanks for the tip, @daviewales, I've updated the deadline in Healthchecks UI
@daviewales commented on GitHub (Jan 14, 2025):
@cuu508, any chance the new Workflow based integration could include the ping body, similar to the old integration?
@cuu508 commented on GitHub (Jan 20, 2025):
@daviewales IIRC the new integration used a different payload format than the old one, and I did not figure out how to safely include a block of preformatted text, and make it look good. If you do figure it out, I'm happy to review and merge a PR.
@daviewales commented on GitHub (Jan 20, 2025):
I've found a way to include monospace text:
https://adaptivecards.io/explorer/RichTextBlock.html
It's not quite a code block, but is that close to what you were looking for?
@daviewales commented on GitHub (Jan 20, 2025):
Apparently a CodeBlock was added in September 2024, so that's probably the way to go. You can specify newlines with
\n. Literal\ncan be escaped as\\n. For plaintext, use"language": "PlainText". The following example is adapted from the link above:Edit:
I'm guessing the CodeBlock object would need to be added here?
github.com/healthchecks/healthchecks@b5d4f2aa74/hc/api/transports.py (L1263)And we could adapt this code to get the ping body?
github.com/healthchecks/healthchecks@b5d4f2aa74/hc/api/transports.py (L468)@cuu508 commented on GitHub (Jan 23, 2025):
@daviewales thanks for the tip, implemented in
github.com/healthchecks/healthchecks@bd7f658421@daviewales commented on GitHub (Jan 30, 2025):
Legend, thanks!