Skip to main content
Solved

Example Slack integration?


Greetings,


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

 

Best answer by Dash

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}}"
}

Here’s a screenshot of the Subscription config.

 

View original
Did this topic help you find an answer to your question?

3 replies

Dash
Headliner
Forum|alt.badge.img+3
  • Senior Technical Evangelist and Developer Advocate at Snowflake
  • 67 replies
  • Answer
  • October 27, 2021

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}}"
}

Here’s a screenshot of the Subscription config.

 


  • Author
  • Fan
  • 1 reply
  • October 27, 2021

Thank you very much.

-David

 


Dash
Headliner
Forum|alt.badge.img+3
  • Senior Technical Evangelist and Developer Advocate at Snowflake
  • 67 replies
  • October 28, 2021

You’re welcome!


Reply