I’d like to use the Subscription option to send notifications to a Slack channel. Most of the fields make sense but I am stuck on Content Type and Payload.
I searched in Documents but didn’t find anything that covered Subscriptions. Did I miss it?
-David
Page 1 / 1
Hi @dkovar!
The actual payload might depend on the trigger event type, but here’s an example of my Subscription where I am sending a Slack notification when a pipeline gets committed via “Check-In” option in the pipeline canvas.
{ "Alert_Name": "New Pipeline Version Committed", "Pipeline_ID": "{{PIPELINE_ID}}", "Pipeline_Version": "{{PIPELINE_VERSION}}", "Pipeline_Name": "{{PIPELINE_NAME}}", "Pipeline_Committer": "{{PIPELINE_COMMITTER}}", "Pipeline_Commit_ID":"{{PIPELINE_COMMIT_ID}}", "Pipeline_Commit_TS": "{{PIPELINE_COMMIT_TIME}}" }