@@ -9,16 +9,16 @@ import (
99)
1010
1111type AlertNotification struct {
12- Id int64 `json:"id,omitempty"`
13- Name string `json:"name"`
14- Type string `json:"type"`
15- IsDefault bool `json:"isDefault"`
16- Settings interface {} `json:"settings"`
12+ Id int64 `json:"id,omitempty"`
13+ Name string `json:"name"`
14+ Type string `json:"type"`
15+ IsDefault bool `json:"isDefault"`
16+ Settings interface {} `json:"settings"`
1717}
1818
1919func (c * Client ) AlertNotification (id int64 ) (* AlertNotification , error ) {
2020 path := fmt .Sprintf ("/api/alert-notifications/%d" , id )
21- req , err := c .newRequest ("GET" , path , nil )
21+ req , err := c .newRequest ("GET" , path , nil , nil )
2222 if err != nil {
2323 return nil , err
2424 }
@@ -46,7 +46,7 @@ func (c *Client) NewAlertNotification(a *AlertNotification) (int64, error) {
4646 if err != nil {
4747 return 0 , err
4848 }
49- req , err := c .newRequest ("POST" , "/api/alert-notifications" , bytes .NewBuffer (data ))
49+ req , err := c .newRequest ("POST" , "/api/alert-notifications" , nil , bytes .NewBuffer (data ))
5050 if err != nil {
5151 return 0 , err
5252 }
@@ -77,7 +77,7 @@ func (c *Client) UpdateAlertNotification(a *AlertNotification) error {
7777 if err != nil {
7878 return err
7979 }
80- req , err := c .newRequest ("PUT" , path , bytes .NewBuffer (data ))
80+ req , err := c .newRequest ("PUT" , path , nil , bytes .NewBuffer (data ))
8181 if err != nil {
8282 return err
8383 }
@@ -95,7 +95,7 @@ func (c *Client) UpdateAlertNotification(a *AlertNotification) error {
9595
9696func (c * Client ) DeleteAlertNotification (id int64 ) error {
9797 path := fmt .Sprintf ("/api/alert-notifications/%d" , id )
98- req , err := c .newRequest ("DELETE" , path , nil )
98+ req , err := c .newRequest ("DELETE" , path , nil , nil )
9999 if err != nil {
100100 return err
101101 }
0 commit comments