Sonar Database Structure and Sonar Arithmetic

I have two questions regarding sonar:

  • I looked at the sonar database. I was wondering where the sonar stores the results of each measurement?

    I found only the table measure_data, but the field data looks like the value of a. Can someone tell me where the sonar stores all the measurement data?

    Yes, I know that it is better to use the REST API, and I will do it, but I also want to know how the database is used by the sonar itself.

  • Is there a way to use the API to get a complete list of all metrics used?

+5
source share
2 answers

I understood question number 2:

List<Metric> smq = sonar.findAll(MetricQuery.all());
    System.out.println(smq);

    for(int i = 0; i< smq.size(); i++){
       System.out.println(smq.get(i));
    }
+1
source

, Sonar DB API .

: WS, , "/api/metrics" WS. , , Nemo - Sonar, : http://nemo.sonarsource.org/api/metrics

0

All Articles