This observer sends notifications to Mattermost.
{
"$schema": "https://duckhq.org/schema.json",
"observers": [
{
"mattermost": {
"id": "mattermost",
"channel": "build-status",
"credentials": {
"webhook": {
"url": "https://mattermost.example.com"
}
}
}
}
]
}
Field | Type | Description |
---|---|---|
credentials | MattermostCredentials | The Mattermost credentials |
id | String |
Field | Type | Description |
---|---|---|
channel | String | The Mattermost channel to send messages to |
collectors | Array | The collectors to include events from |
enabled | Boolean | Determines whether or not this collector is enabled |
filter | String | An optional filter expression |
The credentials fields is where you tell Duck how you want to authenticate with Mattermost.
"credentials": {
"webhook": {
"url": "https://example.com/mattermost"
}
}