This is an example of how to use the New Relic Data API (v2) to get your application's average error rate over a specific time period. This value appears as a percentage above the Error rate chart on your APM Summary page.
Here is an example of the Error rate chart that appears on your app's APM Summary page.
APM > (selected app) > Monitoring > Summary: You can use the New Relic REST API v2 to return the average error rate percentage that appears on your app's APM Summary page.
API commands
To obtain the metric timeslice values, use the following three commands. This example uses the same time period for each command, and they are all summarized.