Author: @Brett Barrett
Product Dev - We have already discussed some of the new features in the 12.4 APIs, but I want to bring to attention the tool I created to make using the REST interface much simpler to use.
Here is a screenshot of my new tool:
And the Target version with the capabilities of exporting the query as JSON:
The newest version of it can be accessed at: https://github.com/barrebre/RESTfulDC
Currently, to navigate the REST api, you have to run commands such as:
http://1.2.3.4:5/rest/dmiquery/getApplications
Then, move to getData views
http://1.2.3.4:5/rest/dmiquery/getDataViews?appId=CVENT
Then, move to getResolutions
http://1.2.3.4:5/rest/dmiquery/getResolutions?appId=SYSTEMDIAG&viewId=ProbeMemStatistics
Then, move to getDimensions
http://1.2.3.4:5/rest/dmiquery/getDimensions?appId=SYSTEMDIAG&viewId=ProbeMemStatistics&resolution=r
Then, move to getMetrics
http://1.2.3.4:5/rest/dmiquery/getMetrics?appId=SYSTEMDIAG&viewId=ProbeMemStatistics&resolution=1
This is a very iterative and cumbersome process which can deter users from actually using the REST interface. My hope is that this tool will make retrieving the query URL simple for any end user.
All feedback is appreciated and feel free to fork the repository and make your own enhancements and upgrades
Brett,
This is an awesome tool. In fact just about couple of days ago when I started to look at the DMI Webservices guide, I was clueless about how should I create my REST queries to retrieve data out of CAS, and this came to my rescue.
Just wondering if you can make a change to reflect the json post body equivalent of the URL portion, I am sure at some point we will run out of the URL length limit on the request, since I need to request lots of attributes.
Thanks again.
Anil Shinde
FixStream networks
Bonjour,
Je ne travaille plus chez Generali.
Merci de transmettre vos messages à la liste de diffusion DIS-INT-PI-Performance.
Cordialement, Aurélie
Another comment: Could this maybe be moved to the same place as this? Or something similar as to the plugins in AppMon?
https://community.dynatrace.com/community/display/PUBDCRUM/Operations+Management+Integrations
Hi Tarjei,
How about DC RUM KB? Or creating a new section in DC RUM Extensions with this kind of solutions, plugins, and scripts?
Yes that was basically my Idea as well. Dynatrace AppMon has a rather good community space with plugins and extensions, would be nice to see the same for DCRUM as well :)
No problem!
I'll do my best do prepare such space next week :)
Hi Brett,
This tool is so powerful that I have some customers which asked for more.
Should it be possible to call an existing DMI report instead of selecting dimension and metrics to recreate it using REST interface ?
Thanks,
Matt
Hey Matthieu,
Sorry for the delayed response, somehow I wasn't following this thread!
Hmm, that's a possibility I hadn't considered. It would have to be done based on a section of a DMI instead of the whole report. I can investigate the viability of this feature. Feel free to reach out me by email if you have any questions.
Regards
JANUARY 15, 3:00 PM GMT / 10:00 AM ET
Creating DMI User-defined Metrics (Custom Metrics) and ISP Mode Limitations
List of DCRUM Logs for each component - with description
How to map a custom name/text/ID to a Client IP Address
DC RUM Community High Five Award: Travis B.!
Technical Alert: CAS/ADS not starting after installing MS patches.