In the Dynatrace V2 API, my query returns the data however it gives me the cryptic host-Id.
API call - https://******.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:host.cpu.(system)&reso...
I get this back (CSV Format):
How can I get the actual server name back rather than dt.entity.host?
Any help is appreciated.
Solved! Go to Solution.
You need to use the ':names' transformation described here:
James, how would you modify this line?
oooo, wait, I think I got it. Does this look right??
@louis_gallo that is right! You just don't need the parentesis if you only want "system":
You would put parenthesis if you want another value regarding the cpu:
v2 are tricky but really cool, once you wrap your mind around it!
Thanks to all for helping me to get my feet wet. I'll be working on app stats next through the V2 API. Fun fun fun and more questions.