Skip to content

Commit

Permalink
Unify all the copied files under the alerting package
Browse files Browse the repository at this point in the history
  • Loading branch information
gotjosh committed Jul 15, 2022
1 parent b63f072 commit 03b6ab0
Show file tree
Hide file tree
Showing 18 changed files with 17 additions and 720 deletions.
704 changes: 0 additions & 704 deletions alerting/alertmanager.go

This file was deleted.

2 changes: 1 addition & 1 deletion alerting/alertmanager_config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion alerting/alerts.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"fmt"
Expand Down
2 changes: 1 addition & 1 deletion alerting/available_channels.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"github.com/grafana/grafana/pkg/services/alerting"
Expand Down
2 changes: 1 addition & 1 deletion alerting/config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"encoding/json"
Expand Down
2 changes: 1 addition & 1 deletion alerting/config_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion alerting/crypto.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion alerting/file_store.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion alerting/file_store_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
1 change: 1 addition & 0 deletions alerting/grafana_alertmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ type GrafanaAlertmanagerConfig struct {

func NewGrafanaAlertmanager(ctx context.Context, orgID int64, cfg *setting.Cfg, store AlertingStore, config *GrafanaAlertmanagerConfig,
peer ClusterPeer, decryptFn channels.GetDecryptedValueFn, ns notifications.Service, m *metrics.Alertmanager) (*GrafanaAlertmanager, error) {

am := &GrafanaAlertmanager{
Settings: cfg,
stopc: make(chan struct{}),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion alerting/multiorg_alertmanager.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion alerting/multiorg_alertmanager_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"bytes"
Expand Down
2 changes: 1 addition & 1 deletion alerting/receivers.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion alerting/receivers_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down
2 changes: 1 addition & 1 deletion alerting/silences.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion alerting/status.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
apimodels "github.com/grafana/grafana/pkg/services/ngalert/api/tooling/definitions"
Expand Down
2 changes: 1 addition & 1 deletion alerting/testing.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package notifier
package alerting

import (
"context"
Expand Down

0 comments on commit 03b6ab0

Please sign in to comment.