I have noticed that there doesn't appear to be an API for reports, which I have found extremely useful while using SmartBear's AlertSite for synthetic monitoring. We are in the process of switching over to dynaTrace synthetic monitoring, but the only thing holding us back from cutting the cord to AlertSite completely is the fact that we are unable to automate obtaining the very specific information that we need to submit in our monthly SLA reports -- specifically, for 2 separate sites/tests -- the overall total uptime percentage during the previous month, the overall uptime percentage during our peak hours, the overall uptime percentage during non-peak hours, as well as minimum/maximum/average response time.
In the uptime/downtime, we only want entries where outages were reported from all locations. This was extremely easy with AlertSite's report REST API, because we would simply execute a Bash script that used cURL to grab a report of all outages for a particular device (Test) during the previous month. The output was already CSV, so the data was extremely easy to parse using awk. In the output would be the timestamps of the beginning of the outage, the end of the outage, the duration of the outage, as well as the IDs of the testing/reporting locations. Because the IDs of the locations were included in the outage output, we could simply exclude all lines with less than 3 location IDs, and then use the remaining lines' timestamps to calculate monthly downtime percentage, etc. The peak/non-peak stuff was calculated on our backend using Perl, but I have not discovered an easy way to replicate this functionality with the dynaTrace Synthetics API.
We still generated a manual report from AlertSite to get the response times, because there was no easy way to automate that, but I am basically just looking for a way to generate outage output in CSV format (or even JSON or XML for that matter) for all locations during the previous month, which include total downtime/unavailability or at least start time and end time. Additionally, via API or not, I am looking for a way to report the total page load (for single page tests) and average page load of the entire flow (for multi-page tests) in minimux, average, and maximum measurements for the entire previous month.
In the most-useful-looking reports, it appeared that CSV was grayed-out and that the only option was PDF or Excel, which is not acceptable. We are engineers trying to save time, and this process is already time consuming when manually inputting the auto-generated data and manual AlertSite report data into the monthly Excel spreadsheet. We want to at least continue the same process with dynaTrace Synthetics and not have to default back to the stone ages of manually doing the whole thing, which has been half-automated for the past 3 years.
Answer by Carl M. ·
That's an interesting challenge, I've recently completed an automated service level report project which could help, I'd be happy to walk through what I have and how it works. With a few tweaks it could create the required CSV files.
This could be a short term fix, a better, longer term solution would be started through an RFE here