Skip to content

slack/message

Slack Message JSON format (allows expansion)

JSON formatted data for Slack Webhook postings.

Must be formatting in Slack acceptable JSON.

Uses .ParamExpand so that operators can insert information into the message without having to customize the task. This allows you to dynamically embed Params into Slack messages.

For example, using a Trigger with MergeDataIntoParams: true exposes properties from the Object causing the Event. If that Event is an Alert, then you can include the Level and Name of the Alert in your Slack message: {"text":"{{.Param "Level"}} Alert {{.Param "Name"}} from Digital Rebar at {{.ApiURL }}"}

See: https://api.slack.com/messaging/sending

Objects that Reference slack/message

Objects used by slack/message

Not used in current content packs