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

The inner workings of the entity selector

henk_stobbe
DynaMight Leader
DynaMight Leader

Hello,

When using an entity selector in an API you can use an entity id ('s):

  • Entity type: type("TYPE")
  • Dynatrace entity ID: entityId("id"). You can specify several IDs, separated by a comma (entityId("id-1","id-2")). All requested entities must be of the same type.

And looking at DQL:

   fetch dt.entity.host
   | filter id == "HOST-461FB6671E771234"

I assume all entities types have there own little bucket (=class in the Graph)

But now the question/remark:

When you want to use, in DQL, an entity id, you would need to look at the TYPE what can be found in the name before the '-',  and then you can execute the fetch dt.entity.TYPE

KR Henk

1 REPLY 1

KeeganNelson
Dynatrace Advisor
Dynatrace Advisor

Yes, Henk you've got the right idea here! Here's a DQL query proving your point.

KeeganNelson_0-1740508846515.png

 

Featured Posts