05 May 2025
10:19 AM
- last edited on
06 May 2025
07:01 AM
by
MaciejNeumann
Hello .
Can someone help to rewrite a part of a python script in Dynatrace Synthetic using pre-script
here is the code of my python script .
the difficulty is to rewrite the final url with the Epoch in combination with the key and secret .
i tryed many things but still not working .
any idea and help is welcome .
Solved! Go to Solution.
05 May 2025 12:04 PM
Hi,
I have just run and URL looks like this:
https://endpointhost/parent/R000057/v1/sent/status?api_key=xaaaaxxxxxaaaaxxxxxaaaazzz&sig=03fec1a1e92292b841fdd9c45add64421bfec456dbb871ccd2284cf04695f963
I have just changed "timestamp" for "ts" when you create "sign" variable:
sign = api_key+secret+str(ts)
Best regards
05 May 2025 01:23 PM
Hello @AntonPineiro
thanks for the quick reply.
Actually my python script is working well as expected what i want is to do same thing in dynatrace on the HTTP monitor (in the pre-script) ..
what i want is to monitor the response of this request via synthetic monitor (HTTP) .
05 May 2025 03:43 PM
Hi,
You need to use JavaScript for this. This is another use case but maybe it would help you.
Best regards