通知
Beszel 中的通知使用 Shoutrrr URL 模式定义。
Shoutrrr 是一个最初为 Watchtower 开发的 Go 库。我们使用一个维护的分支 nicholas-fedor/shoutrrr 的固定版本。这里的文档是根据它们改编的。
URL 在设置中配置(设置 > 通知)。警报在系统表中启用。
服务概览
点击服务获取更详细的说明。
| 服务 | URL 格式 |
|---|---|
| Generic | generic://example.com?template=json |
| Bark | bark://devicekey@host |
| Discord | discord://token@id |
| Gotify | gotify://gotify-host/token |
| Google Chat | googlechat://chat.googleapis.com/v1/spaces/FOO/messages?key=bar&token=baz |
| IFTTT | ifttt://key/?events=event1[,event2,...]&value1=value1&value2=value2&value3=value3 |
| Join | join://shoutrrr:api-key@join/?devices=device1[,device2, ...][&icon=icon] |
| Lark | lark://host/token?secret=secret |
| Mattermost | mattermost://[username@]mattermost-host/token[/channel] |
| Matrix | matrix://username:password@host:port/[?rooms=!roomID1[,roomAlias2]] |
| Ntfy | ntfy://:accesstoken@host/topic |
| OpsGenie | opsgenie://host/token?responders=responder1[,responder2]_ |
| Pushbullet | pushbullet://api-token[/device/#channel/email] |
| Pushover | pushover://shoutrrr:apiToken@userKey/?devices=device1[,device2, ...] |
| Rocketchat | rocketchat://[username@]rocketchat-host/token[/channel|@recipient] |
| Signal | signal://[user[:password]@]host[:port]/source_phone/recipient1[,recipient2,...] |
| Slack | slack://[botname@]token-a/token-b/token-c |
| Teams | teams://group@tenant/altId/groupOwner/extraId?host=organization.webhook.office.com |
| Telegram | telegram://token@telegram?chats=@channel-1[,chat-id-1,...] |
| WeCom | wecom://key |
| Zulip Chat | zulip://bot-mail:bot-key@zulip-domain/?stream=name-or-id&topic=name |