[fix bug 1099060] Expose event metrics through the API.