# DQL entities have less infomation than API entities

**URL:** <https://community.dynatrace.com/t/dql-entities-have-less-infomation-than-api-entities/45822>\
**Category:** DQL\
**Tags:** dql, dynatrace-managed, dynatrace-api\
**Created:** [May 30, 2024, 4:29am UTC](https://community.dynatrace.com/t/dql-entities-have-less-infomation-than-api-entities/45822 "2024-05-30T04:29:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enrybkram](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@enrybkram](https://community.dynatrace.com/u/enrybkram)\
**Post date:** [May 30, 2024, 4:29am UTC](https://community.dynatrace.com/t/dql-entities-have-less-infomation-than-api-entities/45822/1 "2024-05-30T04:29:34Z")

</div>

Hi all,

I am trying to display the host a process\_group\_instance is running on within a Notebook, using DQL.

The dt.entity.process\_group\_instance source does not have the relationship process\_of, which I can see is present when calling the API i.e.

“fromRelationships”: {  
“runsOn”: [  
{  
“id”: “CUSTOM\_DEVICE-55499B9DA9E4B388”,  
“type”: “os:service”  
}  
],  
“isProcessOf”: [  
{  
“id”: “HOST-232DD3579FE1BCF6”,  
“type”: “HOST”  
}  
],  
“isInstanceOf”: [  
{  
“id”: “PROCESS\_GROUP-C37184442D3BB0B7”,  
“type”: “PROCESS\_GROUP”  
}  
]  
},

It does have runs\_on and instance\_of.

Is there any way in DQL to find and display this mapping?

Mark

---

<div class="post-metadata">

**Author:** ![joeistyping](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/joeistyping/32/26040_2.png) [@joeistyping](https://community.dynatrace.com/u/joeistyping)\
**Post date:** [June 4, 2024, 9:36pm UTC](https://community.dynatrace.com/t/dql-entities-have-less-infomation-than-api-entities/45822/2 "2024-06-04T21:36:36Z")

</div>

Hello Mark!

If you’re looking for the relationship from a process instance to a host/container, there is a field in _dt.entity.process\_group\_instance_ named “belongs\_to” that can be used:

```ruby
fetch dt.entity.process_group_instance
| fieldsAdd belongs_to
| fieldsFlatten belongs_to

```

 ![joeistyping_0-1717536984127.png](https://global.discourse-cdn.com/dynatrace/original/2X/7/7afce11ce54a6484a27944ccf2d6eb98f84b18ae.png)

---

<div class="post-metadata">

**Author:** ![enrybkram](https://avatars.discourse-cdn.com/v4/letter/e/f475e1/32.png) [@enrybkram](https://community.dynatrace.com/u/enrybkram)\
**Post date:** [June 5, 2024, 12:01am UTC](https://community.dynatrace.com/t/dql-entities-have-less-infomation-than-api-entities/45822/3 "2024-06-05T00:01:06Z")

</div>

Thanks [@joeistyping](https://community.dynatrace.com/user/19706)

That is exactly what I was after
