From 12b768c942ab4da3256979dafcf51c312bcea366 Mon Sep 17 00:00:00 2001 From: Marko Simon Date: Mon, 16 Sep 2024 14:42:53 +0200 Subject: [PATCH 1/3] add additional body template fields to servicenow and microsoft teams webhook payload --- alert_action.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 From e0e1b909e4740503905aa11f22e95961a6d457ea Mon Sep 17 00:00:00 2001 From: Marko Simon Date: Mon, 16 Sep 2024 14:44:56 +0200 Subject: [PATCH 2/3] bump version --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 0012d5095de8d2de793e497dbab575291d6bcf62 Mon Sep 17 00:00:00 2001 From: Marko Simon Date: Mon, 16 Sep 2024 14:46:28 +0200 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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`