09 Jan 2024 10:28 AM - last edited on 20 Aug 2024 02:51 PM by Michal_Gebacki
Hi,
I'm trying to fetch data using metrics API as I mentioned API request URL below:
https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin%3Aservice.err...
Here I'm trying to pass entitySelector as tag which is giving me incorrect entitySelector response.
My tag value is CST01. Please help me how to pass tag value in request URL
Solved! Go to Solution.
09 Jan 2024 10:59 AM
For an entity seleector to work, you normally have to provide the type predicate as well, or the scope of the entity selector will be too wide. So something like this should work instead:
entitySelector=type(SERVICE),tag(CST01)
09 Jan 2024 11:21 AM
hi @Shruts
You may found more information in this post : https://community.dynatrace.com/t5/Dynatrace-API/API-V2-tags-filter/m-p/164742