From fc5643976123621a033aeab2bb568d56b4557248 Mon Sep 17 00:00:00 2001 From: ks2 Date: Wed, 2 Aug 2023 14:07:07 +0530 Subject: [PATCH] Changing datatype of details in alert policy request --- policy/request.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policy/request.go b/policy/request.go index a308fe4..8d02cbd 100644 --- a/policy/request.go +++ b/policy/request.go @@ -21,7 +21,7 @@ type CreateAlertPolicyRequest struct { IgnoreOriginalDetails *bool `json:"ignoreOriginalDetails,omitempty"` Actions []string `json:"actions,omitempty"` IgnoreOriginalActions *bool `json:"ignoreOriginalActions,omitempty"` - Details []string `json:"details,omitempty"` + Details map[string]string `json:"details,omitempty"` IgnoreOriginalResponders *bool `json:"ignoreOriginalResponders,omitempty"` Responders *[]alert.Responder `json:"responders,omitempty"` IgnoreOriginalTags *bool `json:"ignoreOriginalTags,omitempty"` @@ -216,7 +216,7 @@ type UpdateAlertPolicyRequest struct { IgnoreOriginalDetails *bool `json:"ignoreOriginalDetails,omitempty"` Actions []string `json:"actions,omitempty"` IgnoreOriginalActions *bool `json:"ignoreOriginalActions,omitempty"` - Details map[string]interface{} `json:"details,omitempty"` + Details map[string]string `json:"details,omitempty"` IgnoreOriginalResponders *bool `json:"ignoreOriginalResponders,omitempty"` Responders *[]alert.Responder `json:"responders,omitempty"` IgnoreOriginalTags *bool `json:"ignoreOriginalTags,omitempty"`