Skip to content

Update OD alarming #31

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2025
Merged

Update OD alarming #31

merged 3 commits into from
Jun 30, 2025

Conversation

fatimarahman
Copy link
Contributor

@fatimarahman fatimarahman commented Jun 27, 2025

In OverDrive, when users download titles through different platforms, these transactions are all counted as one row. This is not the case in Redshift -- these are separate rows that are otherwise identical aside from the platform column. This creates unnecessary alerts (example here).

This PR accounts for this discrepancy! Here's a screenshot of a sample run for 5/26 (with some explanatory print statements):
Screenshot 2025-06-27 at 11 08 47 AM

Also some minor formatting changes (removing unnecessary "\n" chars from logging)

Copy link
Contributor

@aaronfriedman6 aaronfriedman6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!!

@fatimarahman fatimarahman merged commit a141f97 into main Jun 30, 2025
2 checks passed
@fatimarahman fatimarahman deleted the update-od-alarming branch June 30, 2025 17:52
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