implement diagnostics as a service