Skip to content

Commit

Permalink
Merge pull request #27 from akshaychitneni/master
Browse files Browse the repository at this point in the history
Fixes #26 Add support to fetch metric source from Alerts
  • Loading branch information
louism517 committed Jun 27, 2019
2 parents 5401f74 + 84c7b8b commit f3e0f3a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions alert.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ type Alert struct {

// Tags are the tags applied to the Alert
Tags []string

FailingHostLabelPairs []SourceLabelPair `json:"failingHostLabelPairs,omitempty"`
InMaintenanceHostLabelPairs []SourceLabelPair `json:"inMaintenanceHostLabelPairs,omitempty"`
}

type SourceLabelPair struct {
Host string `json:"host"`
Firing int `json:"firing"`
}

// Alerts is used to perform alert-related operations against the Wavefront API
Expand Down

0 comments on commit f3e0f3a

Please sign in to comment.