Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit f60b8ce

Browse files
committed
in -> as of to circumvent linter bug
1 parent 93b06af commit f60b8ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

alertnotification.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
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.
1111
type 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.
2727
func (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.
4040
func (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.
5353
func (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.
7272
func (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.
8585
func (c *Client) DeleteAlertNotification(id int64) error {
8686
path := fmt.Sprintf("/api/alert-notifications/%d", id)
8787

0 commit comments

Comments
 (0)