def transport(self): if self.kind == "email": return transports.Email(self) elif self.kind == "webhook": return transports.Webhook(self) elif self.kind == "slack": return transports.Slack(self) elif self.kind == "hipchat": return transports.HipChat(self) elif self.kind == "pd": return transports.PagerDuty(self) elif self.kind == "pagertree": return transports.PagerTree(self) elif self.kind == "pagerteam": return transports.PagerTeam(self) elif self.kind == "victorops": return transports.VictorOps(self) elif self.kind == "pushbullet": return transports.Pushbullet(self) elif self.kind == "po": return transports.Pushover(self) elif self.kind == "opsgenie": return transports.OpsGenie(self) elif self.kind == "discord": return transports.Discord(self) elif self.kind == "telegram": return transports.Telegram(self) elif self.kind == "sms": return transports.Sms(self) elif self.kind == "trello": return transports.Trello(self) elif self.kind == "matrix": return transports.Matrix(self) else: raise NotImplementedError("Unknown channel kind: %s" % self.kind)
def transport(self): if self.kind == "email": return transports.Email(self) elif self.kind == "webhook": return transports.Webhook(self) elif self.kind == "slack": return transports.Slack(self) elif self.kind == "mattermost": return transports.Mattermost(self) elif self.kind == "hipchat": return transports.HipChat(self) elif self.kind == "pd": return transports.PagerDuty(self) elif self.kind == "pagertree": return transports.PagerTree(self) elif self.kind == "pagerteam": return transports.PagerTeam(self) elif self.kind == "victorops": return transports.VictorOps(self) elif self.kind == "pushbullet": return transports.Pushbullet(self) elif self.kind == "po": return transports.Pushover(self) elif self.kind == "opsgenie": return transports.Opsgenie(self) elif self.kind == "discord": return transports.Discord(self) elif self.kind == "telegram": return transports.Telegram(self) elif self.kind == "sms": return transports.Sms(self) elif self.kind == "trello": return transports.Trello(self) elif self.kind == "matrix": return transports.Matrix(self) elif self.kind == "whatsapp": return transports.WhatsApp(self) elif self.kind == "apprise": return transports.Apprise(self) elif self.kind == "msteams": return transports.MsTeams(self) elif self.kind == "shell": return transports.Shell(self) elif self.kind == "zulip": return transports.Zulip(self) elif self.kind == "spike": return transports.Spike(self) elif self.kind == "call": return transports.Call(self) elif self.kind == "linenotify": return transports.LineNotify(self) elif self.kind == "signal": return transports.Signal(self) elif self.kind == "gotify": return transports.Gotify(self) else: raise NotImplementedError("Unknown channel kind: %s" % self.kind)
def transport(self): if self.kind == "email": return transports.Email(self) elif self.kind == "webhook": return transports.Webhook(self) elif self.kind == "slack": return transports.Slack(self) elif self.kind == "hipchat": return transports.HipChat(self) elif self.kind == "pd": return transports.PagerDuty(self) elif self.kind == "victorops": return transports.VictorOps(self) elif self.kind == "po": return transports.Pushover(self) else: raise NotImplementedError("Unknown channel kind: %s" % self.kind)