Skip to content

Commit

Permalink
Merge pull request #4 from alexzakabluk/orca-4806/update-escalation-p…
Browse files Browse the repository at this point in the history
…olicy-type

Orca 4806/update escalation policy type
  • Loading branch information
alisonwarner-pd authored Jul 12, 2024
2 parents e37e9ef + 0e138f5 commit 2eb91c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pagerduty/event_orchestration_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type EventOrchestrationPathRuleActions struct {
EventAction string `json:"event_action"`
Variables []*EventOrchestrationPathActionVariables `json:"variables"`
Extractions []*EventOrchestrationPathActionExtractions `json:"extractions"`
EscalationPolicy string `json:"escalation_policy"`
EscalationPolicy *string `json:"escalation_policy"`
}

type EventOrchestrationPathDynamicRouteTo struct {
Expand Down
3 changes: 2 additions & 1 deletion pagerduty/event_orchestration_path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ func TestEventOrchestrationPathEscalationPolicyUpdate(t *testing.T) {
t.Fatal(err)
}

policy := "POLICY"
want := &EventOrchestrationPathPayload{
OrchestrationPath: &EventOrchestrationPath{
Type: "global",
Expand All @@ -536,7 +537,7 @@ func TestEventOrchestrationPathEscalationPolicyUpdate(t *testing.T) {
Rules: []*EventOrchestrationPathRule{
{
Actions: &EventOrchestrationPathRuleActions{
EscalationPolicy: "POLICY",
EscalationPolicy: &policy,
},
ID: "E-ORC-EP-RULE",
},
Expand Down

0 comments on commit 2eb91c0

Please sign in to comment.