ofelia icon indicating copy to clipboard operation
ofelia copied to clipboard

Teams middleware

Open RomanosTrechlis opened this issue 3 years ago • 1 comments

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

RomanosTrechlis avatar Jan 11 '22 12:01 RomanosTrechlis

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.

maietta avatar Jun 20 '22 20:06 maietta