27 Aug 2024 06:27 AM - last edited on 23 Sep 2024 12:55 PM by MaciejNeumann
when I'm try to fetch the metrics with the help of entityType and entityName I'm getting all the details across the environment I need a param to fetch the environment on which I mention.
27 Aug 2024 07:35 AM
Hello @Cky007
There are three unique syntax and value operators associated with the entityName. Which one did you employ?
Regards,
Babar
27 Aug 2024 09:39 AM
I use entitySelector=entityName.equals("name")
27 Aug 2024 09:17 AM
either your entities in dynatrace have some kind of naming convention that hopefully is compatible with the entityselector or you'll have to setup tags on the entities to select them. Management zones can be useful too
https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector#mzid
Type("HOST"),tag("environment:production")
Type("HOST"),entityName.startsWith("Prod")
27 Aug 2024 09:39 AM
For setting up tags where I need to make changes for Json body
27 Aug 2024 09:41 AM
https://docs.dynatrace.com/docs/manage/tags-and-metadata/setup/how-to-define-tags
you need to define tags in settings