I am learning a little bit about Kibana 5.x and as an exercise I am creating some visualizations. To the date I have had some success playing with filters and aggregations, and now I am trying to make an 'inspector' visualization which does something like the spy_mode.
I have created a new 'spy' to intercept the request and response, and it works fine except for the fact that it runs only when the spy panel is shown.
So my question is: how can a visualization plugin obtain the request object? Is there any 'event' I can watch to, or an UI module that I can use to get it?
Thank you very much for your help and the amazing Kibana!