This is an early build of the site and information may not be accurate or complete.
Mattermost

This observer sends notifications to Mattermost.

Example

{
    "$schema": "https://duckhq.org/schema.json",
    "observers": [
        {
            "mattermost": {
                "id": "mattermost",
                "channel": "build-status",
                "credentials": {
                    "webhook": {
                        "url": "https://mattermost.example.com"
                    }
                }
            }
        }
    ]
}

Required fields

Field Type Description
credentials MattermostCredentials The Mattermost credentials
id String

Optional fields

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

Credentials

The credentials fields is where you tell Duck how you want to authenticate with Mattermost.

Webhook:

"credentials": {
    "webhook": {
        "url": "https://example.com/mattermost"
    }
}