mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(api): remove alertmanager URI from per alert data
This commit is contained in:
@@ -495,7 +495,6 @@ func TestFilters(t *testing.T) {
|
||||
alert.Alertmanager = []models.AlertmanagerInstance{
|
||||
models.AlertmanagerInstance{
|
||||
Name: am.Name,
|
||||
URI: am.URI,
|
||||
Silences: map[string]*models.Silence{
|
||||
ft.Silence.ID: &ft.Silence,
|
||||
},
|
||||
|
||||
@@ -97,7 +97,6 @@ func BenchmarkLabelsContent(b *testing.B) {
|
||||
Alertmanager: []models.AlertmanagerInstance{
|
||||
models.AlertmanagerInstance{
|
||||
Name: "default",
|
||||
URI: "http://localhost",
|
||||
State: models.AlertStateActive,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -6,7 +6,6 @@ import "time"
|
||||
// from
|
||||
type AlertmanagerInstance struct {
|
||||
Name string `json:"name"`
|
||||
URI string `json:"uri"`
|
||||
// per instance alert state
|
||||
State string `json:"state"`
|
||||
// timestamp collected from this instance, those on the alert itself
|
||||
|
||||
Reference in New Issue
Block a user