30 May 2024 05:29 AM - last edited on 31 May 2024 08:31 AM by MaciejNeumann
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
Solved! Go to Solution.
04 Jun 2024 10:36 PM
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
05 Jun 2024 01:01 AM
Thanks @joeistyping
That is exactly what I was after