-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: msft teams support for critical alerts (#5113)
* feat: msft teams support for critical alerts * ee changes * ee * sqlx prep * multiple teams channels * commit file, not symlink * improve reactivity * docs link * Update ee-repo-ref.txt
- Loading branch information
Showing
29 changed files
with
387 additions
and
42 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
backend/.sqlx/query-08dd2ea6b17a52bce352d6443d7d009cfc9da0d3b2bd1f40d422b550779e5324.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
backend/.sqlx/query-44a12919fb154055f1142cc078ef131f8a0c9cdb37cfba6283a6718480b02a4b.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
backend/.sqlx/query-84d048ea323758842dc564c700b524d1a5b196a7b77afcb02f46b84b22088bbf.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
backend/.sqlx/query-9c72b2962d0919353cfe5af710e857d432dff44e343b8f0610208d42ff5afd14.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ddcfdfc18a9833a5fc4e62ad62a265ef1e06a0aa | ||
0c89b8974ff6e1c9eda2134f09d4a03f18b57c15 |
1 change: 1 addition & 0 deletions
1
backend/migrations/20250115223046_teams_global_settings.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DELETE FROM global_settings WHERE name = 'teams'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO global_settings (name, value) VALUES ('teams', '{}'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3234,6 +3234,22 @@ paths: | |
type: array | ||
items: | ||
type: string | ||
|
||
/teams/sync: | ||
post: | ||
operationId: syncTeams | ||
summary: synchronize Microsoft Teams information (teams/channels) | ||
tags: | ||
- teams | ||
responses: | ||
'200': | ||
description: Teams information successfully synchronized | ||
content: | ||
application/json: | ||
schema: | ||
type: array | ||
items: | ||
$ref: '#/components/schemas/TeamInfo' | ||
|
||
/w/{workspace}/resources/create: | ||
post: | ||
|
@@ -14012,3 +14028,49 @@ components: | |
format: date-time | ||
required: | ||
- trigger_kind | ||
|
||
TeamInfo: | ||
type: object | ||
required: | ||
- team_id | ||
- team_name | ||
- channels | ||
properties: | ||
team_id: | ||
type: string | ||
description: The unique identifier of the Microsoft Teams team | ||
example: "19:[email protected]" | ||
team_name: | ||
type: string | ||
description: The display name of the Microsoft Teams team | ||
example: "Engineering Team" | ||
channels: | ||
type: array | ||
description: List of channels within the team | ||
items: | ||
$ref: '#/components/schemas/ChannelInfo' | ||
|
||
ChannelInfo: | ||
type: object | ||
required: | ||
- channel_id | ||
- channel_name | ||
- tenant_id | ||
- service_url | ||
properties: | ||
channel_id: | ||
type: string | ||
description: The unique identifier of the channel | ||
example: "19:[email protected]" | ||
channel_name: | ||
type: string | ||
description: The display name of the channel | ||
example: "General" | ||
tenant_id: | ||
type: string | ||
description: The Microsoft Teams tenant identifier | ||
example: "12345678-1234-1234-1234-123456789012" | ||
service_url: | ||
type: string | ||
description: The service URL for the channel | ||
example: "https://smba.trafficmanager.net/amer/12345678-1234-1234-1234-123456789012/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use axum::Router; | ||
|
||
pub fn teams_service() -> Router { | ||
Router::new() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.