08 Jun 2021 09:46 PM - last edited on 09 Jun 2021 09:08 AM by MaciejNeumann
Dynatrace V2 API - How do I call a custom device?
I have an Oracle custom device that I would like to pull Oracle database statistics for?
mydatabaseservername.example.com:1521/mydatabasename
entitySelector=type(HOST),tag(Custom~device:mydatabaseservername:1521/mydatabasename)
metricSelector=builtin:tech.oracleDb.cd.cpu.idle
I can see it in the UI and see this values. I am banging my head trying to figure out how to get that stat via the V2 API.
What am I doing wrong?
Help!!
Thanks,
Lou
Solved! Go to Solution.
09 Jun 2021 06:56 AM
Hello @louis_gallo
It seems at the moment we can perform only the following to the custom device:
Regards,
Babar
09 Jun 2021 01:43 PM
I am able to do this and it gets all the custom devices.
entitySelector=type(CUSTOM_DEVICE)
metricSelector=builtin:tech.oracleDb.cd.cpu.idle:names:merge(dt.entity.custom_device)
This actually works but returns the data for all custom devices.
Can I create a tag for a custom device to help break it down further?
Lou
09 Jun 2021 01:59 PM
Yes you can also Tag custom devices, either in the GUI directly on the Entity under Technologies or via Settings -> Tags -> Manually applied Tags. Another option would be to use automated tagging rules or the tagging API.