Want to have an report from overall to projects related to the quality gate
Tried:
** qualitygates/project_status but only got the periodIndex=1 with periodTime = 14 days
** project_badges/measure doesn’t work for us, because the projects are private
** project_analyses/search?category=QUALITY_GATE content is empty
** measures/component doesn’t deliver the Quality Gate status
How can I get an overall report, like the overview in Sonarqube? But not for the period of time/new code.
This is the overall Quality Gate (the one you see in the UI). It is simply also telling you what the New Code Period is, as that will affect the metrics prefixed with new_*
Take a look at any project you query GET api/qualitygates/project_status for, it will match the Quality Gate you see in the overview of a SonarQube project.
The information on your project dashboard and your Quality Gate are two different things – there may be measures in your Quality Gate that don’t appear in your project dashboard, and information in your project dashboard that doesn’t affect your Quality Gate.
Individual measures (bugs, new_bugs, code_smells, 'sqale_rating, coverage, alert_status` (which is the Quality Gate) etc.) can be queried using GET api/measures/component. These keys can be found in the documentation on Metric Definitions.
Thank you for your answer and then sorry for mixing then the wrong terms.
Do I understand it then correctly, that the four values “Reliability”, “Security”, “Security Review” and “Maintainability” are in no feed for the overall status as single values?
Maybe I mixed some things up in the beginning. My fault. Sorry for that.
So my goal is, I want to have the four measurements Reliability, Security, Security Review and Maintainability as a value (like the badges - but badges are not possible for us, because of the missing private project support) in a feed for overall (and new code). Maybe I got the wrong feed, before
**Okay, sorry. Found it. **
squale_rating means Maintainability-Rating The other ones are reliability_rating, security_rating and security_review_rating
Best,
Rene
p.s.: Offtopic, but important. Happy Birthday to you