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.
Docs for this method need to be updated/fleshed out -- they are pretty nonexistent. Docstring on the class itself in install is also just a one liner. Hard to tell what we can use unless we back up into other methods being called in source.
Hey @importthepandas I think there is some additional documentation on this subject if I am not mistaken (and maybe I am):
Note that Slack uses a specific format for its messages, and leaves html as-is.
I hope this helps!