Telemetry
Interactive SaaS SQL Lab

Reliability · Advanced

Connect API failures to customer impact

Which plans and recurring revenue were exposed to API failures during the incident?

Reduce request failures to one row per account before joining commercial context, preventing high-volume customers from being counted repeatedly.

Reviewed by the Telemetry product team on . Read-only SQL, connected-table grain, deterministic result, visualization, and interpretation boundaries. Review standards and ownership

Runs against one versioned 15-table dataset

Edit and execute the query locally in your browser, then download the same synthetic schema and rows for DuckDB.

ReliabilityAdvanced

Connect API failures to customer impact

Which plans and recurring revenue were exposed to API failures during the incident?

Reduce request failures to one row per account before joining commercial context, preventing high-volume customers from being counted repeatedly.

The dataset and query remain in this browser.

Published expected result

Recurring revenue exposed to API failures

planaccountsimpacted_accountsimpacted_pctmrr_exposed_usd
growth221004,200
business111001,200
starter2150199
free1000

How to read the query

  • Request rows are reduced to one account-level impact result before the commercial join.
  • The left join preserves accounts with no errors so the impacted percentage has the correct denominator.
  • Exposed MRR describes incident scope; it does not claim that revenue was lost.

Decisions the SQL cannot make

  1. 1Define the incident window and affected routes before calculating account impact.
  2. 2Use privacy-approved identifiers and restrict access to commercial dimensions.
  3. 3Keep exposed, at-risk, refunded, and actually lost revenue as different measures.

Continue from this lesson

Keep the result

Run this query on your own events

Create a free workspace only when you are ready to save the query, connect real events, and monitor the result. No credit card is required.

Save with my events