Skip to content

Commit

Permalink
Merge pull request #45 from iLert/feature/alert-action-conditions-field
Browse files Browse the repository at this point in the history
Feature/alert action conditions field
  • Loading branch information
STLVRTX authored Oct 1, 2024
2 parents 56cb0e9 + cdaca69 commit ee069e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 01.10.2024, Version 3.10.0

- add conditions field to alert action [#45](https://github.com/iLert/ilert-go/pull/45)

## 16.09.2024, Version 3.9.1

- add additional body template fields [#44](https://github.com/iLert/ilert-go/pull/44)
Expand Down
6 changes: 4 additions & 2 deletions alert_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ type AlertAction struct {
CreatedAt string `json:"createdAt,omitempty"` // date time string in ISO 8601
UpdatedAt string `json:"updatedAt,omitempty"` // date time string in ISO 8601
Params interface{} `json:"params"`
AlertFilter *AlertFilter `json:"alertFilter,omitempty"`
AlertFilter *AlertFilter `json:"alertFilter,omitempty"` // @deprecated
Teams *[]TeamShort `json:"teams,omitempty"`
Conditions string `json:"conditions,omitempty"`
}

// AlertActionOutput definition https://api.ilert.com/api-docs/#tag/Alert-Actions
Expand All @@ -44,8 +45,9 @@ type AlertActionOutput struct {
CreatedAt string `json:"createdAt"` // date time string in ISO 8601
UpdatedAt string `json:"updatedAt"` // date time string in ISO 8601
Params *AlertActionOutputParams `json:"params"`
AlertFilter *AlertFilter `json:"alertFilter,omitempty"`
AlertFilter *AlertFilter `json:"alertFilter,omitempty"` // @deprecated
Teams *[]TeamShort `json:"teams,omitempty"`
Conditions string `json:"conditions,omitempty"`
}

// AlertActionOutputParams definition
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ilert

// Version package version
const Version = "v3.9.1"
const Version = "v3.10.0"

0 comments on commit ee069e0

Please sign in to comment.