Skip to content

Commit

Permalink
Updating CustomAlertBody
Browse files Browse the repository at this point in the history
Adding fields Operator and FieldName to support agent alerts.
  • Loading branch information
BrooksCunningham committed Jul 31, 2024
1 parent 92ef742 commit c0126dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,8 @@ type CustomAlertBody struct {
Action string `json:"action"`
SkipNotifications bool `json:"skipNotifications"`
BlockDurationSeconds int `json:"blockDurationSeconds,omitempty"`
Operator string `json:"operator,omitempty"`
FieldName string `json:"fieldName,omitempty"`
}

// CreateCustomAlert creates a custom alert.
Expand Down

0 comments on commit c0126dc

Please sign in to comment.