Event reporting in tree structure

Hi

I am looking to build a custom plug in to report events in a tree structure. Requirement is that I need to drill down to the lowest level element where event occurred starting from page title and see number of actions on the element. It will look like below:


Home
     - Child Content 1
                - Grandchild Content 1
                                   - Link
                                         - {Text on <a> tag}                     18
                                   - Button
                                         - {Buttom Name}                         25
     - Child Content 2
                - Grandchild Content 
                                   - Link
                                          - {Text on <a> tag}                      10
                                   - Button
                                          - {Buttom Name}                          4


Is there any existing plugin I can refer to build something like this. Appreciate any help on this. Once completed I can share the plugin in market place if its useful.

Thanks in Advance

Thanks
Arun

Hi
I am also having a similar requirement; In my case I need to get all the events grouped by userId. Anyone has any pointers for the same ?

Thanks
Raveendra