Skip to content

Commit 232a4b9

Browse files
committed
feat(alerting): Add basic send mode implementation
1 parent 40b1576 commit 232a4b9

File tree

9 files changed

+407
-0
lines changed

9 files changed

+407
-0
lines changed

alerting/alert/type.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ const (
110110
// TypeTelegram is the Type for the telegram alerting provider
111111
TypeTelegram Type = "telegram"
112112

113+
// TypeThreemaGateway is the Type for the threema-gateway alerting provider
114+
TypeThreemaGateway Type = "threema-gateway"
115+
113116
// TypeTwilio is the Type for the twilio alerting provider
114117
TypeTwilio Type = "twilio"
115118

alerting/config.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import (
4141
"github.com/TwiN/gatus/v5/alerting/provider/teams"
4242
"github.com/TwiN/gatus/v5/alerting/provider/teamsworkflows"
4343
"github.com/TwiN/gatus/v5/alerting/provider/telegram"
44+
"github.com/TwiN/gatus/v5/alerting/provider/threemagateway"
4445
"github.com/TwiN/gatus/v5/alerting/provider/twilio"
4546
"github.com/TwiN/gatus/v5/alerting/provider/vonage"
4647
"github.com/TwiN/gatus/v5/alerting/provider/webex"
@@ -156,6 +157,9 @@ type Config struct {
156157
// Telegram is the configuration for the telegram alerting provider
157158
Telegram *telegram.AlertProvider `yaml:"telegram,omitempty"`
158159

160+
// ThreemaGateway is the configuration for the threema-gatway alerting provider
161+
ThreemaGateway *threemagateway.AlertProvider `yaml:"threema-gateway,omitempty"`
162+
159163
// Twilio is the configuration for the twilio alerting provider
160164
Twilio *twilio.AlertProvider `yaml:"twilio,omitempty"`
161165

alerting/provider/provider.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import (
3737
"github.com/TwiN/gatus/v5/alerting/provider/teams"
3838
"github.com/TwiN/gatus/v5/alerting/provider/teamsworkflows"
3939
"github.com/TwiN/gatus/v5/alerting/provider/telegram"
40+
"github.com/TwiN/gatus/v5/alerting/provider/threemagateway"
4041
"github.com/TwiN/gatus/v5/alerting/provider/twilio"
4142
"github.com/TwiN/gatus/v5/alerting/provider/webex"
4243
"github.com/TwiN/gatus/v5/alerting/provider/zapier"
@@ -126,6 +127,7 @@ var (
126127
_ AlertProvider = (*teams.AlertProvider)(nil)
127128
_ AlertProvider = (*teamsworkflows.AlertProvider)(nil)
128129
_ AlertProvider = (*telegram.AlertProvider)(nil)
130+
_ AlertProvider = (*threemagateway.AlertProvider)(nil)
129131
_ AlertProvider = (*twilio.AlertProvider)(nil)
130132
_ AlertProvider = (*webex.AlertProvider)(nil)
131133
_ AlertProvider = (*zapier.AlertProvider)(nil)
@@ -167,6 +169,7 @@ var (
167169
_ Config[teams.Config] = (*teams.Config)(nil)
168170
_ Config[teamsworkflows.Config] = (*teamsworkflows.Config)(nil)
169171
_ Config[telegram.Config] = (*telegram.Config)(nil)
172+
_ Config[threemagateway.Config] = (*threemagateway.Config)(nil)
170173
_ Config[twilio.Config] = (*twilio.Config)(nil)
171174
_ Config[webex.Config] = (*webex.Config)(nil)
172175
_ Config[zapier.Config] = (*zapier.Config)(nil)

0 commit comments

Comments
 (0)