I can pull metrics quite nicely now for hosts, process group instances, and custom devices.
My question is if there is an API call that can show the platform for an entity - i.e. Windows, Linux, OpenShift, other?
Any help is appreciated.
Solved! Go to Solution.
Sure there is. You need to call the Monitored Entities v2 API to fetch information about any entities. For example to query OS Type for a host you need to specify +properties.osType in the fields query parameter.
Be sure to use API client for the API such as dt if it fits your scenario..
If you want to to query OS type of a process group, you can query it using relationships. For example to query HOST running a PROCESS_GROUP_INSTANCE:
Thank you for the reply.
If I can only have a dt.host.name, I assume that I have to convert that to an entityId first right? How can I do that. Most of my data coming back as dt.host.name.
Hopefully that makes sense.
It depends. You can also query host by host names and fetch the host properties. You can query the host by the entitySelector: