which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube 9.9 LTS
how is SonarQube deployed: zip, Docker, Helm
Helm
what are you trying to achieve
Get information about language usage. In the ‘earlier’ versions I could get this information from the api/system/info metrics.
The metrics: ncloc and nclocByLanguage
what have you tried so far to achieve this
Is there an other api call to get these metrics?
Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!
I know some data reporting got moved around (edited/dropped?) right before the LTS. I can find this in the Support Information File (Administration → Support), but I haven’t been able to figure out which API calls to use to get that directly, even if you don’t have support. Are you on a commercial edition? Do you have that page?
I can find that in version 9.7 the ‘Statistics’ field has been removed from response. ( Changelog in api/system/info )
Is there an other way to get these statistics from the system.
The api/projects/license_usage service will tell you which is the largest branch for each project. You can then iterate the projects to query for the ncloc_language_distribution for those branches.
Thanks for your reply. And it’s an answer.
I hope the ‘internal ping’ wil come with a final answer: where to get the overall information about the usage of the different languages.
I wil look if I can use your info for now.