Hi,
I am having issues generating the html report using the example Dynatrace target below.
1st target: "<DtReport dashboardname="easyTravel Database" source="live:easyTravel" createHtml="true" xmlToFile="./results/report.xml"/>"
Once the 1st target is executed, I see the updated report.xml file and when I open the index.html or overview.html, i dont see the body of the report. Can someone try using below task and let me know how you got it working?
2nd Target: "<DtReport dashboardname="RulesDashboard" iteratorDashboard="TransactionDashboard" source="live:GoSpace" createHtml="true" reportDir="./results"/>"
I dont know how to exploit this target options like iteratordashboard. Can some one explain the use case of this dtreport task and how an example report would look like?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<target name="DashboardReporting">
<!-- Queries a single dashboard and puts the result out to an XML File using XSLT to transform it to HTML -->
<DtReport dashboardname="Test" source="live:GoSpace" createHtml="true" xmlToFile="./results/report.xml"/>
<!-- Creates a dashboard report for every transaction or webrequest that is on the iterator dashborad
outputs all files in the report directory
an overview page is created to navigate through all result files
-->
<DtReport dashboardname="RulesDashboard" iteratorDashboard="TransactionDashboard" source="live:GoSpace" createHtml="true" reportDir="./results"/>
<!-- Make sure that - when using Business Transactions on the Iterator or Data Dashboard to reanalyze stored sessions before running the report
Either us DtReanalyzeSession or specify the reanalyzeSession="true" property for DtReport
-->
</target>
Answer by Roman S. ·
1) The way this reporting works is that it creates a XML file with the data (report.xml) and through a XSLT this should be converted into a viewable HTML table. It seems the stylesheet (styleDashboard.xsl) is not matching how the XML data structure looks, seems this was never updated.
But before we dig further into this - how do you actually want to present the data? Really just as a HTML table with the actual raw values? Else I would recommend you get a open source Ant task that can download web links and feed it the link to a real dashboard, e.g. the following for a PDF report: http://${dynaTrace.username}:${dynaTrace.password}@localhost:8020/rest/management/reports/create/Maven%20Dashboard?source=${dynaTrace.sessionName}&type=PDF
Edit - actually for Ant you don't need any additional tasks (had only done this in Maven in the past), just use the Get task.
Best, Roman
Answer by Praveen B. ·
Hi Roman,
Thanks for the quick help.
'RulesDashboard' - Is this the name of a dashboard that would be created by the Task?
Can you give me an actual example of a fully functional ANT Task so that I can interpret your response better?
Also help me with 1st query.
There are no dashboards created by this task - RulesDashboard will be executed for each web request or business transaction that is part of the iterator dashboard.
ad 1 - patience, getting to that. If you need urgent help please open a support case where we have SLAs and a dedicated team working on them.
Best, Roman
Answer by Roman S. ·
Hi,
2) The iterator dashboard is a way of execution the same report for a number of web requests or business transactions. It has to point to a dashboard that contains only one dashlet with the business transactions or the web requests dashlet. Each entry in this dashboard is then used as a filter for the data dashboard defined as dashboardname parameter.
Best, Roman
JANUARY 15, 3:00 PM GMT / 10:00 AM ET