API Historical Limitations

Does the SonarCloud API have limitation when pulling historical data? I am pulling coverage stats from each PR that triggered a sonarcloud scan. Is it able to pull stats for all dates or does it fail after a specified time or count (1 year, 3 years, 100 scans…)?

Hi,

This should help:

 
Ann

Ah okay, so you do not store historical “new” metrics, which is fine for my use case, but are their limitations for non “new” metrics?

Hi,

Sorry, I didn’t read your OP closely enough. :see_no_evil:

I don’t believe we store historical metrics on PRs at all. We see PRs as very much ‘in the moment’.

 
HTH,
Ann

Gotcha, I think my question was worded confusingly. Do you have historical limitations for coverage metrics, not new coverage.

Hi,

Ehm… no? I’m not sure I understand the question.

We store historical values/measures for non-new_ metrics.

Subject to housekeeping, of course.

 
HTH,
Ann

okay gotcha!