feat: notification channels for chat, push and paging services
Channels of the new types store their settings with secrets sealed and bound to type and field, never return them, and keep them when an update leaves them empty. Messages are rendered in the channel's language with a link to the monitor. The channels page offers every service with its fields. Closes #92 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
a0a67ec5f8
commit
b01eefdbce
12 files changed
+1114
-134
No files matched your search
@@ -153,7 +153,7 @@ func TestDynamicFamilies(t *testing.T) {
|
||||
families := map[string][]string{
|
||||
"status.": {"up", "degraded", "down", "unknown", "paused", "maintenance"},
|
||||
"monitors.type_": {"http", "tcp", "tls", "dns", "icmp", "json", "prometheus", "heartbeat", "alertmanager"},
|
||||
"channels.type_": {"webhook", "email"},
|
||||
"channels.type_": {"webhook", "email", "slack", "discord", "teams", "googlechat", "mattermost", "rocketchat", "telegram", "matrix", "ntfy", "gotify", "pushover", "pushbullet", "signal", "pagerduty", "opsgenie", "apprise"},
|
||||
"agents.kind_": {"checker", "statuspage"},
|
||||
"page.status.": {"operational", "degraded", "outage", "unknown", "maintenance"},
|
||||
"page.component.": {"operational", "degraded", "outage", "unknown", "maintenance"},
|
||||
@@ -162,6 +162,7 @@ func TestDynamicFamilies(t *testing.T) {
|
||||
"monitors.op_": {"eq", "ne", "gt", "ge", "lt", "le", "contains", "exists", "absent"},
|
||||
"evidence.stage_": {"dns", "connect", "tls", "response", "body"},
|
||||
"evidence.phase_": {"dns", "connect", "tls", "wait", "download"},
|
||||
"channels.field_": {"webhook_url", "channel", "bot_token", "chat_id", "thread_id", "api_url", "homeserver_url", "access_token", "room_id", "server_url", "topic", "priority", "app_token", "user_key", "device", "number", "recipients", "routing_key", "severity", "api_key", "region", "urls", "config_key"},
|
||||
"weekday.": {"0", "1", "2", "3", "4", "5", "6"},
|
||||
"md.": {"heading", "bold", "italic", "strike", "link", "ul", "ol", "quote", "code", "codeblock", "table", "hr"},
|
||||
"maintenance.recurrence_": {"none", "daily", "weekly", "monthly"},
|
||||
|
||||
@@ -112,16 +112,65 @@
|
||||
"auth.sso.submit": "Weiter",
|
||||
"channels.create": "Kanal anlegen",
|
||||
"channels.delete_confirm": "Diesen Kanal löschen?",
|
||||
"channels.field_access_token": "Zugriffstoken",
|
||||
"channels.field_api_key": "API-Schlüssel",
|
||||
"channels.field_api_url": "API-URL",
|
||||
"channels.field_app_token": "Anwendungs-Token",
|
||||
"channels.field_bot_token": "Bot-Token",
|
||||
"channels.field_channel": "Kanal",
|
||||
"channels.field_chat_id": "Chat-ID",
|
||||
"channels.field_config_key": "Konfigurationsschlüssel",
|
||||
"channels.field_device": "Gerät",
|
||||
"channels.field_homeserver_url": "Homeserver-URL",
|
||||
"channels.field_number": "Absendernummer",
|
||||
"channels.field_priority": "Priorität",
|
||||
"channels.field_recipients": "Empfänger (durch Komma getrennt)",
|
||||
"channels.field_region": "Region",
|
||||
"channels.field_room_id": "Raum-ID",
|
||||
"channels.field_routing_key": "Integrationsschlüssel",
|
||||
"channels.field_server_url": "Server-URL",
|
||||
"channels.field_severity": "Schweregrad",
|
||||
"channels.field_thread_id": "Themen-ID (Forum-Gruppen)",
|
||||
"channels.field_topic": "Topic",
|
||||
"channels.field_urls": "Apprise-URLs",
|
||||
"channels.field_user_key": "Benutzer-Schlüssel",
|
||||
"channels.field_webhook_url": "Webhook-URL",
|
||||
"channels.help_apprise": "Erreicht über 100 Dienste über einen Apprise-API-Server: gib Apprise-URLs oder den Schlüssel einer dort gespeicherten Konfiguration an.",
|
||||
"channels.help_opsgenie": "Der Alert wird geschlossen, wenn der Vorfall behoben ist.",
|
||||
"channels.help_pagerduty": "Nutze den Integrationsschlüssel einer Events-API-v2-Integration; die Behebung schließt den PagerDuty-Vorfall.",
|
||||
"channels.help_signal": "Braucht einen signal-cli-REST-API-Server (bbernhard/signal-cli-rest-api) mit registrierter Nummer.",
|
||||
"channels.help_teams": "Nutze die URL eines Teams-Workflows „Bei Empfang einer Webhookanforderung in einem Kanal posten“.",
|
||||
"channels.help_telegram": "Lege mit @BotFather einen Bot an; die Chat-ID einer Gruppe beginnt mit -100.",
|
||||
"channels.intro": "Jeder aktive Kanal wird benachrichtigt, wenn ein Monitor in allen seinen Regionen ausfällt und wenn er sich erholt.",
|
||||
"channels.language": "Sprache",
|
||||
"channels.new_email": "Neuer E-Mail-Kanal",
|
||||
"channels.new_service": "Weitere Dienste",
|
||||
"channels.new_webhook": "Neuer Webhook",
|
||||
"channels.optional": "optional",
|
||||
"channels.secret_now": "Signatur-Secret: Prüfe damit den Header X-Uptimesebi-Signature. Es wird nicht erneut angezeigt.",
|
||||
"channels.service": "Dienst",
|
||||
"channels.service_intro": "Chat-, Push- und Alarmierungsdienste. Tokens und Schlüssel werden verschlüsselt gespeichert und nie wieder angezeigt.",
|
||||
"channels.test": "Test senden",
|
||||
"channels.test_ok": "Testbenachrichtigung zugestellt.",
|
||||
"channels.title": "Benachrichtigungen",
|
||||
"channels.to": "Empfänger",
|
||||
"channels.type_apprise": "Apprise",
|
||||
"channels.type_discord": "Discord",
|
||||
"channels.type_email": "E-Mail",
|
||||
"channels.type_googlechat": "Google Chat",
|
||||
"channels.type_gotify": "Gotify",
|
||||
"channels.type_matrix": "Matrix",
|
||||
"channels.type_mattermost": "Mattermost",
|
||||
"channels.type_ntfy": "ntfy",
|
||||
"channels.type_opsgenie": "Opsgenie",
|
||||
"channels.type_pagerduty": "PagerDuty",
|
||||
"channels.type_pushbullet": "Pushbullet",
|
||||
"channels.type_pushover": "Pushover",
|
||||
"channels.type_rocketchat": "Rocket.Chat",
|
||||
"channels.type_signal": "Signal",
|
||||
"channels.type_slack": "Slack",
|
||||
"channels.type_teams": "Microsoft Teams",
|
||||
"channels.type_telegram": "Telegram",
|
||||
"channels.type_webhook": "Webhook",
|
||||
"channels.url": "Webhook-URL",
|
||||
"checkers.avg_latency": "Mittlere Latenz",
|
||||
@@ -189,6 +238,7 @@
|
||||
"error.invalid_assertion_path": "Ein Pfad ist ungültig. Nutze durch Punkte getrennte Schlüssel und [n] für Array-Elemente.",
|
||||
"error.invalid_assertion_value": "Vergleiche mit <, >, ≤ und ≥ brauchen eine Zahl.",
|
||||
"error.invalid_assertions": "Lege 1 bis 10 Bedingungen an.",
|
||||
"error.invalid_channel_settings": "Fülle die Pflichtfelder aus; Adressen müssen https-URLs sein.",
|
||||
"error.invalid_code": "Code ungültig.",
|
||||
"error.invalid_config": "Die Check-Einstellungen sind ungültig.",
|
||||
"error.invalid_credentials": "E-Mail oder Passwort falsch.",
|
||||
@@ -595,6 +645,11 @@
|
||||
"monitors.type_tls": "TLS-Zertifikat",
|
||||
"monitors.uptime_chart": "Uptime pro Zeitraum",
|
||||
"monitors.verify_tls": "TLS-Zertifikat prüfen",
|
||||
"notify.duration": "Ausgefallen für {{.Duration}}",
|
||||
"notify.test_body": "Wenn du das lesen kannst, funktioniert der Kanal.",
|
||||
"notify.title_opened": "{{.Monitor}} ist ausgefallen",
|
||||
"notify.title_resolved": "{{.Monitor}} ist wieder erreichbar",
|
||||
"notify.title_test": "Test von UptimeSebi",
|
||||
"org.policy": "Anmelderichtlinie",
|
||||
"org.require_sso": "SSO verlangen",
|
||||
"org.require_sso_hint": "Mitglieder müssen sich über den Identity Provider dieser Organisation anmelden. Der Owner kann weiterhin ein Passwort nutzen, damit ein defekter IdP euch nicht aussperrt.",
|
||||
|
||||
@@ -112,16 +112,65 @@
|
||||
"auth.sso.submit": "Continue",
|
||||
"channels.create": "Create channel",
|
||||
"channels.delete_confirm": "Delete this channel?",
|
||||
"channels.field_access_token": "Access token",
|
||||
"channels.field_api_key": "API key",
|
||||
"channels.field_api_url": "API URL",
|
||||
"channels.field_app_token": "Application token",
|
||||
"channels.field_bot_token": "Bot token",
|
||||
"channels.field_channel": "Channel",
|
||||
"channels.field_chat_id": "Chat ID",
|
||||
"channels.field_config_key": "Configuration key",
|
||||
"channels.field_device": "Device",
|
||||
"channels.field_homeserver_url": "Homeserver URL",
|
||||
"channels.field_number": "Sender number",
|
||||
"channels.field_priority": "Priority",
|
||||
"channels.field_recipients": "Recipients (comma-separated)",
|
||||
"channels.field_region": "Region",
|
||||
"channels.field_room_id": "Room ID",
|
||||
"channels.field_routing_key": "Integration key",
|
||||
"channels.field_server_url": "Server URL",
|
||||
"channels.field_severity": "Severity",
|
||||
"channels.field_thread_id": "Topic ID (forum groups)",
|
||||
"channels.field_topic": "Topic",
|
||||
"channels.field_urls": "Apprise URLs",
|
||||
"channels.field_user_key": "User key",
|
||||
"channels.field_webhook_url": "Webhook URL",
|
||||
"channels.help_apprise": "Reaches over 100 services through an Apprise API server: give Apprise URLs or the key of a configuration stored there.",
|
||||
"channels.help_opsgenie": "The alert closes when the incident is resolved.",
|
||||
"channels.help_pagerduty": "Use the integration key of an Events API v2 integration; resolving closes the PagerDuty incident.",
|
||||
"channels.help_signal": "Needs a signal-cli REST API server (bbernhard/signal-cli-rest-api) with a registered number.",
|
||||
"channels.help_teams": "Use the URL of a Teams workflow \"Post to a channel when a webhook request is received\".",
|
||||
"channels.help_telegram": "Create a bot with @BotFather; the chat ID of a group starts with -100.",
|
||||
"channels.intro": "Every enabled channel is notified when a monitor goes down in all of its regions and when it recovers.",
|
||||
"channels.language": "Language",
|
||||
"channels.new_email": "New email channel",
|
||||
"channels.new_service": "Other services",
|
||||
"channels.new_webhook": "New webhook",
|
||||
"channels.optional": "optional",
|
||||
"channels.secret_now": "Signing secret: verify the X-Uptimesebi-Signature header with it. It will not be shown again.",
|
||||
"channels.service": "Service",
|
||||
"channels.service_intro": "Chat, push and paging services. Tokens and keys are stored encrypted and never shown again.",
|
||||
"channels.test": "Send test",
|
||||
"channels.test_ok": "Test notification delivered.",
|
||||
"channels.title": "Notifications",
|
||||
"channels.to": "Recipients",
|
||||
"channels.type_apprise": "Apprise",
|
||||
"channels.type_discord": "Discord",
|
||||
"channels.type_email": "Email",
|
||||
"channels.type_googlechat": "Google Chat",
|
||||
"channels.type_gotify": "Gotify",
|
||||
"channels.type_matrix": "Matrix",
|
||||
"channels.type_mattermost": "Mattermost",
|
||||
"channels.type_ntfy": "ntfy",
|
||||
"channels.type_opsgenie": "Opsgenie",
|
||||
"channels.type_pagerduty": "PagerDuty",
|
||||
"channels.type_pushbullet": "Pushbullet",
|
||||
"channels.type_pushover": "Pushover",
|
||||
"channels.type_rocketchat": "Rocket.Chat",
|
||||
"channels.type_signal": "Signal",
|
||||
"channels.type_slack": "Slack",
|
||||
"channels.type_teams": "Microsoft Teams",
|
||||
"channels.type_telegram": "Telegram",
|
||||
"channels.type_webhook": "Webhook",
|
||||
"channels.url": "Webhook URL",
|
||||
"checkers.avg_latency": "Average latency",
|
||||
@@ -189,6 +238,7 @@
|
||||
"error.invalid_assertion_path": "A condition path is invalid. Use keys separated by dots and [n] for array elements.",
|
||||
"error.invalid_assertion_value": "Comparisons with <, >, ≤ and ≥ need a number.",
|
||||
"error.invalid_assertions": "Add between 1 and 10 conditions.",
|
||||
"error.invalid_channel_settings": "Fill in the required fields; addresses must be https URLs.",
|
||||
"error.invalid_code": "Invalid code.",
|
||||
"error.invalid_config": "The check settings are not valid.",
|
||||
"error.invalid_credentials": "Wrong email or password.",
|
||||
@@ -595,6 +645,11 @@
|
||||
"monitors.type_tls": "TLS certificate",
|
||||
"monitors.uptime_chart": "Uptime per period",
|
||||
"monitors.verify_tls": "Verify TLS certificate",
|
||||
"notify.duration": "Down for {{.Duration}}",
|
||||
"notify.test_body": "If you can read this, the channel works.",
|
||||
"notify.title_opened": "{{.Monitor}} is down",
|
||||
"notify.title_resolved": "{{.Monitor}} is up again",
|
||||
"notify.title_test": "Test from UptimeSebi",
|
||||
"org.policy": "Sign-in policy",
|
||||
"org.require_sso": "Require SSO",
|
||||
"org.require_sso_hint": "Members must sign in through this organization's identity provider. The owner can still use a password so a broken IdP cannot lock you out.",
|
||||
|
||||
Reference in new issue
Block a user