mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-03 03:56:18 -04:00
Add Flashduty notification (#3475)
* feat: add FlashDuty notification channel * refactor: #3475 nofify with Up or Down; refactor code; add en zh-hk zh-tw lang * refactor: default select Info * refactor: add space in word * refactor the flashduty notification code * refactor:compatible when Test flashduty nofication * refactor: add function param description * refactor: revert zh-hk zh-tw changes of flashduty
This commit is contained in:
parent
ae2867e305
commit
587d9e4781
8 changed files with 140 additions and 3 deletions
|
@ -27,6 +27,7 @@ const Octopush = require("./notification-providers/octopush");
|
|||
const OneBot = require("./notification-providers/onebot");
|
||||
const Opsgenie = require("./notification-providers/opsgenie");
|
||||
const PagerDuty = require("./notification-providers/pagerduty");
|
||||
const FlashDuty = require("./notification-providers/flashduty");
|
||||
const PagerTree = require("./notification-providers/pagertree");
|
||||
const PromoSMS = require("./notification-providers/promosms");
|
||||
const Pushbullet = require("./notification-providers/pushbullet");
|
||||
|
@ -91,6 +92,7 @@ class Notification {
|
|||
new OneBot(),
|
||||
new Opsgenie(),
|
||||
new PagerDuty(),
|
||||
new FlashDuty(),
|
||||
new PagerTree(),
|
||||
new PromoSMS(),
|
||||
new Pushbullet(),
|
||||
|
@ -117,7 +119,6 @@ class Notification {
|
|||
new GoAlert(),
|
||||
new ZohoCliq()
|
||||
];
|
||||
|
||||
for (let item of list) {
|
||||
if (! item.name) {
|
||||
throw new Error("Notification provider without name");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue