19 Mar 2019
01:10 PM
- last edited on
13 Dec 2021
01:24 PM
by
MaciejNeumann
Hi All,
I have Just created a small script/Application to pull details of all the problems during given time frame. It uses the API call to pull the list of all problems in a given time frame. It uses the API time presets to pull data. i have tested it on SaaS platform of Dynatrace Synthetics. I am sharing the Source code here with instructions how to modify it for your environment.
Please share the feedback suggestions here with me it will help me improve the solution.
Instructions:
You will need to update path variables and API keys,Time and tags and environment name in script rest it will do and pull out the report in CSV. Hope everyone likes it. I have names it LOMAS-list of monitors affected in Synthetics.
regards,
Kulwinder Singh
Solved! Go to Solution.
19 Mar 2019 01:14 PM
Cool - thanks for sharing Kulwinder!
20 Mar 2019 06:36 AM
I am adding a instructions doc with the script on how to modify it as per you environment.
instructions-to-run-the-script.docx
09 Apr 2019 03:02 AM
Added email functionality to the script just supply the missing values and it will drop a mail with an attachment of report in csv format.lomas-2.zip schedule it and it will do that automatically at regular intervals.
12 Apr 2019 08:31 PM
Hi @Kulwinder S. I am looking fr an option to send auto reports for open Problems in every 3 hours. Can you please advise if you script can help here.
Thanks!
15 Apr 2019 04:29 AM
the Script uses the API presets that are there available from Dynatrace and these are("5mins","10 mins","15mins","30mins","hour","2hours","6hours","day","week","month") Custom time other than that is not working for now. but for these presets it can send auto report once scheduled.
15 Apr 2019 04:36 AM
-Its not like you cant use custom time but its tricky API only accepts custom time in Epoch and normal time has to be converted to that before it can be used.
15 Apr 2019 02:55 PM
Just a thought- if I want to send a automatic email will that be possible?
15 Apr 2019 03:13 PM
If you check the script above lomas-2.zip it has email functionality in it. you will have to add your smtp server, from to address and then schedule the script at desired interval it should do the trick..