Hook into webapi to determine diagnostics