New to Dataiku DSS? Try out our NEW Quick Start Programs today and get onboarded on the product in just one hour! Let's go

Sending Slack notifications from Scenario script

Solved!
rmnvncnt
Level 3
Sending Slack notifications from Scenario script

Hello,

I'm trying to send custom slack notifications using the scenario Python API, but I could not find documentation on the webhook parameters. Here, "slack_error_staging" is already configured (and working). I'm going for something like this :

sender = scenario.get_message_sender("slack_error_staging")
    
sender.send(
    sender="romain", 
    message="foo",
    mode="incoming_webhook",
    url="https://hooks.slack.com/services/stuff"
)

I don't know what value should be used for the "mode" parameter to elicit the expected behavior. I don't know if "url" is the correct spelling either.

Best,

Romain

1 Solution
rmnvncnt
Level 3
Author

The actual parameters are :

sender.send(
    username="romain",
    message="Test",
    mode="WEBHOOK",
    webhookUrl="https://hooks.slack.com/services/stuff"
)

View solution in original post

3 Replies
rmnvncnt
Level 3
Author
Anyone?
0 Kudos
rmnvncnt
Level 3
Author

The actual parameters are :

sender.send(
    username="romain",
    message="Test",
    mode="WEBHOOK",
    webhookUrl="https://hooks.slack.com/services/stuff"
)

View solution in original post

tiborstanko
Level 1

thanks!

0 Kudos
A banner prompting to get Dataiku DSS