diff --git a/CHANGELOG.md b/CHANGELOG.md index 7583dd6..c93a777 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/alert_action.go b/alert_action.go index 8b31733..a415b47 100644 --- a/alert_action.go +++ b/alert_action.go @@ -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 @@ -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 diff --git a/version.go b/version.go index 6ad04ff..a74a6c7 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v3.9.1" +const Version = "v3.10.0"