Skip to content

Commit

Permalink
Merge pull request #23 from grafana/matiasb/escalation-policy-severity
Browse files Browse the repository at this point in the history
Add `severity` escalation option
  • Loading branch information
matiasb authored Oct 8, 2024
2 parents fab8d66 + 7a86c28 commit a0f8b48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions escalation_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type Escalation struct {
Important *bool `json:"important"`
NotifyIfTimeFrom *string `json:"notify_if_time_from"`
NotifyIfTimeTo *string `json:"notify_if_time_to"`
Severity *string `json:"severity"`
}

// Empty struct is here in case we want to add request params to ListEscalations.
Expand Down Expand Up @@ -107,6 +108,7 @@ type CreateEscalationOptions struct {
Important *bool `json:"important,omitempty"`
NotifyIfTimeFrom string `json:"notify_if_time_from,omitempty"`
NotifyIfTimeTo string `json:"notify_if_time_to,omitempty"`
Severity string `json:"severity,omitempty"`
}

// CreateEscalation creates an escalation
Expand Down Expand Up @@ -145,6 +147,7 @@ type UpdateEscalationOptions struct {
Important *bool `json:"important,omitempty"`
NotifyIfTimeFrom string `json:"notify_if_time_from,omitempty"`
NotifyIfTimeTo string `json:"notify_if_time_to,omitempty"`
Severity string `json:"severity,omitempty"`
}

// UpdateEscalation updates an escalation with new templates and/or name. At least one field in template is required
Expand Down

0 comments on commit a0f8b48

Please sign in to comment.