Skip to content

Commit

Permalink
Merge pull request #80 from opsgenie/Deduplication_Policy_Action_Change
Browse files Browse the repository at this point in the history
Updating Policy Action to accept De Duplication
  • Loading branch information
prakhar-mudaiya authored Apr 1, 2021
2 parents d0825cd + 0f643a2 commit 68146d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions policy/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type CreateNotificationPolicyRequest struct {
MainFields
AutoRestartAction *AutoRestartAction `json:"autoRestartAction,omitempty"`
AutoCloseAction *AutoCloseAction `json:"autoCloseAction,omitempty"`
DeDuplicationAction *DeDuplicationAction `json:"deduplicationActionAction,omitempty"`
DeDuplicationAction *DeDuplicationAction `json:"deduplicationAction,omitempty"`
DelayAction *DelayAction `json:"delayAction,omitempty"`
Suppress *bool `json:"suppress,omitempty"`
}
Expand Down Expand Up @@ -271,7 +271,7 @@ type UpdateNotificationPolicyRequest struct {
MainFields
AutoRestartAction *AutoRestartAction `json:"autoRestartAction,omitempty"`
AutoCloseAction *AutoCloseAction `json:"autoCloseAction,omitempty"`
DeDuplicationAction *DeDuplicationAction `json:"deduplicationActionAction,omitempty"`
DeDuplicationAction *DeDuplicationAction `json:"deduplicationAction,omitempty"`
DelayAction *DelayAction `json:"delayAction,omitempty"`
Suppress *bool `json:"suppress,omitempty"`
Id string
Expand Down Expand Up @@ -546,7 +546,7 @@ type AutoCloseAction struct {
}

type DeDuplicationAction struct {
DeDuplicationActionType DeDuplicationActionType `json:"deduplicationType,omitempty"`
DeDuplicationActionType DeDuplicationActionType `json:"deduplicationActionType,omitempty"`
Duration *Duration `json:"duration,omitempty"`
Count int `json:"count,omitempty"`
}
Expand Down

0 comments on commit 68146d4

Please sign in to comment.