diff --git a/CHANGELOG.md b/CHANGELOG.md index aa2a5cb..7583dd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,12 @@ # Changelog +## 16.09.2024, Version 3.9.1 + +- add additional body template fields [#44](https://github.com/iLert/ilert-go/pull/44) + ## 22.08.2024, Version 3.9.0 -- add new api resources/fields pt.1 [#42](https://github.com/iLert/ilert-go/pull/42) +- add new api resources/fields pt.1 [#43](https://github.com/iLert/ilert-go/pull/43) - alert action - deprecate `delaySec` in favor of more specific `escalationEndedDelaySec` and `notResolvedDelaySec` - new trigger type `AlertNotResolved` diff --git a/alert_action.go b/alert_action.go index 81ea5d9..8b31733 100644 --- a/alert_action.go +++ b/alert_action.go @@ -123,7 +123,8 @@ type AlertActionParamsMicrosoftTeamsBot struct { // AlertActionParamsMicrosoftTeamsWebhook definition type AlertActionParamsMicrosoftTeamsWebhook struct { - URL string `json:"url,omitempty"` + URL string `json:"url,omitempty"` + BodyTemplate string `json:"bodyTemplate,omitempty"` } // AlertActionParamsSlackWebhook definition @@ -133,9 +134,10 @@ type AlertActionParamsSlackWebhook struct { // AlertActionParamsServiceNow definition type AlertActionParamsServiceNow struct { - CallerID string `json:"callerId,omitempty"` // user email - Impact string `json:"impact,omitempty"` // 1 - High, 2 - Medium, 3 - Low (Default) - Urgency string `json:"urgency,omitempty"` // 1 - High, 2 - Medium, 3 - Low (Default) + CallerID string `json:"callerId,omitempty"` // user email + Impact string `json:"impact,omitempty"` // 1 - High, 2 - Medium, 3 - Low (Default) + Urgency string `json:"urgency,omitempty"` // 1 - High, 2 - Medium, 3 - Low (Default) + BodyTemplate string `json:"bodyTemplate,omitempty"` } // AlertActionParamsSlack definition diff --git a/version.go b/version.go index 478929b..6ad04ff 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v3.9.0" +const Version = "v3.9.1"