Skip to content

Commit

Permalink
Adds oncall to escalation policy
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilde committed Oct 20, 2019
1 parent f60f4fc commit 4f049ea
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions escalation_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,22 @@ type EscalationRule struct {
// EscalationPolicy is a collection of escalation rules.
type EscalationPolicy struct {
APIObject
Name string `json:"name,omitempty"`
EscalationRules []EscalationRule `json:"escalation_rules,omitempty"`
Services []APIObject `json:"services,omitempty"`
NumLoops uint `json:"num_loops,omitempty"`
Teams []APIReference `json:"teams"`
Description string `json:"description,omitempty"`
RepeatEnabled bool `json:"repeat_enabled,omitempty"`
Name string `json:"name,omitempty"`
EscalationRules []EscalationRule `json:"escalation_rules,omitempty"`
Services []APIObject `json:"services,omitempty"`
NumLoops uint `json:"num_loops,omitempty"`
Teams []APIReference `json:"teams"`
OnCall []EscalationPolicyOnCall `json:"on_call"`
Description string `json:"description,omitempty"`
RepeatEnabled bool `json:"repeat_enabled,omitempty"`
}

//
type EscalationPolicyOnCall struct {
Level uint `json:"level"`
Start string `json:"start,omitempty"`
End string `json:"end,omitempty"`
User User `json:"user,omitempty"`
}

// ListEscalationPoliciesResponse is the data structure returned from calling the ListEscalationPolicies API endpoint.
Expand Down

0 comments on commit 4f049ea

Please sign in to comment.