Sonar Historical data

275 views
Skip to first unread message

Arjun

unread,
Apr 3, 2018, 3:28:22 AM4/3/18
to SonarQube
Hi Team,

Whether we can get a Historical data from sonar DB? . we need a data before 2017 of sonar records. We want to know is this possible?

Regards,
Nagaarjun. 

G. Ann Campbell

unread,
Apr 3, 2018, 7:54:54 AM4/3/18
to SonarQube
Hi Nagaarjun,

You can see this in the project's activity page, where you have the ability to graph multiple metrics together. Beyond that, take a look at the api/measures/search_history. You'll find a link to the docs for your version in your footer.


Ann

Nagarajan, Nagaarjun

unread,
Apr 3, 2018, 8:26:11 AM4/3/18
to G. Ann Campbell, SonarQube
Hi Ann, 

Thanks for looking into this. I'm unable to locate api/measures/search_history in API_Document. 


I can see only 2 items. 
1.  GET api/measures/component

2. GET api/measures/component_tree


Regards,
Nagaarjun. 


--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/26cbdc19-a7ec-4c88-85f7-c161bc2d54ed%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Regards,

Nagaarjun.

G. Ann Campbell

unread,
Apr 3, 2018, 10:51:29 AM4/3/18
to Nagarajan, Nagaarjun, SonarQube
Hi Nagaarjun,

Your instance is locked down, but I can see from the footer that you're on 5.6.6. I don't remember specifically, but you should have an equivalent web service in that version.

Note that 7.0 is the current SonarQube version and 6.7.2 is the current LTS. You should upgrade at your earliest convenience.


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

Nagarajan, Nagaarjun

unread,
Apr 3, 2018, 12:00:10 PM4/3/18
to G. Ann Campbell, SonarQube
Hi Ann,

You trying to say that , if we upgrade sonar to latest version, we can able to extract historical data through API(api/measures/search_history will be enabled?) . Your reply will be greatly appreciated and this will be very helpful to my team. 

Note : We need a data of prior 2017. 

Regards, 

On 03-Apr-2018 8:21 PM, "G. Ann Campbell" <ann.ca...@sonarsource.com> wrote:
Hi Nagaarjun,

Your instance is locked down, but I can see from the footer that you're on 5.6.6. I don't remember specifically, but you should have an equivalent web service in that version.

Note that 7.0 is the current SonarQube version and 6.7.2 is the current LTS. You should upgrade at your earliest convenience.


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

G. Ann Campbell

unread,
Apr 3, 2018, 12:08:07 PM4/3/18
to Nagarajan, Nagaarjun, SonarQube
Hi,

I'm saying you should be able to extract this data whatever the version, I just don't remember the API name in 5.6.*

Note that your ability to retrieve historical data is subject to the Housekeeping routines.


Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

Reply all
Reply to author
Forward
0 new messages