Skip to content

Feature/webhook delivery metrics endpoint#676

Merged
DokaIzk merged 5 commits into
SoroScan:mainfrom
godamongstmen897:feature/webhook-delivery-metrics-endpoint
May 30, 2026
Merged

Feature/webhook delivery metrics endpoint#676
DokaIzk merged 5 commits into
SoroScan:mainfrom
godamongstmen897:feature/webhook-delivery-metrics-endpoint

Conversation

@godamongstmen897
Copy link
Copy Markdown
Contributor

Summary

Closes #584. Establishes an authenticated REST API metrics endpoint (/api/webhooks/deliveries/metrics/) providing deep visibility into webhook ingestion pipeline health, latency parameters, and delivery trends.

What Changed

  • Metrics Aggregation Engine: Authored modular data view query logic in views.py calculating rolling historical delivery success rates, volume totals, and average response intervals.
  • Granular Query Scopes: Implemented support for optional subscription_id mapping and dynamic time-window range filtering bounds.
  • Dual Routing Integration: Registered the endpoints cleanly across both primary application profiles (urls.py) and explicit testing execution frames (urls_test.py).
  • Suite Verification: Created test_webhook_metrics.py verifying request identity evaluation parameters and calculation correctness using native repository DRF testing fixtures.

Testing & Validation

  • Confirmed mathematical metrics formatting evaluates flawlessly via local pytest environments.
  • Verified parameter filters intercept target intervals accurately without database leak anomalies or authentication bypass gaps.

Closes #584

Copilot AI review requested due to automatic review settings May 30, 2026 12:13
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@godamongstmen897 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@DokaIzk DokaIzk merged commit 7721802 into SoroScan:main May 30, 2026
3 checks passed
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.

Add Webhook Delivery Metrics Endpoint

2 participants