Add script to get OTP delivery logs for SMS, Voice#9019
Merged
zachmargolis merged 2 commits intomainfrom Aug 17, 2023
Merged
Conversation
**Why**: Script to help triage OTP deliveries by pulling message IDs changelog: Internal, Scripts, Add script to triage OTP delivery
zachmargolis
commented
Aug 16, 2023
| @@ -82,70 +83,53 @@ class EmailDeliveries | |||
|
|
|||
| # @return [Array<Result>] | |||
| def query_data(uuids) | |||
Contributor
Author
There was a problem hiding this comment.
recommend viewing this with ?w=1 whitespace diff hidden
aduth
approved these changes
Aug 17, 2023
| opts.banner = <<~EOM | ||
| Usage: #{$PROGRAM_NAME} uuid1 [uuid2...] | ||
|
|
||
| Looks up OTP delivery attempts for SMS/Voice by user UUID, within the last 72 hours |
Contributor
There was a problem hiding this comment.
Would we want hours to be configurable? I suppose we could add that later.
Contributor
Author
There was a problem hiding this comment.
For AWS pinpoint support, they need logs within the last 72 hours so IMO not worth it?
Contributor
There was a problem hiding this comment.
Wasn't aware of that. Makes sense with the context.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why: Script to help triage OTP deliveries by pulling message IDs
changelog: Internal, Scripts, Add script to triage OTP delivery
Usage:
aws-vault exec prod-power -- ./bin/oncall/otp-deliveries uuid1 --csv [ Querying logs ] --=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---=---= Time: 00:00:11 user_id,timestamp,message_id,delivery_preference,country_code uuid1,2023-01-01T00:00:00Z,messageid1,sms,US