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

Commit 93b06af

Browse files
committed
Fix lint errors
1 parent 3763061 commit 93b06af

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

alerting_contact_point_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func TestContactPoints(t *testing.T) {
4343
}
4444
})
4545

46-
t.Run("get non-existant contact point fails", func(t *testing.T) {
46+
t.Run("get non-existent contact point fails", func(t *testing.T) {
4747
server, client := gapiTestTools(t, 200, getContactPointsJSON)
4848
defer server.Close()
4949

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 in 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 in 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 in 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 in 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 in 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 in 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)