From e5ef420545c93d9fa72699803fd362498b93b621 Mon Sep 17 00:00:00 2001 From: yacut Date: Thu, 22 Oct 2020 16:55:09 +0200 Subject: [PATCH] fix escalation policy types --- CHANGELOG.md | 3 ++- escalationpolicy.go | 8 ++++---- version.go | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c91383e..b2389bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,12 @@ # Changelog -## 20.10.2020, Version 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8 +## 20.10.2020, Version 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9 - fix alert source type definition - fix incident type definition - fix uptime monitor type definition - fix user type definition +- fix escalation policy type definition - add auto resolution timeout option to alert source ## 19.10.2020, Version 1.0.0, 1.0.1 diff --git a/escalationpolicy.go b/escalationpolicy.go index cd439df..76d474a 100644 --- a/escalationpolicy.go +++ b/escalationpolicy.go @@ -17,10 +17,10 @@ type EscalationPolicy struct { // EscalationRule definition type EscalationRule struct { - User User `json:"user,omitempty"` - Schedule Schedule `json:"schedule,omitempty"` - EscalationTimeout int `json:"escalationTimeout"` - Type string `json:"type,omitempty"` + User *User `json:"user,omitempty"` + Schedule *Schedule `json:"schedule,omitempty"` + EscalationTimeout int `json:"escalationTimeout"` + Type string `json:"type,omitempty"` } // CreateEscalationPolicyInput represents the input of a CreateEscalationPolicy operation. diff --git a/version.go b/version.go index 3a8b7a0..708eaa0 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v1.0.8" +const Version = "v1.0.9"