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

DEV-46743: add support for ms teams workflows #50

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

Jonathan-Eng
Copy link

@Jonathan-Eng Jonathan-Eng commented Oct 27, 2024

Add support for MS Teams Workflows receiver.

{
Type: "teams_workflows",
Name: "Microsoft Teams Workflows",
Description: "Sends notifications using Incoming Webhook connector to Microsoft Teams Workflows",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove "webhook connector" words

Label: "URL",
Element: alerting.ElementTypeInput,
InputType: alerting.InputTypeText,
Placeholder: "Teams Workflows incoming webhook url",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this to workflows jargon

return &TeamsWorkflowsConfig{
NotificationChannelConfig: config,
URL: URL,
Message: config.Settings.Get("message").MustString(`{{ template "teams.default.message" .}}`),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ohadza do we want to decouple teams template from teams workflows template? (i.e. define teams_workflows.default.message).

"type": "message",
"attachments": []map[string]interface{}{
{
"contentType": "application/vnd.microsoft.card.adaptive", // Adaptive Card content type
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

},
},
"backgroundImage": map[string]interface{}{
"color": getAlertStatusColor(types.Alerts(as...).Status()), // Use the theme color as the background
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment

@Jonathan-Eng Jonathan-Eng merged commit 97dca4a into logzio Oct 31, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant