Skip to content

Commit

Permalink
Changing datatype of details in alert policy request
Browse files Browse the repository at this point in the history
  • Loading branch information
koushik-swaminathan committed Aug 2, 2023
1 parent b54d8bd commit fc56439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions policy/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit fc56439

Please sign in to comment.