Help me to read the metric values specific to project version

sonarqube
(Renuga) #1

Hi Team,

I am using SonarQube version 6.7.6. i am able to read the various metric values with the help of api but those are only latest.
http://<sonar_host_url>/api/measures/component?componentKey=<project_key>&metricKeys=ncloc,blocker_violations

I want get the same for older project versions. Is there any way to retrieve it with the help of api or from database (we are using mySQL). Please sort out my issue.

(Renuga) #2

Can you please help me on this?

(Julien Lancelot) #3

Hi,

You can use api/measures/search_history to get past measures.

Regards,
Julien Lancelot

(Renuga) #4

Thank you.