What counts in weekly API reliability?
A success rate divides successful events by all eligible events in the same window. Define the event, the success rule, and the exclusions before you compare two weeks.
Choose what to count and where to count it
For an attempt success rate, count each eligible API attempt the gateway sees, including retries. For an operation success rate, use client or workflow telemetry to group attempts by a stable operation ID and count each final outcome once. For operations that start near a reporting boundary, define which week owns them and when to stop waiting for a retry.
Record the endpoint, environment, time zone, eligible traffic, and what qualifies as success. Exclude synthetic health checks from a customer-request measure when they fall outside its scope and keep them visible in their own measure. Amazon CloudWatch request-based service level objectives · Google SRE guidance on choosing a measurement point
Fictional weekly counts for a search API
The records cover production search traffic for November 23–29, 2026 UTC. In this example, HTTP 2xx responses count as successes and HTTP 5xx responses as failures. All retries complete within the week.
- First attempts
- 1,000 operations produced 980 successful first attempts and 20 failures.
- Retries
- 15 of the 20 failed operations retried once. Twelve succeeded on retry and three failed again.
- Excluded traffic
- The raw gateway export held 1,115 entries, including 100 synthetic health checks on a separate route. The customer-request measure uses the other 1,015 entries.
Show the numerator and denominator in the review
- Attempt success was 97.73%. There were 992 successful attempts out of 1,015 eligible attempts. Each retry adds an attempt. First attempts · Retries · Excluded checks
- Operation success was 99.20%. There were 992 successful operations out of 1,000. Eight operations ended without success, including five that never retried. First attempts · Retries
Use the same definition to compare periods. If retries cannot be linked to original operations, report the attempt measure and mark operation success unavailable. When you have a complete record with no eligible events, report that there was no eligible traffic.