Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Commit

Permalink
add ViolationCloseTimer field to NrqlAlertCondition type to reflect A…
Browse files Browse the repository at this point in the history
…PI updates
  • Loading branch information
Nicholas Valler committed Nov 10, 2019
1 parent f54ac20 commit c7d29a8
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,18 @@ type AlertNrqlQuery struct {

// AlertNrqlCondition represents a New Relic NRQL Alert condition.
type AlertNrqlCondition struct {
PolicyID int `json:"-"`
ID int `json:"id,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled"`
RunbookURL string `json:"runbook_url,omitempty"`
Terms []AlertConditionTerm `json:"terms,omitempty"`
ValueFunction string `json:"value_function,omitempty"`
ExpectedGroups int `json:"expected_groups,omitempty"`
IgnoreOverlap bool `json:"ignore_overlap,omitempty"`
Nrql AlertNrqlQuery `json:"nrql,omitempty"`
PolicyID int `json:"-"`
ID int `json:"id,omitempty"`
Type string `json:"type,omitempty"`
Name string `json:"name,omitempty"`
Enabled bool `json:"enabled"`
RunbookURL string `json:"runbook_url,omitempty"`
Terms []AlertConditionTerm `json:"terms,omitempty"`
ValueFunction string `json:"value_function,omitempty"`
ExpectedGroups int `json:"expected_groups,omitempty"`
IgnoreOverlap bool `json:"ignore_overlap,omitempty"`
Nrql AlertNrqlQuery `json:"nrql,omitempty"`
ViolationCloseTimer int `json:"violation_time_limit_seconds,omitempty"`
}

// AlertPlugin represents a plugin to use with a Plugin alert condition.
Expand Down

0 comments on commit c7d29a8

Please sign in to comment.