-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: logzio
Are you sure you want to change the base?
DEV-46743: add support for ms teams workflows #50
Conversation
{ | ||
Type: "teams_workflows", | ||
Name: "Microsoft Teams Workflows", | ||
Description: "Sends notifications using Incoming Webhook connector to Microsoft Teams Workflows", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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" .}}`), |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer: