feat(api): open incidents and notify channels when monitors go down

Results are evaluated as they arrive. Transitions open or resolve the
monitor's incident and queue a notification per enabled channel in the
same transaction; every API replica delivers the outbox with leases and
exponential retries. Organizations manage webhook and email channels,
can send test notifications and list incidents. Email requires
UPTIME_SMTP_URL.

Closes #14
Closes #15
Closes #16

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
Sebastian UnterschützandClaude Opus 5.5 committed 2026-11-22 01:23:37 +01:00
1 parent 01ef543e62
commit 5f42e3e650
12 files changed
+822 -13

No files matched your search

+4
View File
@@ -80,6 +80,10 @@ type API struct {
// SSOPrivateNetworks is "auto", "true" or "false". Auto allows
// organizations' IdPs on private networks only in the self-hosted edition.
SSOPrivateNetworks string `env:"UPTIME_SSO_ALLOW_PRIVATE_NETWORKS" envDefault:"auto"`
// SMTPURL configures outgoing mail for email notification channels,
// e.g. smtp://user:pass@host:587?from=alerts@example.com. Empty disables
// email channels.
SMTPURL string `env:"UPTIME_SMTP_URL"`
}
// SSOAllowPrivate resolves SSOPrivateNetworks.