Slack plugin
Overview
The Slack plugin exports campaign execution reports to a Slack channel.
- Technology addressed
-
Slack: https://slack.com/
- Dependency
-
io.qalipsis.plugin:qalipsis-plugin-slack - Configuration namespace
-
report.export.slack
Configuration
Example configuration file
report:
export:
slack:
enabled: true
token: ${SLACK_BOT_TOKEN}
channel: qalipsis-campaign-report
status:
- SUCCESSFUL
- FAILED
- WARNING
Configuration parameters
Available parameters are described in the table below.
| Parameter | Description |
|---|---|
|
Activates or deactivates campaign report publishing to Slack. The publisher bean is created only when Example
|
|
Bot token used to authenticate requests to Slack API, typically starting with Example
|
|
Target Slack channel where notifications are posted. Example
|
|
Set of campaign execution statuses that should trigger notification publishing. Example
|
|
Slack API endpoint configuration value. Example
|
Creating and installing a Slack app
Creating an app
Create an app from the Slack API website.
-
Navigate to Slack API website.
-
Click Create an App.
-
Select From an app manifest.
-
Select the development workspace where you will build your app, and click Next.
-
Replace the manifest content with the JSON object below.
You can edit
display_informationandfeatures, but avoid changing theoauth_configblock. -
Review the app summary.
-
Click Create App.
- Manifest
{
"display_information": {
"name": "QALIPSIS-REPORT-NOTIFIER",
"description": "QALIPSIS notifications",
"background_color": "#32373d",
"long_description": "Receives notifications from QALIPSIS via Slack, including execution reports. Install the app in Slack, configure access in QALIPSIS and be notified in real time when a campaign ends."
},
"features": {
"bot_user": {
"display_name": "QALIPSIS-REPORT-NOTIFIER",
"always_online": false
}
},
"oauth_config": {
"scopes": {
"bot": [
"chat:write",
"chat:write.public",
"im:read",
"channels:history",
"groups:history",
"mpim:history",
"im:history",
"incoming-webhook"
]
}
},
"settings": {
"org_deploy_enabled": false,
"socket_mode_enabled": false,
"token_rotation_enabled": false
}
}
Installing the app into your workspace
-
From the left panel of Slack API website, click Basic Information.
-
Click Install to Workspace.
-
Select or create a channel where QALIPSIS-REPORT-NOTIFIER should post notifications.
-
Click Allow to complete the installation.
- Reference Documentation
-
For further information, refer to the official Slack documentation.