cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Environment Issue - fetching entityType and entityName metrics from one environment

Cky007
Participant

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.

5 REPLIES 5

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Hello @Cky007 

There are three unique syntax and value operators associated with the entityName. Which one did you employ?

Babar_Qayyum_0-1724740388184.png

Regards,

Babar

I use entitySelector=entityName.equals("name")

wouterdt
Participant

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")

 

For setting up tags where I need to make changes for Json body

 

Featured Posts