guilhermeddf
(Guilherme Dutra Diniz de Freitas)
October 22, 2019, 9:15pm
1
I’m trying to retrieve some metric numbers using Sonarqube 7.7.
I analyzed code from a version 3 months ago and another version 2 months ago.
I can’t get the number of new violations introduced in these two versions.
Can anyone tell me why?
I’m using these end point
http://localhost:9000/api/measures/search_history?component=core&ps=500&metrics=new_code_smells
ganncamp
(G Ann Campbell)
October 24, 2019, 2:02pm
2
Hi,
Welcome to the community!
Are you looking for historical values for “New Issues”, “New Bugs” &etc? Sorry but we don’t store those. “New” values are all in the moment.
Ann
guilhermeddf
(Guilherme Dutra Diniz de Freitas)
October 25, 2019, 11:47am
3
And what kind of values the tool stores in theses endpoints ?
ganncamp
(G Ann Campbell)
October 25, 2019, 2:03pm
4
Hi,
I should have been more precise. With each new analysis we calculate and store both new and overall metrics. It’s just that we don’t keep a historical record of yesterday’s “new” values.
Hoping this makes sense,
Ann
guilhermeddf
(Guilherme Dutra Diniz de Freitas)
October 25, 2019, 5:04pm
5
Thank you for your answer, helped me a lot. I was trying to retrieve these data for days.