fix(api): remove alertmanager URI from per alert data

This commit is contained in:
Łukasz Mierzwa
2018-09-11 20:29:42 +01:00
parent aac4870bde
commit fd645041b3
3 changed files with 0 additions and 3 deletions

View File

@@ -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,
},

View File

@@ -97,7 +97,6 @@ func BenchmarkLabelsContent(b *testing.B) {
Alertmanager: []models.AlertmanagerInstance{
models.AlertmanagerInstance{
Name: "default",
URI: "http://localhost",
State: models.AlertStateActive,
},
},

View File

@@ -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