feat(webhook): time-series histogram stats endpoint + frontend chart

This commit is contained in:
Александр Зимин
2026-05-12 14:30:22 +00:00
parent 91f4310a77
commit 5479142093
11 changed files with 1049 additions and 2 deletions
+20
View File
@@ -184,6 +184,17 @@ i18n
'webhooks.stats.successRateOf_one': 'из {{count}} завершённой',
'webhooks.stats.successRateOf_few': 'из {{count}} завершённых',
'webhooks.stats.successRateOf_many': 'из {{count}} завершённых',
// Status labels (used by histogram chart legend + tooltip)
'webhooks.status.pending': 'в очереди',
'webhooks.status.retrying': 'retry',
'webhooks.status.delivered': 'доставлено',
'webhooks.status.dlq': 'DLQ',
// Histogram chart
'webhooks.histogram.title': 'История доставок',
'webhooks.histogram.bucket.hour': '24ч',
'webhooks.histogram.bucket.day': '7д',
'webhooks.histogram.empty': 'Нет доставок за выбранный период.',
'webhooks.histogram.total': 'итого',
// === Friendly query error states ===
'queryError.retry': 'Повторить',
'queryError.network.title': 'Нет соединения с сервером',
@@ -870,6 +881,15 @@ i18n
'webhooks.stats.successRate': 'Success rate',
'webhooks.stats.successRateOf_one': 'of {{count}} terminal',
'webhooks.stats.successRateOf_other': 'of {{count}} terminal',
'webhooks.status.pending': 'pending',
'webhooks.status.retrying': 'retrying',
'webhooks.status.delivered': 'delivered',
'webhooks.status.dlq': 'DLQ',
'webhooks.histogram.title': 'Delivery history',
'webhooks.histogram.bucket.hour': '24h',
'webhooks.histogram.bucket.day': '7d',
'webhooks.histogram.empty': 'No deliveries in the selected period.',
'webhooks.histogram.total': 'total',
// === Friendly query error states ===
'queryError.retry': 'Retry',
'queryError.network.title': 'No connection to server',