Using the API to get reliability_rating, I get numbers and not letters

I’m using SonarQube 7.6.

I use the REST API to get reliability_rating like this:
https://<our_url>/api/measures/component?componentKey=metricKeys=reliability_rating

The docs indicate a value of A through E should be returned, but I get an integer (1 or 3 so far), like this. I couldn’t find any document that maps the letter to the number.
{
“reliability_rating”: 1
}

Am I missing something, or is there a document that explains this?

Thanks,
Mike New

Hi Mike,

We translate the number to the letter on the front end. THB, I don’t remember which end of the scale is which and it’s not documented, but the numbers 1-5 map pretty directly to to A-E (or E-A).

 
HTH,
Ann

Thanks for the confirmation.

Seems like 1 = A based on my data.

Could you have that documented? I’m wary of implementing solutions based on assumptions like I was doing…

Mike

Hey Mark,
Were you able to find the documentation regarding the same in sonar docs?
Thanks