New Relic SLA report data in UI not in sync with data from metrics REST API

Hi,
I’m trying to extract SLA report metrics as given in this document https://docs.newrelic.com/docs/apm/reports/service-level-agreements/api-examples-sla-reports

But I see a difference with what’s being fetched from API to what’s shown in UI under SLA reports. I’m looking at daily SLA reports.

I’m using the following query params

https://api.newrelic.com/v2/applications/{APPID}/metrics/data.json?names[]=HttpDispatcher&values[]=call_count&values[]=average_response_time&names[]=Apdex&values[]=score&values[]=s&values[]=t&values[]=f&values[]=count&names[]=Errors/all&values[]=error_count&from=2020-07-18T00:00:00+00:00&to=2020-07-19T00:00:00+00:00&period=86400

As can be seen in the screenshots the metrics differ. The same is the case with other dates. I tried changing it the to date to 2020-07-18T23:00:00+00:00, 2020-07-18T23:59:59+00:00, 2020-07-19T00:00:00+00:00 but still the metrics differ by large extent. The closest I could get is for from=2020-07-20T00:00:00-07:00&to=2020-07-21T00:00:00-07:00 (i.e the MST timezone where I’m accessing the UI dashboard), still for some days the requests count shows a difference of about 50,000 which is huge.

I want to get the metrics in sync digit to digit. Can someone help me with this issue?

Thanks,
Sandeep

Any update if anyone is looking into this?

Hey @sanadella - This seems odd. While I’m not sure it’s completely possible to get the values to sync digit to digit (as I know some portion of the SLA report is estimated, at least, the latest time period estimates based on current data what the rest of the day/week/month is going to be).

I’ll DM you to chat more about it.