feat(observability): delivery metrics, admin metrics/delivery endpoints, admin API route wiring

This commit is contained in:
RhenCloud committed 2026-08-15 17:03:45 +08:00
1 parent 2470bd786d
commit 1e9ba3c5dd
17 files changed
+682 -7

No files matched your search

+2
View File
@@ -29,6 +29,8 @@ The console itself is served at `/admin`; its tabs are deep-linkable via the URL
| `GET /admin/api/logs` | Send logs (scoped to accessible routes) |
| `GET /admin/api/logs/:id` | Single send-log entry (scoped) |
| `GET /admin/api/audit` | Audit log (scoped to accessible groups) |
| `GET /admin/api/metrics` | Delivery metrics (totals, failure rate, per platform/event/status, recent failures; recent failures scoped to accessible groups for non-super) |
| `GET /admin/api/delivery/:deliveryId` | All send-log attempts for one delivery (group-scoped) |
## Validation