-
Notifications
You must be signed in to change notification settings - Fork 388
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Site cosmetics and docs
- Loading branch information
Victor Castell
authored
Feb 4, 2019
1 parent
90edc5d
commit 0630a90
Showing
5 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
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,34 @@ | ||
--- | ||
title: Slack processor | ||
--- | ||
|
||
The Slack processor provides slack notifications with multiple configurations and rich format. | ||
|
||
Configuration of the slack processor is stored in a file named `dkron-processor-slack.yml` in the same locations as `dkron.yml`, and should include a list of teams, it can include any number of teams. | ||
|
||
![](/img/slack.png) | ||
|
||
Example: | ||
```yaml | ||
team1: | ||
webhook_url: https://hooks.slack.com/services/XXXXXXXXXXXXXXXXXXX | ||
bot_name: Dkron Production | ||
``` | ||
Then configure each job with the following options: | ||
Example: | ||
```json | ||
{ | ||
"processors": { | ||
"slack": { | ||
"team": "team1", | ||
"channel": "#cron-production", | ||
"onSuccess": true | ||
} | ||
} | ||
} | ||
``` | ||
|
||
By default the slack procesor doesn't send notifications on job success, the `onSuccess` parameter, enables it, like in the previous example. |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.