Skip to content

Commit

Permalink
Adding notification webhook structure
Browse files Browse the repository at this point in the history
  • Loading branch information
CB Hoffman committed Dec 7, 2023
1 parent 598ab18 commit d950922
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,19 @@ type NotificationThirdParty struct {
Channel *string `json:"channel,omitempty"`
}

// NotificationWebhook - Alert Rule Notification Webhook structure
type NotificationWebhook struct {
IntegrationID *string `json:"integrationId,omitempty"`
IntegrationName *string `json:"integrationName,omitempty"`
IntegrationType *string `json:"integrationType,omitempty"`
Target *string `json:"target,omitempty"`
}

// Notification - Alert Rule Notification structure
type Notification struct {
Email *NotificationEmail `json:"email,omitempty"`
ThirdParty *[]NotificationThirdParty `json:"thirdParty,omitempty"`
Webhook *[]NotificationWebhook `json:"webhook,omitempty"`
}

// AlertRule - An alert rule
Expand Down

0 comments on commit d950922

Please sign in to comment.