Skip to content

Commit

Permalink
Merge pull request #44 from iLert/feature/additional-body-template-fi…
Browse files Browse the repository at this point in the history
…elds

Feature/additional body template fields
  • Loading branch information
STLVRTX authored Sep 16, 2024
2 parents 9882f29 + 0012d50 commit 56cb0e9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
10 changes: 6 additions & 4 deletions alert_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
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.0"
const Version = "v3.9.1"

0 comments on commit 56cb0e9

Please sign in to comment.