77)
88
99// AlertNotification represents a Grafana alert notification.
10- //Deprecated: Grafana Legacy Alerting is deprecated in 9.0 and will be removed in the future. Use ContactPoint instead.
10+ // Deprecated: Grafana Legacy Alerting is deprecated as of 9.0 and will be removed in the future. Use ContactPoint instead.
1111type AlertNotification struct {
1212 ID int64 `json:"id,omitempty"`
1313 UID string `json:"uid"`
@@ -23,7 +23,7 @@ type AlertNotification struct {
2323}
2424
2525// AlertNotifications fetches and returns Grafana alert notifications.
26- //Deprecated: Grafana Legacy Alerting is deprecated in 9.0 and will be removed in the future. Use ContactPoints instead.
26+ // Deprecated: Grafana Legacy Alerting is deprecated as of 9.0 and will be removed in the future. Use ContactPoints instead.
2727func (c * Client ) AlertNotifications () ([]AlertNotification , error ) {
2828 alertnotifications := make ([]AlertNotification , 0 )
2929
@@ -36,7 +36,7 @@ func (c *Client) AlertNotifications() ([]AlertNotification, error) {
3636}
3737
3838// AlertNotification fetches and returns a Grafana alert notification.
39- //Deprecated: Grafana Legacy Alerting is deprecated in 9.0 and will be removed in the future. Use ContactPoint instead.
39+ // Deprecated: Grafana Legacy Alerting is deprecated as of 9.0 and will be removed in the future. Use ContactPoint instead.
4040func (c * Client ) AlertNotification (id int64 ) (* AlertNotification , error ) {
4141 path := fmt .Sprintf ("/api/alert-notifications/%d" , id )
4242 result := & AlertNotification {}
@@ -49,7 +49,7 @@ func (c *Client) AlertNotification(id int64) (*AlertNotification, error) {
4949}
5050
5151// NewAlertNotification creates a new Grafana alert notification.
52- //Deprecated: Grafana Legacy Alerting is deprecated in 9.0 and will be removed in the future. Use NewContactPoint instead.
52+ // Deprecated: Grafana Legacy Alerting is deprecated as of 9.0 and will be removed in the future. Use NewContactPoint instead.
5353func (c * Client ) NewAlertNotification (a * AlertNotification ) (int64 , error ) {
5454 data , err := json .Marshal (a )
5555 if err != nil {
@@ -68,7 +68,7 @@ func (c *Client) NewAlertNotification(a *AlertNotification) (int64, error) {
6868}
6969
7070// UpdateAlertNotification updates a Grafana alert notification.
71- //Deprecated: Grafana Legacy Alerting is deprecated in 9.0 and will be removed in the future. Use UpdateContactPoint instead.
71+ // Deprecated: Grafana Legacy Alerting is deprecated as of 9.0 and will be removed in the future. Use UpdateContactPoint instead.
7272func (c * Client ) UpdateAlertNotification (a * AlertNotification ) error {
7373 path := fmt .Sprintf ("/api/alert-notifications/%d" , a .ID )
7474 data , err := json .Marshal (a )
@@ -81,7 +81,7 @@ func (c *Client) UpdateAlertNotification(a *AlertNotification) error {
8181}
8282
8383// DeleteAlertNotification deletes a Grafana alert notification.
84- //Deprecated: Grafana Legacy Alerting is deprecated in 9.0 and will be removed in the future. Use DeleteContactPoint instead.
84+ // Deprecated: Grafana Legacy Alerting is deprecated as of 9.0 and will be removed in the future. Use DeleteContactPoint instead.
8585func (c * Client ) DeleteAlertNotification (id int64 ) error {
8686 path := fmt .Sprintf ("/api/alert-notifications/%d" , id )
8787
0 commit comments