Uygulamayı aç
Moonborn — API · admin

Check DLQ depth + raise severity alerts (admin/cron entrypoint, Tier-1 Turn 233)

Per-org DLQ depth probe. Reads warn/critical thresholds from `api.webhooks.dlq.{warn,critical}_threshold` config; when depth crosses a threshold publishes a DeadLetterAlert (severity=warning|critical) via the composition-root alerter (currently stderr + Sentry breadcrumb; Slack/PagerDuty adapter Tier-2). Advisory lock 1008 — multi-pod tick yarışını önler. Cron cadence: every 5 minutes per active org.

POST/v1/admin/webhooks/monitor-dlqscope · Bearer (API key or session JWT)
Query parameters
FieldTypeDescription
orgIdreqstring
endpointIdstring

Responses

200Monitor run completed (or lock contention)
400Missing orgId
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
403Forbidden — platform admin only
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring
503DLQ monitor cron entry point not wired
Body
FieldTypeDescription
errorreqobject
error.codereqstring
error.messagereqstring

Examples

cURL
curl -X POST https://api.moonborn.co/v1/admin/webhooks/monitor-dlq \
  -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';

const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });

const result = await client.admin.adminMonitorWebhookDlq();
Python
import os
from moonborn import Moonborn

client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])

result = client.admin.admin_monitor_webhook_dlq()