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

Teams middleware #174

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

RomanosTrechlis
Copy link

There is a need to send Microsoft Teams messages after the execution of a job by Ofelia and therefore this pull request implements this feature.

Added a new teams.go file in the middleware directory with the corresponding teams_test.go file.

The config.go file in the cli directory has been changed in order to accomodate the new functionallity.

Additionally, README.md has been changed accordingly.

I followed in the steps of the Slack logging driver implementation. The configuration is similar to the Slack configuration, and I have added the following two options:

  • teams-webhook - URL of the Teams incoming webhook.
  • teams-only-on-error - only send a Teams message if the execution was not successful.

A message for the successful execution of a job.

image

A message for the failed execution of a job.

image

@maietta
Copy link

maietta commented Jun 20, 2022

Hi @RomanosTrechlis,

I maintain a fork of Ofelia called Chadburn which aims to be actively maintained and expanded. Just noticed your contribution and pull request. After review, I've decided to add this into Chadburn found here: https://github.com/PremoWeb/chadburn.

See: https://github.com/PremoWeb/chadburn/releases/tag/v1.0.3

Thank you very much for your contribution.

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.

None yet

2 participants