Skip to content

Commit

Permalink
Merge pull request #1679 from utay/group-hook-alert-status
Browse files Browse the repository at this point in the history
Add alert status to group hooks
  • Loading branch information
svanharmelen committed Mar 23, 2023
2 parents 058cd51 + 93547fd commit 907432b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions group_hooks.go
Expand Up @@ -44,6 +44,7 @@ type GroupHook struct {
ReleasesEvents bool `json:"releases_events"`
SubGroupEvents bool `json:"subgroup_events"`
EnableSSLVerification bool `json:"enable_ssl_verification"`
AlertStatus string `json:"alert_status"`
CreatedAt *time.Time `json:"created_at"`
}

Expand Down
4 changes: 4 additions & 0 deletions group_hooks_test.go
Expand Up @@ -49,6 +49,7 @@ func TestListGroupHooks(t *testing.T) {
"releases_events": true,
"subgroup_events": true,
"enable_ssl_verification": true,
"alert_status": "executable",
"created_at": "2012-10-12T17:04:47Z"
}
]`)
Expand Down Expand Up @@ -78,6 +79,7 @@ func TestListGroupHooks(t *testing.T) {
ReleasesEvents: true,
SubGroupEvents: true,
EnableSSLVerification: true,
AlertStatus: "executable",
CreatedAt: &datePointer,
}}

Expand Down Expand Up @@ -110,6 +112,7 @@ func TestGetGroupHook(t *testing.T) {
"releases_events": true,
"subgroup_events": true,
"enable_ssl_verification": true,
"alert_status": "executable",
"created_at": "2012-10-12T17:04:47Z"
}`)
})
Expand Down Expand Up @@ -138,6 +141,7 @@ func TestGetGroupHook(t *testing.T) {
ReleasesEvents: true,
SubGroupEvents: true,
EnableSSLVerification: true,
AlertStatus: "executable",
CreatedAt: &datePointer,
}

Expand Down

0 comments on commit 907432b

Please sign in to comment.