-
Notifications
You must be signed in to change notification settings - Fork 69
feat: Events - Support for Test, Delivery, Redelivery and Stats #580
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
base: main
Are you sure you want to change the base?
Conversation
| Endpoint | Operation | Preconditions | Validations | | ||
| ------------------------ | ------------------- | ------------------------------- | -------------------------------------------- | | ||
| `/test` | Trigger fake events | Webhook stream w/ subscriptions | Validate event created, status=pending | | ||
| `/deliveries` | List failures | Trigger test events | Check count, type filter, status | | ||
| `/deliveries/{event_id}` | View event details | Event ID from above | Check attempt history, error, timestamps | | ||
| `/redeliver` | Bulk redelivery | Failed events exist | Triggered again, stats window total += N | | ||
| `/redeliver/{event_id}` | Single redelivery | Specific failed event ID | +1 attempt shown in `/deliveries/{event_id}` | | ||
| `/stats` | Metrics | Events delivered | Buckets, window range, failed delivery count | | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great 👍 this is nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Examples added 👍
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #580 +/- ##
==========================================
+ Coverage 96.01% 96.05% +0.03%
==========================================
Files 60 60
Lines 12236 12484 +248
==========================================
+ Hits 11749 11992 +243
- Misses 367 372 +5
Partials 120 120 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔧 Changes
This PR adds full support for advanced event stream management, including test event generation, delivery tracking, redelivery handling, and delivery statistics.
1. Trigger a Test Event
2. List Deliveries by Event Types
3. Fetch Event Stream Stats Within a Date Range
4. Redeliver All Failed Deliveries
5. Redeliver a Single Failed Event
6. Inspect a Single Delivery
📚 References
https://auth0.com/docs/customize/events
🔬 Testing
All relevant test cases has been added to the testsuite
📝 Checklist