19 Dec 2024 02:07 PM - last edited on 13 Jan 2025 10:58 AM by MaciejNeumann
Hello,
I would like to know if it is possible to be notified when Dynatrace detects a new link between 2 services (and which isn't linked to user activity). I started slowly by using the APIs to know the relationships linked to a service. Then I explored Grail and by reading tutorials and doc, I make these request :
fetch dt.entity.service
|fieldsAdd service_out = calls[dt.entity.service]
|expand service_out
|lookup sourceField:service_out, lookupField:id, [fetch dt.entity.service]
|fields entity.name, Service_OUT=lookup.entity.name
(and another request with called_by)
My first question would be to know difference between the different possible fields (calls, affects, balances, childs, contains, etc.) because I don't find this information easily. Maybe there is one that is more suited to my need than the other.
Then I discovered the notion of workflow and I wonder if there is a type of event that meets my need (appearance of a new link) that can act as a trigger for the execution of a DQL query warning an external tool of the appearance of a link.
I therefore come to ask you for your opinion, ideas or even one solution that could meet my need, hoping that it is explicit 🙂
Regards