I'm looking for a way to include in my validation mat a step with the following steps:
1) Enable Synthetic Monitor.
2) Run Synthetic Monitor.
3) Validate if the Synthetic Monitor succeeded or failed
4) Follow or fail the process according to the above result.
5) Disable Synthetic Monitor.
I haven't found a simple way through the API to determine if Synthetic Monitor ran successfully or failed.
Does anyone have a tip on how I could get this information?
Remember that you can use the :lastreal transformation to get the latest result available, and let your CICD accurate.
Hint: these are the metrics that you will probably use: builtin:synthetic.browser.availability.location.total or builtin:synthetic.http.availability.location.total
we actually have a preview running currently for running Synthetic monitors using the API and retrieving their results the same way. This has been designed for use in CI/CD pipelines. Is this something you might be interested in taking part in?