Skip to content

Commit

Permalink
add slack webhook alert action
Browse files Browse the repository at this point in the history
  • Loading branch information
STLVRTX committed Jul 26, 2024
1 parent d374c11 commit a2aaf81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions alert_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ type AlertActionParamsMicrosoftTeamsWebhook struct {
URL string `json:"url,omitempty"`
}

// AlertActionParamsSlackWebhook definition
type AlertActionParamsSlackWebhook struct {
URL string `json:"url,omitempty"`
}

// AlertActionParamsServiceNow definition
type AlertActionParamsServiceNow struct {
CallerID string `json:"callerId,omitempty"` // user email
Expand Down
3 changes: 3 additions & 0 deletions connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ var ConnectorTypes = struct {
MicrosoftTeamsWebhook string
ServiceNow string
Slack string
SlackWebhook string
Telegram string
Topdesk string
Webhook string
Expand All @@ -175,6 +176,7 @@ var ConnectorTypes = struct {
MicrosoftTeamsWebhook: "microsoft_teams_webhook",
ServiceNow: "servicenow",
Slack: "slack",
SlackWebhook: "slack_webhook",
Telegram: "telegram",
Topdesk: "topdesk",
Webhook: "webhook",
Expand All @@ -198,6 +200,7 @@ var ConnectorTypesAll = []string{
ConnectorTypes.MicrosoftTeamsWebhook,
ConnectorTypes.ServiceNow,
ConnectorTypes.Slack,
ConnectorTypes.SlackWebhook,
ConnectorTypes.Telegram,
ConnectorTypes.Topdesk,
ConnectorTypes.Webhook,
Expand Down

0 comments on commit a2aaf81

Please sign in to comment.