Skip to content

Commit

Permalink
feat: add webhook_type field to alert channels (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nacho Anaya authored Mar 17, 2023
1 parent 4438a8a commit e139003
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checkly_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ var testDashboard = checkly.Dashboard{
UseTagsAndOperator: true,
}

var ignoreDashboardFields = cmpopts.IgnoreFields(checkly.Dashboard{}, "DashboardID")
var ignoreDashboardFields = cmpopts.IgnoreFields(checkly.Dashboard{}, "DashboardID", "CreatedAt", "ID")

func TestCreateDashboard(t *testing.T) {
t.Parallel()
Expand Down
1 change: 1 addition & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,7 @@ type AlertChannelPagerduty struct {
type AlertChannelWebhook struct {
Name string `json:"name"`
URL string `json:"url"`
WebhookType string `json:"webhookType,omitempty"`
Method string `json:"method,omitempty"`
Template string `json:"template,omitempty"`
WebhookSecret string `json:"webhookSecret,omitempty"`
Expand Down

0 comments on commit e139003

Please sign in to comment.