cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to access the api values that were set in Post Execution Script in the Alert Notifications?

Roshi02
Visitor

Hello team,

We have a Synthetic monitor enabled for a HTTP Get endpoint, and we also have integrated both Email and Slack notification to get notified in case of any outage. But we could see there is no proper message in the Alert notification, so we would like to have the actual response body in the alert message. For that we have enabled Post execution script with the following script to capture the response body.

Roshi02_0-1705987905799.png

We tried using this as a placeholder {responseBody} in the Slack Message, but we could not see the actual response body in the message instead the placeholder was sent as it is. Are we missing anything here? Could someone help us with this please?

Thanks!

1 REPLY 1

ChadTurner
DynaMight Legend
DynaMight Legend

In terms of the alert integrations, Slack only has the following placeholders: 

ChadTurner_0-1711564010764.png

Any placeholder that you add, that isn't in the list above will result in a clear text payload. 

 

-Chad

Featured Posts