Event duration data


Hello all
I have some simple time out events configured for my devices. How can I access the event duration data so that I can generate some reliabilty statistics? I would like to be able to keep a running total of the outage durations so that I can display an availability figure and also show mean outage duration, maximum outage duration and outage frequency.
Event duration history data is available in the event log dashboard widget so it is stored away somewhere. Is there some documentation explaning how to access event information with the Lua scripting?

Thanks Keith