sonarqube-websonarqube-api

How to get Sonarqube Metrics (i.e. vulnerabilities: A; B; C; D; E) Ratings via the web api


Please assist with the above. I have successfully implemented a web api to sonarqube and I am able to get values for the metrics I specify in the web api (ref: https://gazelle.ihe.net/sonar/web_api/api/measures)

The problem I have is, I want to get the metrics ratings (i.e A; B; C; D) for each metric. and the api only returns the values and not the ratings.

I also tried using component_tree and type by the ratings are not returned.

Please assist:)


Solution

  • The answer to this question is as follows:

    I hope this helps others as well