We are aggregating raw interval data from /api/v2/analytics/queues/details/query to calculate Service Level in our Terraform data source validation scripts. The documentation states SL is the percentage of calls answered within the threshold, but the interval payload returns both sum.answered and sum.abandoned metrics without a direct SL field. We are currently summing sum.answered where wait_time < threshold and dividing by total sum.answered, but the numbers don’t match the GUI. Should the denominator include abandoned calls, or is there a specific weighting for the sum.wait_time field we are missing?