Skip to content

Commit

Permalink
alerts ==> notifications rename
Browse files Browse the repository at this point in the history
  • Loading branch information
lvangool committed Dec 16, 2021
1 parent 29229c1 commit a044298
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type NotificationResponseBody struct {
func (c *Client) NotificationDownload(stackUid string) ([]Notification, error) {
var notifications []Notification

req, err := c.NewRequest("GET", "/stacks/"+stackUid+"/alerts", nil, nil)
req, err := c.NewRequest("GET", "/stacks/"+stackUid+"/notifications", nil, nil)
if err != nil {
return nil, err
}
Expand Down Expand Up @@ -70,9 +70,9 @@ func (c *Client) NotificationUpload(notification NotificationUploadParams, targe
var requestPath string

if targetStackUid != nil {
requestPath = "/stacks/" + *targetStackUid + "/alerts"
requestPath = "/stacks/" + *targetStackUid + "/notifications"
} else {
requestPath = "/application_groups/alerts"
requestPath = "/application_groups/notifications"
}
req, err := c.NewRequest("PATCH", requestPath, notification, nil)
if err != nil {
Expand Down

0 comments on commit a044298

Please sign in to comment.