Hi,
I'm using the Dynatrace REST services to create a html report in my automation system. Here is an example:
http://{servername}/rest/management/reports/create/{ dashboard name}
When I use this directly on the browser I see the images, but when I save the html and try to get the images, it seems they have been deleted from the dynatrace server. I'm thinking there is some sort of a cleanup process that deletes the images as soon as they are created.
Is there a way for me to download the html file and the images at once?
thanks,
Solmaz
Answer by Solmaz A. ·
tnx Dominik
I did as you recommended and now I have a good looking HTML Report that is integrated in our Teamcity server
thanks,
Solmaz
Good to hear, maybe you can/want to share what you did so others can take a look as well?
Especially integration into TeamCity sounds interesting!
Answer by Dominik S. ·
Hi,
Yes, when a server-side HTML report is requested, the images are provided via separate links. These links point to http://{servername}/rest/management/reports/image/...., however what happens is that when the images are downloaded, they are removed internally on the server, so the links work only once. This is done to keep the caches and disk-usage on the server small and to free up all resources as soon as the report is fully downloaded by the Browser.
So it should work if you parse the HTML that you receive and extract the image links and fetch those images without looking at the report in the browser at the same time.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET