Skip to content

slack

Send an experiment summary in a message to a Slack channel using a incoming webhook.

Usage Example

iter8 k launch \
--set "tasks={http,slack}" \
--set http.url=http://httpbin.default/get \
--set slack.url=<Slack webhook> \
--set slack.method=POST

See here for a more in-depth tutorial.

Parameters

Name Type Required Default value Description
url string Yes N/A URL to the Slack webhook
payloadTemplateURL string No https://raw.githubusercontent.com/iter8-tools/iter8/v0.16.5/templates/notify/_payload-slack.tpl URL to a payload template
softFailure bool No true Indicates the task and experiment should not fail if the task cannot successfully send the request

Default payload

The payload will determine what will be contained in the Slack message. The default payload template of the slack task is to send an experiment summary in text form.

However, if you would like to use a different payload template, simply set a payloadTemplateURL and Iter8 will not use the default.