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

This observer sends notifications to Slack.

Example

{
    "$schema": "https://duckhq.org/schema.json",
    "observers": [
        {
            "slack": {
                "id": "slack_observer",
                "credentials": {
                    "webhook": {
                        "url": "https://hooks.slack.com/services/webhook"
                    }
                }
            }
        }
    ]
}

Required fields

Field Type Description
credentials SlackCredentials The Slack credentials
id String The Slack collector ID

Optional fields

Field Type Description
channel String The Slack 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 Slack.

Webhook:

"credentials": {
    "webhook": {
        "url": "https://hooks.slack.com/services/webhook"
    }
}