Using an existing link from an ES query with DataLink

Hello, I have a time series graph where each point in the graph represents a test that started to execute on a specific TS which represents a graphql query and the response time of that query.
The data is retrived from an ES query, which also contains a link with the same TS to Datadog which contains infrastructure metrics for that query in that time.

I can see Datalinks are a way to show a link when clicking on a specific point in the time series graph, I tried taking the link which represnts that point from the ES query and put it in the datalink, but I have no idea how to access data from the ES query in Datalinks.

Is it possible?