Creating Slack Hooks
- Click your avatar, then click Account settings
- Click Service Hooks from the left pane menu.
- Click + new hook.
- In the list, choose Slack.
- You will be redirected to Slack's authorization page to accept Xplenty's authorization request. Follow the instructions.
- Select the events you want to be notified about using this webhook:
- All Job Notifications: All events below.
- Job Submitted: Job was submitted by user or schedule for execution.
- Job Started: Job execution started.
- Job Stopped: Job stopped by user.
- Job Completed: Job completed successfully.
- Job Failed: Job completed with failure.
- All Cluster Notifications: All events below.
- Cluster Requested: Cluster creation requested by user or schedule.
- Cluster Available: Cluster is available and jobs can be run on it.
- Cluster Terminated: Cluster is terminated.
- Cluster Idled: No activity on the cluster for a specified interval.
- Cluster Error: Cluster error occurred and jobs can't be executed on it.
- By default, the Slack hook is created active but you can disable it if you wish.
- Click create service hook to save your changes.
- You can trigger a ping event to test the hook.
Please note that due to a technical limitation on Slack's side, deleting a Slack hook will not remove the integration from your Slack team. You will have to manually revoke Xplenty's integration.
Note: Xplenty is using minimal permission required to post messages to Slack teams ("incoming-webhook" scope). No read permissions are granted. You can read more about it here.