Skip to content

Document send-date interval series and caching for email metrics - #148

Merged
atongen merged 1 commit into
mainfrom
GG-1938-email-metrics-interval
Nov 16, 2026
Merged

atongen merged 1 commit into
mainfrom
GG-1938-email-metrics-interval

Conversation

@atongen

@atongen atongen commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Part of: https://dripcom.atlassian.net/browse/GG-1922

Documents:

  • Fetch email metrics: new interval argument (day, week or month) adds series, one entry per period by send date, oldest first, zero-filled; entries add up to summary, with rates from each period's own counts
  • Weeks start on Monday, months are calendar months, and the first and last periods are cut to the date range; a broadcast whose sending crosses a range edge counts in full in the edge period
  • Metrics count emails sent in the range with everything they have received since
  • Responses are cached per request (about 15 minutes for ranges ending today or yesterday, 2 hours within the last week, 24 hours otherwise); cached, rejected and empty requests do not count toward the 20 uncached requests per account per hour
  • 503 responses carry a Retry-After header

- Fetch email metrics: new interval argument (day, week or month)
  adds series, one entry per period by send date, oldest first,
  zero-filled; entries add up to summary, with rates from each
  period's own counts
- Weeks start on Monday, months are calendar months, and the first
  and last periods are cut to the date range; a broadcast whose
  sending crosses a range edge counts in full in the edge period
- Metrics count emails sent in the range with everything they have
  received since
- Responses are cached per request (about 15 minutes for ranges
  ending today or yesterday, 2 hours within the last week, 24 hours
  otherwise); cached, rejected and empty requests do not count toward
  the 20 uncached requests per account per hour
- 503 responses carry a Retry-After header
@atongen
atongen requested a review from a team November 16, 2026 20:44
@atongen atongen self-assigned this Nov 16, 2026
@wstrinz
wstrinz requested a review from a team November 16, 2026 20:49
@atongen
atongen merged commit 0c68593 into main Nov 16, 2026
1 check passed
@atongen
atongen deleted the GG-1938-email-metrics-interval branch November 16, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants