Want to parse json of the Metric result for new_critical_violations

Want to parse the json of the Metric result for new_critical_violations

But there are two periods for “new_critical_violations”. What is the meaning for
“index”,“value”,“bestValue”? Why there are two “periods”?

{“component”:{“key”:“XXX”,“name”:“XXX”,“qualifier”:“TRK”,“measures”:[{“metric”:“new_critical_violations”,“periods”:[{“index”:1,“value”:“1243”,“bestValue”:false}],“period”:{“index”:1,“value”:“1243”,“bestValue”:false}}]}}

Hey there.

What version of SonarQube are you using, and which specific Web API are you calling?

Hi @Colin ,

SonarQube version 9.3 and
Web API : api/measures/