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

DQL entities have less infomation than API entities

enrybkram
Frequent Guest

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

2 REPLIES 2

joeistyping
Dynatrace Advisor
Dynatrace Advisor

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:

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

joeistyping_0-1717536984127.png

 

Thanks @joeistyping

That is exactly what I was after

Featured Posts