The form of the diagnostics uri is known and documented, so use it.